/* ===================================================================
   AM Soluciones Web — Custom Styles
   Aesthetic: Digital Precision — angular, electric, refined
   =================================================================== */

/* ===== CSS Custom Properties ===== */
:root {
    --color-cyan: #1ADFED;
    --color-cyan-rgb: 26, 223, 237;
    --color-dark-blue: #354592;
    --color-dark-blue-rgb: 53, 69, 146;
    --color-deep-navy: #202B5C;
    --color-deep-navy-rgb: 32, 43, 92;
    --color-light-bg: #F7F7F7;
    --color-dark-text: #1A1A1A;
    --color-white: #FFFFFF;

    --font-primary: 'Nunito', sans-serif;

    --gradient-hero: linear-gradient(135deg, #0f1535 0%, var(--color-deep-navy) 35%, var(--color-dark-blue) 70%, #1a3a7e 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-cyan), var(--color-dark-blue));
    --gradient-card: linear-gradient(180deg, rgba(var(--color-deep-navy-rgb), 0.03) 0%, rgba(var(--color-cyan-rgb), 0.04) 100%);

    --shadow-soft: 0 4px 24px rgba(var(--color-deep-navy-rgb), 0.08);
    --shadow-card: 0 8px 32px rgba(var(--color-deep-navy-rgb), 0.10);
    --shadow-hover: 0 16px 48px rgba(var(--color-cyan-rgb), 0.15);
    --shadow-glow: 0 0 40px rgba(var(--color-cyan-rgb), 0.25);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --navbar-height: 76px;
    --section-padding: clamp(80px, 10vw, 140px);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Base Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--color-dark-text);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-deep-navy);
}

a {
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-bar {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.accent-bar--center {
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    line-height: 1.8;
}

.section-subtitle--center {
    margin-left: auto;
    margin-right: auto;
}

/* ===== Navbar ===== */
.navbar-am {
    padding: 1rem 0;
    transition: all var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1050;
}

.navbar-am .navbar-brand img {
    height: 42px;
    transition: all var(--transition-smooth);
}

.navbar-am .logo-blue { display: none; }
.navbar-am .logo-white { display: block; }

.navbar-am.scrolled {
    background: rgba(15, 21, 53, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(var(--color-cyan-rgb), 0.1);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.navbar-am .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 0.92rem;
    padding: 0.5rem 1.15rem;
    letter-spacing: 0.3px;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar-am .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1.15rem;
    right: 1.15rem;
    height: 2px;
    background: var(--color-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
    border-radius: 1px;
}

.navbar-am .nav-link:hover,
.navbar-am .nav-link.active {
    color: var(--color-white);
}

.navbar-am .nav-link:hover::after,
.navbar-am .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-am .btn-nav-cta {
    background: var(--color-cyan);
    color: var(--color-deep-navy);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
}

.navbar-am .btn-nav-cta:hover {
    background: var(--color-white);
    color: var(--color-deep-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--color-cyan-rgb), 0.3);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Legal pages - show blue logo */
.page-legal .navbar-am {
    background: var(--color-white);
    border-bottom: 1px solid #e5e7eb;
}

.page-legal .navbar-am .logo-blue { display: block; }
.page-legal .navbar-am .logo-white { display: none; }

.page-legal .navbar-am .nav-link {
    color: var(--color-dark-text);
}

.page-legal .navbar-am .nav-link:hover,
.page-legal .navbar-am .nav-link.active {
    color: var(--color-deep-navy);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: var(--navbar-height);
    padding-bottom: 100px;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* Geometric mesh background */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(var(--color-cyan-rgb), 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(var(--color-dark-blue-rgb), 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Noise texture overlay */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title strong {
    font-weight: 700;
    color: var(--color-cyan);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Geometric floating shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border: 1px solid rgba(var(--color-cyan-rgb), 0.12);
    border-radius: 2px;
    animation: floatShape 20s ease-in-out infinite;
}

.hero-shape--1 {
    width: 80px;
    height: 80px;
    top: 15%;
    right: 15%;
    transform: rotate(45deg);
    animation-delay: 0s;
    border-color: rgba(var(--color-cyan-rgb), 0.15);
}

.hero-shape--2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 25%;
    transform: rotate(20deg);
    animation-delay: -5s;
    animation-duration: 25s;
    border-color: rgba(var(--color-cyan-rgb), 0.08);
}

.hero-shape--3 {
    width: 50px;
    height: 50px;
    top: 35%;
    right: 35%;
    transform: rotate(60deg);
    animation-delay: -10s;
    animation-duration: 18s;
    background: rgba(var(--color-cyan-rgb), 0.04);
    border-color: rgba(var(--color-cyan-rgb), 0.1);
}

.hero-shape--4 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: -50px;
    border-radius: 50%;
    animation-delay: -8s;
    animation-duration: 30s;
    border-color: rgba(var(--color-cyan-rgb), 0.06);
}

.hero-shape--5 {
    width: 30px;
    height: 30px;
    bottom: 30%;
    right: 10%;
    background: rgba(var(--color-cyan-rgb), 0.1);
    border: none;
    border-radius: 50%;
    animation-delay: -3s;
    animation-duration: 15s;
}

.hero-shape--dot {
    width: 6px;
    height: 6px;
    background: var(--color-cyan);
    border: none;
    border-radius: 50%;
    opacity: 0.4;
}

.hero-shape--dot:nth-child(6) { top: 25%; right: 20%; animation-delay: -2s; }
.hero-shape--dot:nth-child(7) { top: 55%; right: 40%; animation-delay: -7s; }
.hero-shape--dot:nth-child(8) { bottom: 15%; right: 18%; animation-delay: -12s; }

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 45deg)); }
    25% { transform: translateY(-20px) rotate(calc(var(--rotation, 45deg) + 5deg)); }
    50% { transform: translateY(-10px) rotate(calc(var(--rotation, 45deg) - 3deg)); }
    75% { transform: translateY(-25px) rotate(calc(var(--rotation, 45deg) + 2deg)); }
}

/* ===== Hero Visual (right side) ===== */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.hero-visual__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 2;
    max-width: 380px;
    margin: 0 auto;
}

