/**
 * Aburrá Tech - Estilos principales
 * Rediseño: sistema de diseño azul / navy moderno
 */

/* ===== CSS Variables ===== */
:root {
    /* Paleta principal */
    --navy: #0B2A5B;
    --navy-2: #0A3A8C;
    --blue: #1F5BFF;
    --blue-light: #3B9BFF;
    --bg-light: #F3F7FD;
    --text-dark: #0B1F44;
    --text-muted: #5B6B85;
    --whatsapp: #25D366;

    /* Derivados */
    --color-white: #ffffff;
    --color-offwhite: #FBFCFE;
    --color-border: #E4EBF6;
    --color-border-strong: #D5DFF0;
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;

    /* Sombras */
    --shadow-xs: 0 1px 3px rgba(11, 42, 91, 0.06);
    --shadow-sm: 0 2px 8px rgba(11, 42, 91, 0.07);
    --shadow-md: 0 8px 24px rgba(11, 42, 91, 0.10);
    --shadow-lg: 0 16px 48px rgba(11, 42, 91, 0.14);
    --shadow-blue: 0 8px 28px rgba(31, 91, 255, 0.30);

    /* Tipografía */
    --font-primary: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;

    /* Radios */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    /* Layout */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
    --header-height: 96px;
}

/* ===== Tipografía local (Poppins) ===== */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-latin-800-normal.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Seguridad anti-overflow en móviles ===== */
h1, h2, h3, h4, h5, h6, p, a, li, span, label, strong {
    overflow-wrap: break-word;
    word-break: break-word;
}

.service-card,
.automation-card,
.portfolio-card,
.contact__info-item {
    min-width: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
    box-shadow: 0 4px 20px rgba(11, 42, 91, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav__logo-img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
    color: var(--navy);
}

/* Enlace activo con subrayado azul */
.nav__link--active {
    color: var(--blue);
}

.nav__link--active::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
}

.nav__link--cta {
    background: var(--navy);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-full);
    margin-left: 0.75rem;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav__link--cta:hover {
    background: var(--navy-2);
    box-shadow: 0 8px 20px rgba(11, 42, 91, 0.25);
}

.nav__link--cta::after {
    display: none;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle--active .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle--active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle--active .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero Section (degradado azul oscuro) ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 3.5rem) 0 5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 15% 15%, rgba(31, 91, 255, 0.28), transparent 60%),
        radial-gradient(ellipse 60% 55% at 85% 20%, rgba(59, 155, 255, 0.22), transparent 65%),
        linear-gradient(135deg, #0A2E63 0%, #0B2A5B 40%, #0A3A8C 100%);
    color: #ffffff;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    text-align: left;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #EAF1FF;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.hero__title {
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.hero__title-accent {
    color: var(--blue-light);
}

.hero__subtitle {
    font-size: 1.05rem;
    color: #C7D6F0;
    max-width: 520px;
    margin: 0 0 2rem;
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ===== Ilustración del hero ===== */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.hero__laptop {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    filter: drop-shadow(0 30px 60px rgba(4, 15, 38, 0.45));
    animation: float 6s ease-in-out infinite;
}

.hero__laptop-img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(31, 91, 255, 0.28);
}

.btn--primary:hover {
    box-shadow: 0 12px 32px rgba(31, 91, 255, 0.40);
    transform: translateY(-2px);
}

.btn--outline {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn--navy {
    background: var(--navy);
    color: #ffffff;
}

.btn--navy:hover {
    background: var(--navy-2);
    box-shadow: 0 10px 26px rgba(11, 42, 91, 0.28);
    transform: translateY(-2px);
}

.btn--whatsapp {
    background: var(--whatsapp);
    color: #ffffff;
}

.btn--whatsapp:hover {
    background: #1ebe57;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* ===== Section Styles ===== */
.section {
    padding: 6rem 1.5rem;
    background-color: var(--color-white);
    position: relative;
}

.section--alt {
    background-color: var(--bg-light);
}

.section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue);
    margin-bottom: 0.9rem;
}

.section__label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.section__title {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Services Cards (columnas con divisores verticales) ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--container-max);
    margin: 0 auto;
}

.service-card {
    padding: 0.5rem 1.9rem;
    text-align: left;
    border-right: 1px solid var(--color-border);
}

