/* -------------------------------------------------------------
   GESTIÓN ÁTICA - ESTILOS CORPORATIVOS PREMIUM
   Diseño de vanguardia: Glassmorphism, Micro-animaciones y responsive.
------------------------------------------------------------- */

/* Variables y Configuración del Sistema de Diseño */
:root {
    /* Colores */
    --color-primary: #162a45;       /* Azul Marino Principal */
    --color-bg-dark: #0b1421;       /* Fondo Oscuro Base */
    --color-bg-card: rgba(22, 42, 69, 0.6); /* Fondo Translúcido Tarjeta */
    --color-accent: #dfc39e;        /* Crema / Oro Pálido */
    --color-accent-hover: #cfb18b;  /* Crema Oscurecido */
    --color-sub-accent: #89a5c4;    /* Azul Claro */
    --color-text-white: #ffffff;
    --color-text-muted: #a4b6c9;
    --color-text-dark: #121d2b;
    --color-border: rgba(223, 195, 158, 0.2);
    --color-success: #2ec4b6;

    /* Fuentes */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;

    /* Sombras y Efectos */
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(12px);
}

/* Reset de Estilos Básicos */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

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

ul {
    list-style: none;
}

/* Clases de Utilidad y Contenedor */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.text-center { text-align: center; }
.text-white { color: var(--color-text-white); }
.text-gray { color: var(--color-text-muted); }
.mx-auto { margin-right: auto; margin-left: auto; }

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
    box-shadow: 0 4px 15px rgba(223, 195, 158, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(223, 195, 158, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Spinner para formularios */
.btn-spinner {
    display: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-text-white);
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------
   HEADER / NAVBAR
------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 20, 33, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: rgba(11, 20, 33, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    height: 65px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    object-position: center 20%; /* Zoom into the GA monogram and crop the bottom text */
    border-radius: 50%;
    border: 1.5px solid var(--color-accent);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--color-text-white);
    background: linear-gradient(135deg, var(--color-text-white) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Menú móvil toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-white);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* Responsive Navbar móvil */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .btn-header {
        display: none;
    }
}

/* -------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
    background-color: var(--color-bg-dark);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 30%, rgba(22, 42, 69, 0.4) 0%, rgba(11, 20, 33, 0) 60%),
                radial-gradient(circle at 15% 80%, rgba(223, 195, 158, 0.08) 0%, rgba(11, 20, 33, 0) 50%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s forwards;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--color-sub-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.whatsapp-icon {
    margin-right: 0.2rem;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 1.2s forwards;
}

.logo-box {
    position: relative;
    padding: 2.5rem;
    background: radial-gradient(135deg, rgba(22, 42, 69, 0.4) 0%, rgba(11, 20, 33, 0.2) 100%);
    border-radius: 30px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-premium);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.logo-box::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    border: 1px solid rgba(223, 195, 158, 0.05);
    border-radius: 38px;
    pointer-events: none;
}

.logo-box:hover {
    transform: scale(1.03) rotate(1deg);
    border-color: rgba(223, 195, 158, 0.4);
}

.hero-logo-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 24px; /* Rounded rectangle instead of circle to prevent cutting text */
    overflow: hidden;
    border: 3px solid var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #122137;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15); /* Slightly zooms to crop the top/bottom black margins */
    transform-origin: center;
    margin-top: -8px; /* Shifts it up to center logo and text perfectly */
}

@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin-right: auto;
        margin-left: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-logo-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
}

/* -------------------------------------------------------------
   ESTILOS SECCIÓN COMÚN
------------------------------------------------------------- */
section {
    padding: 100px 0;
    position: relative;
}

.section-title-wrapper {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.2rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
}

