/* styles.css - WebForgePro - Versión Mejorada y Responsive */

:root {
    --primary: #0a0a0f;
    --secondary: #1a1a2e;
    --accent: #ff6b35;
    --accent-dark: #e55627;
    --accent-light: #ff9a3d;
    --metal: #b8b8b8;
    --light: #f8f9fa;
    --dark: #070707;
    --text: #ffffff;
    --text-light: #d1d1d1;
    --border: #333333;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 15px 50px rgba(255, 107, 53, 0.4);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-bg: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    --gradient-card: linear-gradient(135deg, #111122 0%, #1a1a2e 100%);
    --gradient-fire: linear-gradient(45deg, #ff6b35 0%, #ff9a3d 50%, #ff6b35 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--gradient-bg);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    background: linear-gradient(45deg, #128C7E, #25D366);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Botón de idioma */
.language-switcher {
    position: fixed;
    top: 140px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-card);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.lang-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-hover);
    background: var(--gradient-fire);
    color: white;
}

.lang-btn.active {
    background: var(--gradient-fire);
    color: white;
    transform: scale(1.1);
}

.lang-btn span {
    font-size: 14px;
    font-weight: 700;
}

/* Header profesional */
header {
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
    border-radius: 12px;
}

.logo-text {
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
}

.logo-text span {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    font-family: 'Poppins', sans-serif;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-fire);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--accent);
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 20px;
    color: var(--accent);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1002;
}

.mobile-menu-btn:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Hero Section - Forja */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 154, 61, 0.1), transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 107, 53, 0.08), transparent 50%);
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    color: var(--text);
    line-height: 1.2;
}

.hero-content h1 span {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.8;
    font-weight: 300;
}

.highlight-box {
    background: var(--gradient-card);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border-radius: 15px;
    border-left: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.highlight-box:hover::before {
    transform: translateX(100%);
}

.highlight-box p {
    margin: 12px 0;
    font-size: 1.1rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.highlight-box p i {
    color: var(--accent);
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-fire);
    color: white;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.hero-visual {
    position: relative;
}

.forge-animation {
    width: 100%;
    height: 420px;
    background: var(--gradient-card);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(255, 211, 17, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo en el forjado */
.forge-logo-container {
    position: relative;
    width: 350px;
    height: 350px;
    animation: float 6s ease-in-out infinite;
}

.forge-logo {
    width: 100%;
    height: 100%;
    position: relative;
}

.forge-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.6));
    animation: pulseLogo 4s ease-in-out infinite;
}


/* Proceso de Trabajo */
.process {
    background: var(--gradient-bg);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.2rem;
    color: var(--text);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-fire);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.8;
    font-weight: 300;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.process-card {
    background: var(--gradient-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.1);
    height: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 53, 0.3);
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-fire);
}

.process-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--accent);
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.process-card h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 15px;
}

.process-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-fire);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

/* Portfolio */
.portfolio {
    background: linear-gradient(135deg, #0a0a0f 0%, #111122 100%);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: var(--gradient-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient-fire);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--gradient-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 107, 53, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 53, 0.3);
}

.portfolio-preview {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #1a1a2e;
    flex-shrink: 0;
}

/* Preview real con fondo de carga */
.preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #1a1a2e;
    position: relative;
}

.preview-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    width: 60px;
    height: 60px;
    background: var(--gradient-fire);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    transition: var(--transition);
    transform: scale(0.8);
}

.portfolio-item:hover .portfolio-link {
    transform: scale(1);
}

.portfolio-link:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
}

.portfolio-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 300;
    flex-grow: 1;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* Contacto */
.contact {
    background: linear-gradient(135deg, #111122 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--gradient-card);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 107, 53, 0.1);
    min-width: 280px;
    flex: 1;
    max-width: 400px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 53, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-fire);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
    text-align: left;
    font-weight: 500;
}

.contact-details a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    text-align: left;
    word-break: break-all;
}

.contact-details a:hover {
    color: var(--accent);
}

.contact-cta {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 50px;
    margin-top: 60px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 107, 53, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-cta h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text);
}

.contact-cta p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: 300;
}

/* Footer */
footer {
    background: #0a0a0f;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
    border-radius: 10px;
}

.footer-logo span {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.footer-logo span span {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.social-link:hover {
    background: var(--gradient-fire);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    border-color: transparent;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Clases para traducción */
.lang-es {
    display: block;
}

.lang-en {
    display: none;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Tablet (992px y menos) */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .forge-animation {
        height: 350px;
        max-width: 500px;
        margin: 0 auto;
    }

    .forge-logo-container {
        width: 300px;
        height: 300px;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 100px 30px 30px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;
    }

    nav ul.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul li a {
        font-size: 18px;
        padding: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .language-switcher {
        top: 120px;
        right: 20px;
        flex-direction: row;
    }

    .lang-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }
}

/* Tablet Pequeña (768px y menos) */
@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .hero {
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 2.4rem;
    }

    .section-header p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .portfolio-preview {
        height: 200px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact-item {
        width: 100%;
        max-width: 400px;
    }

    .contact-cta {
        padding: 40px 30px;
    }

    .contact-cta h3 {
        font-size: 1.8rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .language-switcher {
        top: 110px;
        right: 15px;
    }

    .process-grid {
        gap: 20px;
    }

    .process-card {
        padding: 30px 20px;
    }

    .highlight-box {
        padding: 25px 20px;
    }
}

/* Móvil (480px y menos) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .language-switcher {
        top: 100px;
        right: 10px;
        gap: 8px;
    }

    .lang-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .forge-animation {
        height: 280px;
    }

    .forge-logo-container {
        width: 250px;
        height: 250px;
    }

    .portfolio-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .contact-item {
        padding: 20px;
        gap: 15px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .contact-details a {
        font-size: 1.1rem;
    }

    .contact-cta {
        padding: 30px 20px;
    }

    .contact-cta h3 {
        font-size: 1.6rem;
    }

    .footer-logo span {
        font-size: 20px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Optimización para móviles pequeños */
    .container {
        width: 95%;
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 130px;
        padding-bottom: 60px;
    }

    .highlight-box p {
        font-size: 1rem;
    }

    .process-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .process-card h3 {
        font-size: 1.2rem;
    }

    .process-card p {
        font-size: 0.95rem;
    }
}

/* Móvil Extra Pequeño (360px y menos) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .logo-text {
        font-size: 18px;
    }

    .btn {
        min-width: auto;
        padding: 12px 20px;
    }

    .portfolio-grid {
        gap: 20px;
    }

    .portfolio-info {
        padding: 20px;
    }

    .contact-item {
        min-width: auto;
        width: 100%;
    }
}

/* Optimización para orientación landscape en móviles */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .highlight-box {
        margin: 15px 0;
        padding: 20px;
    }

    .language-switcher {
        top: 90px;
    }
}

/* Ajustes para pantallas muy grandes */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .hero-content h1 {
        font-size: 4.2rem;
    }

    .section-header h2 {
        font-size: 3.5rem;
    }
}

/* Soporte para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #ffffff;
        --text-light: #d1d1d1;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Corrección para Safari iOS */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
    }
}

/* Impresión */
@media print {
    .whatsapp-float,
    .language-switcher,
    .mobile-menu-btn,
    .portfolio-overlay,
    .preview-loading {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        color: black !important;
        text-decoration: underline !important;
    }
}