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

:root {
    --violeta: #8952a3;
    --naranja: #f28268;
    --blanco: #fff;
    --lila: #ae94f0;
    --oscuro: #050612;
    --texto: rgba(255, 255, 255, .78);
    --borde: rgba(174, 148, 240, .34);
    --header: 112px; /* Valor por defecto para móviles */
}

html {
    scroll-padding-top: var(--header);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--oscuro);
    color: var(--blanco);
    font-family: "Proxima Nova", "Montserrat", "Inter", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================
   1. ESTILOS BASE (MOBILE FIRST)
   ========================================= */

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;      /* Centra los elementos verticalmente */
    align-content: center;    /* Centra el bloque entero (Logo + Nav) en los 112px */
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    height: var(--header);    
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(2, 3, 11, .82), rgba(2, 3, 11, .14));
    backdrop-filter: blur(8px);
}

.brand {
    margin-right: auto;       /* Mantiene el logo anclado a la izquierda */
}

.brand img {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    width: 100%;
    justify-content: center;  /* Botonera centrada en mobile */
    gap: 20px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    margin-top: 10px;         /* Da aire entre el logo y la botonera */
}

.main-nav a:hover,
.lang-btn:hover,
.lang-btn.active {
    color: var(--naranja);
}

.lang-switch {
    position: absolute;       /* Lo saca de la fila flex para anclarlo abajo */
    bottom: 12px;             
    right: 18px;              
    display: flex;
    gap: 8px;
    font-size: 11px;          /* Un poco más chico para no competir visualmente */
    font-weight: 800;
}

.lang-btn {
    border: 0;
    background: transparent;
    color: var(--blanco);
    font-weight: 900;
    cursor: pointer;
}

.panel {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    min-height: auto;
    padding: 70px 0;
}

.panel:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .18));
}

.content {
    position: relative;
    z-index: 2;
    width: min(100% - 36px, 1180px);
    margin: 0 auto;
}

.accent { color: var(--naranja); }
.purple { color: var(--lila); }
.center { text-align: center; }
.top-space { margin-top: 34px; }
.wide { min-width: 300px; }

.btn {
    width: 100%;
    min-height: 52px;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--naranja); box-shadow: 0 0 22px rgba(242, 130, 104, .44); }
.btn.ghost { border: 1.5px solid var(--naranja); background: rgba(6, 7, 22, .25); }
.btn.ghost:hover { background: rgba(242, 130, 104, .12); }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    width: 100%;
}

.hero-panel {
    background-image: url("assets/bg-hero.jpg");
    background-position: 34% center;
    min-height: 720px;
    padding-top: var(--header);
}

.hero-content {
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.hero-copy {
    width: 100%;
    margin-right: 0;
}

.hero-copy h1 {
    margin: 0 0 26px;
    font-size: 52px;
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-copy p {
    max-width: 420px;
    margin: 0 0 34px;
    color: var(--texto);
    font-size: 18px;
    line-height: 1.38;
}

.about-panel { background-image: url("assets/bg-about.jpg"); }
.about-content { min-height: 520px; display: flex; align-items: center; }
.about-copy { width: 100%; }

.about-copy h2,
.contact-left h2,
.section-title h2 {
    margin: 0 0 30px;
    font-size: clamp(38px, 4vw, 64px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.about-copy p {
    margin: 0 0 24px;
    color: var(--texto);
    font-size: 18px;
    line-height: 1.6;
}

.about-tag {
    margin-top: 34px;
    color: var(--lila);
    font-size: 23px;
    font-weight: 800;
}

.services-panel { background-image: url("assets/bg-services.jpg"); }
.section-title.center { max-width: 860px; margin: 0 auto; }
.section-title h2 { margin-bottom: 14px; }
.section-title p { margin: 0 auto; max-width: 780px; color: var(--texto); font-size: 17px; line-height: 1.55; }

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 46px;
}

.service-card {
    width: 100%;
    min-height: 270px;
    padding: 26px 11px;
    border: 1px solid var(--borde);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(12, 13, 34, .78), rgba(5, 6, 18, .74));
    box-shadow: inset 0 0 18px rgba(174, 148, 240, .045);
}

.num { color: var(--lila); font-size: 22px; font-weight: 900; }
.icon { color: var(--naranja); font-size: 34px; margin: 18px 0 20px; }
.service-card h3 { margin: 0 0 14px; font-size: 17px; line-height: 1.18; }
.service-card p { margin: 0; color: rgba(255, 255, 255, .70); font-size: 13px; line-height: 1.55; }

.clients-panel { background-image: url("assets/bg-clients.jpg"); }
.clients-heading { max-width: 760px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--naranja);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 13px;
    font-weight: 900;
}

.eyebrow:after {
    content: "";
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--naranja), var(--lila));
}

.clients-heading h2 { margin-top: 18px; }
.carousel-shell { position: relative; margin-top: 42px; }

.client-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 0 12px;
}
.client-carousel::-webkit-scrollbar { display: none; }

.client-card {
    scroll-snap-align: start;
    flex: 0 0 76%;
    height: 118px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(174, 148, 240, .22);
    border-radius: 11px;
    background: rgba(255, 255, 255, .026);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.client-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 130, 104, .65);
    background: rgba(255, 255, 255, .055);
}

.client-card img { max-width: 150px; max-height: 76px; object-fit: contain; }

.arrow-btn { display: none; }

.slide-text {
    margin: 14px auto 0;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, .55);
}

.slide-text span {
    display: block;
    width: 130px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lila));
}
.slide-text b { color: var(--naranja); font-size: 24px; }

.contact-panel { background-image: url("assets/bg-contact.jpg"); background-position: center top; }