.service-card:last-child {
    border-right: none;
}

.service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E7F0FF;
    border-radius: var(--radius-md);
    color: var(--blue);
    margin-bottom: 1.4rem;
    transition: background var(--transition), transform var(--transition);
}

.service-card__icon svg {
    width: 30px;
    height: 30px;
}

.service-card:hover .service-card__icon {
    background: #D8E7FF;
    transform: translateY(-3px);
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.service-card__description {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
    transition: color var(--transition), gap var(--transition);
}

.service-card__link svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}

.service-card__link:hover {
    color: var(--navy-2);
    gap: 0.6rem;
}

/* ===== CTA Band (franja azul oscura) ===== */
.cta-band {
    position: relative;
    padding: 4.5rem 1.5rem;
    background:
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(31, 91, 255, 0.30), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.cta-band__label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 1rem;
}

.cta-band__title {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.75rem;
}

.cta-band__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Automatizaciones (Casos de uso) ===== */
.automations__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.25rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.automation-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "icon description";
    column-gap: 1.25rem;
    row-gap: 0.4rem;
    align-items: start;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}

.automation-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.automation-card__icon {
    grid-area: icon;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E7F0FF;
    border-radius: var(--radius-md);
    color: var(--blue);
}

.automation-card__title {
    grid-area: title;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    align-self: center;
}

.automation-card__description {
    grid-area: description;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
    display: block;
}

/* ===== Portfolio Section ===== */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.portfolio-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.portfolio-card__image {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(160deg, #EAF1FF 0%, #D8E7FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-bottom: 1px solid var(--color-border);
}

.portfolio-card__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
}

.portfolio-card__image::after {
    content: '';
    position: absolute;
    top: 13px;
    left: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 14px 0 0 #fbbf24, 28px 0 0 #34d399;
}

.portfolio-card__image svg {
    position: relative;
    margin-top: 22px;
    opacity: 0.5;
    transition: transform var(--transition), opacity var(--transition);
}

.portfolio-card:hover .portfolio-card__image svg {
    transform: scale(1.1);
    opacity: 0.7;
}

.portfolio-card__video {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    overflow: hidden;
    background: #000;
}

.portfolio-card__video--visible {
    display: block;
}

.portfolio-card__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.portfolio-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-card__tag {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    background: #E7F0FF;
    color: var(--blue);
}

.portfolio-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.portfolio-card__description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Contact Form ===== */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: var(--container-max);
    margin: 0 auto;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact__info-text {
    color: var(--text-muted);
    line-height: 1.7;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.contact__info-icon {
    width: 20px;
    height: 20px;
    color: var(--blue);
    flex-shrink: 0;
}

.contact__form {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.form__label--required::after {
    content: ' *';
    color: var(--color-error);
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--color-offwhite);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.15);
}

.form__input--error,
.form__select--error,
.form__textarea--error {
    border-color: var(--color-error);
}

.form__textarea {
    min-height: 120px;
    resize: vertical;
}

.form__error {
    font-size: 0.8rem;
    color: var(--color-error);
    margin-top: 0.3rem;
    display: none;
}

.form__error--visible {
    display: block;
}

.form__submit {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 0.5rem;
}

.form__submit:hover {
    box-shadow: 0 10px 26px rgba(31, 91, 255, 0.32);
    transform: translateY(-2px);
}

/* Casilla de consentimiento (Ley 1581) */
.form__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.form__consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--blue);
    cursor: pointer;
}

.form__consent-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form__consent-label a {
    color: var(--blue);
    text-decoration: underline;
}

.form__consent-label a:hover {
    color: var(--navy-2);
}

/* Aviso reCAPTCHA bajo el formulario (logo compacto, texto al hacer clic) */
.form__recaptcha {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.9rem;
}

.form__recaptcha-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.form__recaptcha-toggle::-webkit-details-marker {
    display: none;
}

.form__recaptcha-toggle img {
    display: block;
}

.form__recaptcha-note {
    line-height: 1.5;
    margin-top: 0.5rem;
}

.form__recaptcha-note a {
    color: var(--blue);
    text-decoration: underline;
}

.form__recaptcha-note a:hover {
    color: var(--navy-2);
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float__icon {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 35px rgba(37, 211, 102, 0.7); }
}