.hero-visual__card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
    animation: heroCardAppear 0.6s ease-out both;
    animation-delay: var(--delay, 0s);
}

.hero-visual__card:hover {
    background: rgba(var(--color-cyan-rgb), 0.12);
    border-color: rgba(var(--color-cyan-rgb), 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(var(--color-cyan-rgb), 0.15);
}

.hero-visual__card i {
    font-size: 2.2rem;
    color: var(--color-cyan);
    display: block;
    margin-bottom: 0.75rem;
}

.hero-visual__card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
}

.hero-visual__ring {
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(var(--color-cyan-rgb), 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: ringPulse 4s ease-in-out infinite;
}

.hero-visual__ring::after {
    content: '';
    position: absolute;
    inset: -30px;
    border: 1px dashed rgba(var(--color-cyan-rgb), 0.06);
    border-radius: 50%;
}

@keyframes heroCardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
}

/* ===== Buttons ===== */
.btn-primary-am {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-cyan);
    color: var(--color-deep-navy);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-cyan);
    letter-spacing: 0.3px;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn-primary-am:hover {
    background: transparent;
    color: var(--color-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary-am {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn-secondary-am:hover {
    border-color: var(--color-white);
    color: var(--color-white);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary-am i,
.btn-secondary-am i {
    font-size: 1.1em;
}

/* ===== Diagonal Divider ===== */
.diagonal-divider {
    position: relative;
    height: 80px;
    margin-top: -80px;
    z-index: 3;
}

.diagonal-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== About Section ===== */
.about-section {
    background: var(--color-light-bg);
    padding: var(--section-padding) 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 50%, rgba(var(--color-cyan-rgb), 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.about-text p {
    font-size: 1.05rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.about-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
}

.about-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.about-stat__number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-cyan);
    line-height: 1;
    margin-bottom: 0.3rem;
    display: block;
}

.about-stat__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About visual */
.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual__icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 320px;
}

.about-visual__item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(var(--color-deep-navy-rgb), 0.04);
}

.about-visual__item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.about-visual__item i {
    font-size: 2rem;
    color: var(--color-dark-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.about-visual__item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Services Section ===== */
.services-section {
    background: var(--color-white);
    padding: var(--section-padding) 0;
    position: relative;
}

.service-card {
    background: var(--color-white);
    border: 1px solid rgba(var(--color-deep-navy-rgb), 0.06);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-accent);
    border-radius: 0 2px 2px 0;
    transition: height var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(var(--color-cyan-rgb), 0.15);
}

.service-card:hover::before {
    height: 100%;
}

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(var(--color-cyan-rgb), 0.1), rgba(var(--color-dark-blue-rgb), 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-smooth);
}

.service-card:hover .service-card__icon {
    background: var(--gradient-accent);
    transform: scale(1.05);
}

.service-card__icon i {
    font-size: 1.6rem;
    color: var(--color-dark-blue);
    transition: color var(--transition-fast);
}

.service-card:hover .service-card__icon i {
    color: var(--color-white);
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-deep-navy);
    margin-bottom: 0.75rem;
}

.service-card__text {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-card__link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-dark-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}

.service-card__link i {
    font-size: 0.9em;
    transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link {
    color: var(--color-cyan);
}

.service-card:hover .service-card__link i {
    transform: translateX(4px);
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--gradient-hero);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(var(--color-cyan-rgb), 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.contact-section .section-label {
    color: var(--color-cyan);
}

.contact-section .section-title {
    color: var(--color-white);
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.contact-info__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background: rgba(var(--color-cyan-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info__icon i {
    font-size: 1.1rem;
    color: var(--color-cyan);
}

.contact-info__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.2rem;
}

.contact-info__value {
    font-size: 1rem;
    color: var(--color-white);
    font-weight: 400;
}

.contact-info__value a {
    color: var(--color-cyan);
}

.contact-info__value a:hover {
    color: var(--color-white);
}

/* Contact form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(var(--color-cyan-rgb), 0.15);
    color: var(--color-white);
}

.contact-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231ADFED' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.contact-form .form-select option {
    background: var(--color-deep-navy);
    color: var(--color-white);
}

.contact-form .form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.contact-form .btn-submit {
    background: var(--color-cyan);
    color: var(--color-deep-navy);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2.5rem;
    border: 2px solid var(--color-cyan);
    border-radius: var(--radius-sm);
    width: 100%;
    transition: all var(--transition-smooth);
    cursor: pointer;
    letter-spacing: 0.3px;
}

.contact-form .btn-submit:hover {
    background: transparent;
    color: var(--color-cyan);
    box-shadow: var(--shadow-glow);
}

.contact-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form .form-text {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

.contact-form .invalid-feedback {
    font-size: 0.82rem;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* reCAPTCHA alignment */
.recaptcha-wrapper {
    display: flex;
    justify-content: flex-start;
}

/* ===== Footer ===== */
.footer {
    background: #0a0f2a;
    padding: 4rem 0 0;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-cyan-rgb), 0.3), transparent);
}

.footer-logo {
    height: 38px;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.92rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover {
    color: var(--color-cyan);
    transform: translateX(3px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
}

.footer-contact-item i {
    color: var(--color-cyan);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact-item a:hover {
    color: var(--color-cyan);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
    background: var(--color-cyan);
    color: var(--color-deep-navy);
    border-color: var(--color-cyan);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--color-cyan);
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    color: var(--color-white);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.3);
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0; }
}

/* ===== Legal Pages ===== */
.legal-page {
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: var(--section-padding);
    min-height: 80vh;
}

.legal-page h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-page .legal-updated {
    font-size: 0.88rem;
    color: #9ca3af;
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-deep-navy);
}

.legal-page p,
.legal-page li {
    font-size: 0.98rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-page ul {
    padding-left: 1.5rem;
}

.legal-page a {
    color: var(--color-dark-blue);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--color-cyan);
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: calc(var(--navbar-height) + 16px);
    right: 16px;
    z-index: 1055;
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    background: rgba(10, 15, 42, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(var(--color-cyan-rgb), 0.15);
    padding: 1.25rem 0;
    animation: slideUpCookie 0.4s ease-out;
}

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent__text {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 280px;
}

.cookie-consent__text i {
    color: var(--color-cyan);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.cookie-consent__text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.cookie-consent__text a {
    color: var(--color-cyan);
    text-decoration: underline;
}

.cookie-consent__text a:hover {
    color: var(--color-white);
}

.cookie-consent__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent__btn {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    white-space: nowrap;
}

.cookie-consent__btn--accept {
    background: var(--color-cyan);
    color: var(--color-deep-navy);
}

.cookie-consent__btn--accept:hover {
    background: var(--color-white);
    transform: translateY(-1px);
}

.cookie-consent__btn--reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-consent__btn--reject:hover {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

@keyframes slideUpCookie {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 767.98px) {
    .cookie-consent__inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent__text {
        flex-direction: column;
        align-items: center;
    }

    .cookie-consent__actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===== 404 Page ===== */
.error-404-page {
    padding-top: calc(var(--navbar-height) + 4rem);
    padding-bottom: var(--section-padding);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.error-404__code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.error-404__title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-deep-navy);
    margin-bottom: 1rem;
}

.error-404__text {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 460px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.error-404__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== AOS Custom Overrides ===== */
[data-aos] {
    pointer-events: auto !important;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(15, 21, 53, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.75rem;
        border: 1px solid rgba(var(--color-cyan-rgb), 0.1);
    }

    .navbar-am .nav-link::after {
        display: none;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero-shapes {
        opacity: 0.5;
    }

    .contact-form-wrapper {
        padding: 1.75rem;
        margin-top: 2.5rem;
    }

    .page-legal .navbar-collapse {
        background: var(--color-white);
        border: 1px solid #e5e7eb;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 60px;
    }

    .about-stat {
        padding: 1rem 0.5rem;
    }

    .about-stat__number {
        font-size: 1.6rem;
    }

    .about-stat__label {
        font-size: 0.72rem;
    }

    .about-visual {
        margin-top: 2.5rem;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-primary-am,
    .hero-cta .btn-secondary-am {
        justify-content: center;
        width: 100%;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }
}