.contact-content {
    min-height: 720px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.contact-left p { max-width: 570px; margin: 0 0 34px; color: var(--texto); font-size: 20px; line-height: 1.58; }
.whatsapp { gap: 14px; padding-inline: 36px; }

.contact-card {
    padding: 28px 11px;
    border: 1px solid rgba(174, 148, 240, .62);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(35, 16, 58, .72), rgba(8, 9, 24, .72));
    box-shadow: 0 0 40px rgba(174, 148, 240, .20), inset 0 0 22px rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
}

.contact-card h3 { margin: 0 0 24px; font-size: 32px; }

.contact-row, .social-area { 
    display: flex; 
    align-items: flex-start;
    gap: 20px; 
    padding: 24px 0; 
    border-top: 1px solid rgba(174, 148, 240, .27); 
}

.circle { 
    width: 42px; 
    height: 42px; 
    flex-shrink: 0;
    display: flex; 
    justify-content: center;
    align-items: center;
    border: 1px solid var(--lila); 
    border-radius: 50%; 
    color: var(--lila); 
}

.circle img {
    width: 44px; /* Podés ajustar este valor si lo querés más grande o más chico */
    height: auto;
    object-fit: contain;
}

.contact-card h4 { margin: 0 0 10px; color: var(--lila); font-size: 16px; }
.contact-card a { display: block; width: fit-content; margin: 8px 0; text-decoration: underline; text-underline-offset: 4px; }




.socials { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 16px; 
}

/* El círculo exterior se mantiene igual, gestionado por CSS */
.socials a {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid rgba(174, 148, 240, .7); /* Borde lila */
    transition: transform .2s ease, border-color .2s ease;
}

/* El hover que cambia el borde del contenedor a naranja */
.socials a:hover { 
    transform: translateY(-3px); 
    border-color: var(--naranja); 
}

/* NUEVO: Controlamos el tamaño del icono (imagen) que va adentro */
.socials a img {
    width: 20px; /* Podés agrandar o achicar esto si el logo se ve muy chico/grande */
    height: auto;
    object-fit: contain;
    /* Si en algún momento querés cambiar el logo blanco a naranja en el hover, 
       se puede hacer con la propiedad CSS 'filter', pero por ahora con el borde alcanza */
}





.footer { 
    position: relative; 
    z-index: 2; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center; 
    padding: 24px 0 30px; 
}
.footer img { width: 190px; max-height: 78px; object-fit: contain; margin-bottom: 10px; }
.footer p { margin: 0; color: rgba(255, 255, 255, .74); font-size: 20px; }


/* =========================================
   2. MEJORA PROGRESIVA (TABLETS Y ESCRITORIO)
   ========================================= */

/* Tablets (a partir de 761px) */
@media(min-width: 761px) {
    :root { --header: 88px; } /* Aumentamos un par de píxeles para que respiren las 2 líneas a la derecha */

    .site-header {
        flex-wrap: nowrap;
        padding: 0 24px;
    }
    
    .main-nav { 
        width: auto;
        flex: 1; 
        justify-content: flex-end; 
        gap: 26px; 
        font-size: 13px; 
        margin-top: 0;
        margin-bottom: 12px; /* Empuja la botonera hacia arriba para darle lugar al ES | EN */
    }

    .lang-switch {
        bottom: 14px;
        right: 24px;         /* Alineado al padding del header */
    }

    .brand img { width: 160px; }

    .content { width: min(1180px, calc(100% - 80px)); }
    .panel { min-height: 760px; padding: 0; }
    
    .hero-panel { min-height: 970px; background-position: center top; }
    .hero-content { min-height: 970px; justify-content: flex-end; padding-top: var(--header); }
    .hero-copy { width: 560px; }
    .hero-copy h1 { font-size: clamp(55px, 5vw, 88px); }
    .hero-copy p { font-size: 22px; }
    .actions, .btn { width: auto; }

    .about-panel { min-height: 970px; }
    .about-content { min-height: 970px; }
    .about-copy { width: 560px; }

    .services-panel { min-height: 860px; padding: 76px 0 72px; }
    
    .services-grid { 
        flex-direction: row; 
        flex-wrap: wrap; 
    }
    
    .service-card { 
        /* En tablet, son 3 columnas: calculamos 1/3 menos el espacio del gap */
        width: calc(33.333% - 12px); 
    }

    .clients-panel { padding: 76px 0 70px; }
    .client-card { flex-basis: 185px; }

    .contact-panel { padding-top: 72px; }
    .contact-card { padding: 40px; }
    
    .footer img { width: 230px; }
}

/* Monitores y Escritorio (a partir de 1100px) */
@media(min-width: 1100px) {
    .site-header { padding: 0 50px; gap: 22px; }
    .main-nav { gap: 54px; }
    
    .lang-switch { right: 50px; } /* Igualamos al padding para que quede al ras del margen */

    .brand img { width: 180px; }

    .hero-copy { margin-right: 70px; }

    .service-card { 
        /* En escritorio, querías 6 columnas: calculamos 1/6 menos el espacio del gap */
        width: calc(16.666% - 15px); 
    }

    .arrow-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        translate: 0 -50%;
        z-index: 4;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(174, 148, 240, .48);
        background: rgba(10, 9, 25, .72);
        color: var(--naranja);
        font-size: 30px;
        cursor: pointer;
    }
    .arrow-btn.prev { left: -58px; }
    .arrow-btn.next { right: -58px; }

    .contact-content { 
        flex-direction: row; 
        align-items: center; 
        gap: 80px; 
    }
    
    .contact-left { flex: 1.1; }
    .contact-card { flex: 0.9; }
}