/* -------------------------------------------------------------
   SERVICES SECTION (TABS DINÁMICOS)
------------------------------------------------------------- */
.services-section {
    background-color: rgba(17, 30, 48, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.tabs-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.tabs-nav {
    display: flex;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: 50px;
    gap: 0.5rem;
    max-width: 100%;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.tab-btn-icon {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.tab-btn.active {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
}

.tab-btn.active .tab-btn-icon {
    color: var(--color-text-dark);
}

.tab-btn:hover:not(.active) {
    color: var(--color-text-white);
    background-color: rgba(255, 255, 255, 0.03);
}

.tabs-content {
    position: relative;
    min-height: 400px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.6s ease;
}

.tab-panel.active {
    display: block;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.panel-info {
    max-width: 420px;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--color-text-white);
}

.panel-text {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.panel-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.panel-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.panel-list li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: 900;
}

.panel-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Tarjeta de Servicio Premium */
.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 2.2rem 1.8rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(223, 195, 158, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(223, 195, 158, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.card-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(223, 195, 158, 0.08);
    border: 1px solid rgba(223, 195, 158, 0.15);
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .card-icon-box {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
}

.service-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Tarjeta extendida completa */
.single-card-full {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    text-align: center;
}

.single-card-full .card-icon-box {
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 991px) {
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .panel-info {
        max-width: 100%;
        text-align: center;
    }
    
    .panel-list {
        align-items: center;
    }
}

@media (max-width: 575px) {
    .panel-cards {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------
   PILLARS SECTION (10 PILARES)
------------------------------------------------------------- */
.pillars-section {
    background-color: var(--color-bg-dark);
    position: relative;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.pillar-card {
    background-color: rgba(22, 42, 69, 0.25);
    border: 1px solid rgba(223, 195, 158, 0.35); /* Brighter gold border by default but integrated */
    padding: 2.2rem 1.8rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 0 12px rgba(223, 195, 158, 0.03);
}

.pillar-card:hover {
    background-color: rgba(22, 42, 69, 0.5);
    border-color: rgba(223, 195, 158, 0.85); /* Fully illuminated gold border on hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(223, 195, 158, 0.2); /* Gold glow on hover */
}

.pillar-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.75; /* Even higher default visibility for numbers */
    line-height: 1;
    margin-bottom: 1.2rem;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-number {
    opacity: 1; /* Fully bright gold on hover */
    color: var(--color-accent);
}

.pillar-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--color-text-white);
}

.pillar-text {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* -------------------------------------------------------------
   ABOUT SECTION
------------------------------------------------------------- */
.about-section {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, rgba(17, 30, 48, 0.5) 100%);
}

.about-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-text-lead {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.about-text-body {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-white);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.about-image-wrapper {
    position: relative;
    min-height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cuadrícula decorativa y marca */
.decorative-grid {
    position: absolute;
    width: 260px;
    height: 260px;
    background-image: radial-gradient(rgba(223, 195, 158, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    z-index: 1;
}

.about-brand-box {
    position: relative;
    z-index: 2;
    background: radial-gradient(135deg, rgba(22, 42, 69, 0.8) 0%, rgba(11, 20, 33, 0.9) 100%);
    border: 1px solid var(--color-accent);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    max-width: 320px;
    text-align: center;
    backdrop-filter: var(--glass-blur);
    animation: float 6s ease-in-out infinite;
}

.brand-box-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.brand-box-text {
    font-size: 0.92rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--color-text-white);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 991px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-image-wrapper {
        min-height: 300px;
    }
}

/* -------------------------------------------------------------
   CONTACT SECTION & FORM
------------------------------------------------------------- */
.contact-section {
    background-color: var(--color-bg-dark);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-desc {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* Ficha de Asesora */
.contact-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-person-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 1.5rem;
}

.contact-person-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.contact-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-text-white);
    display: block;
}

.contact-role {
    font-size: 0.85rem;
    color: var(--color-accent);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
}

.method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--color-accent);
}

.method-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.method-text strong {
    font-size: 1rem;
    color: var(--color-text-white);
}

.contact-method-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
}

.whatsapp-method {
    background-color: rgba(46, 196, 182, 0.03);
}

.whatsapp-method .method-icon {
    color: var(--color-success);
    background-color: rgba(46, 196, 182, 0.08);
}

.whatsapp-method:hover {
    background-color: rgba(46, 196, 182, 0.08);
    border-color: var(--color-success);
}

.whatsapp-method:hover .method-text strong {
    color: var(--color-success);
}

/* Formulario Premium */
.premium-form {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: var(--glass-blur);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-control {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    color: var(--color-text-white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

/* Floating labels */
.form-label {
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.92rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

textarea ~ .form-label {
    top: 1.5rem;
    transform: none;
}

/* Efectos focus y contenido */
.form-control:focus,
.form-control:not(:placeholder-shown) {
    border-color: var(--color-accent);
    outline: none;
    background-color: rgba(22, 42, 69, 0.3);
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: -8px;
    left: 0.8rem;
    font-size: 0.75rem;
    color: var(--color-accent);
    background-color: #122137;
    padding: 0 0.4rem;
    border-radius: 4px;
}

.form-status {
    margin-top: 1.2rem;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(46, 196, 182, 0.15);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.form-status.error {
    display: block;
    background-color: rgba(230, 74, 25, 0.15);
    color: #e64a19;
    border: 1px solid #e64a19;
}

@media (max-width: 991px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 575px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .premium-form {
        padding: 2rem 1.5rem;
    }
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.main-footer {
    background-color: #060c14;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 60px;
}

.footer-brand-col {
    max-width: 320px;
}

.footer-logo-img {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-accent);
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
}

.footer-socials a:hover {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.contact-details li {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
}

.contact-details li span {
    display: block;
    font-size: 0.78rem;
    color: var(--color-accent);
}

.contact-details li a {
    color: var(--color-text-white);
    font-weight: 600;
}

.footer-bottom {
    background-color: #04080d;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-bottom-container {
    display: flex;
    justify-content: center;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 575px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------
   WIDGETS Y BOTONES DE FLOTACIÓN
------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(22, 42, 69, 0.7);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    color: var(--color-text-white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-premium);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: var(--transition-smooth);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
    transform: translateY(-5px);
}

/* Botón Flotante de WhatsApp Premium */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(223, 195, 158, 0.4);
    z-index: 99;
    transition: var(--transition-smooth);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(223, 195, 158, 0.5);
    color: var(--color-bg-dark);
    animation: none;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(223, 195, 158, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(223, 195, 158, 0); }
    100% { box-shadow: 0 0 0 0 rgba(223, 195, 158, 0); }
}

/* -------------------------------------------------------------
   ANIMACIONES GENERALES
------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Clases de animación por scroll controladas por JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}