/* ===== reCAPTCHA v3 badge (oculto; la marca se muestra junto al formulario) ===== */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ===== Toast Notification ===== */
.form-toast {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    max-width: 380px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-toast--visible {
    transform: translateX(0);
    opacity: 1;
}

.form-toast--success { border-color: var(--color-success); }
.form-toast--error { border-color: var(--color-error); }

.form-toast__message {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-dark);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer__main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.footer__brand-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.footer__logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    margin-bottom: 0.75rem;
}

.footer__tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.footer__links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.footer__links-col {
    display: flex;
    flex-direction: column;
}

.footer__title {
    font-size: 0.85rem;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
    display: block;
}

.footer__link:hover {
    color: var(--blue);
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
}

.footer__bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer__bottom a {
    color: var(--blue);
    text-decoration: underline;
}

.footer__bottom a:hover {
    color: var(--navy-2);
}

.footer__socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #E7F0FF;
    color: var(--navy);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background-color: var(--blue);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== Páginas Legales ===== */
.legal {
    padding: calc(var(--header-height) + 4rem) 1.5rem 6rem;
    background-color: var(--color-white);
    color: var(--text-dark);
}

.legal__container {
    max-width: 820px;
}

.legal__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.legal__updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--text-dark);
}

.legal p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal ul li {
    margin-bottom: 0.5rem;
}

.legal a {
    color: var(--blue);
    text-decoration: underline;
}

.legal a:hover {
    color: var(--navy-2);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.legal__table th,
.legal__table td {
    border: 1px solid var(--color-border);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.legal__table th {
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
}

.legal__back {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 600;
}

/* ===== Banner de Cookies ===== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--navy);
    color: #EAF1FF;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.25);
    padding: 1.25rem 1.5rem;
    z-index: 2000;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: var(--container-max);
    margin: 0 auto;
}

.cookie-banner__text {
    flex: 1 1 300px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #C7D6F0;
    margin: 0;
}

.cookie-banner__link {
    color: var(--blue-light);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.cookie-banner__btn--primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: #ffffff;
}

.cookie-banner__btn--primary:hover {
    box-shadow: 0 8px 20px rgba(31, 91, 255, 0.35);
    transform: translateY(-1px);
}

.cookie-banner__btn--secondary {
    background: #ffffff;
    color: var(--navy);
    border: 1px solid #ffffff;
}

.cookie-banner__btn--secondary:hover {
    background: #EAF1FF;
    border-color: #EAF1FF;
    transform: translateY(-1px);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero__visual {
        min-height: 320px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.75rem;
    }

    .service-card:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -290px;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: #ffffff;
        padding: 6rem 2rem 2rem;
        gap: 0.5rem;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
        border-left: 1px solid var(--color-border);
    }

    .nav__menu--open {
        right: 0;
    }

    .nav__link {
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .nav__link--active::after {
        left: 1rem;
        right: auto;
        width: 28px;
        bottom: 0.4rem;
    }

    .nav__link--cta {
        margin-left: 0;
        text-align: center;
        margin-top: 0.5rem;
    }

    .nav__toggle {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--header-height) + 3rem);
        min-height: auto;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .hero__visual {
        min-height: 260px;
    }

    .services__grid,
    .automations__grid,
    .portfolio__grid,
    .contact__wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float__icon {
        width: 26px;
        height: 26px;
    }

    .form-toast {
        left: 1rem;
        right: 1rem;
        bottom: 5rem;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 0 0.25rem 1.75rem;
    }

    .service-card:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .contact__form {
        padding: 1.5rem;
    }
}

/* ===== Footer responsive ===== */
@media (max-width: 768px) {
    .footer__main-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer__brand-group {
        align-items: center;
        text-align: center;
    }

    .footer__logo-img {
        margin-top: 0;
    }

    .footer__links-group {
        text-align: center;
    }

    .footer__socials {
        justify-content: center;
    }
}

/* ===== Cookie banner responsive ===== */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-banner__text {
        flex: 1 1 auto;
    }

    .cookie-banner__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .cookie-banner__actions {
        flex-direction: column;
    }

    .cookie-banner__btn {
        width: 100%;
        text-align: center;
    }
}
