@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #1A3E5C;        /* Azul Institucional Escolar */
    --color-primary-light: #255883;  /* Azul primario más suave */
    --color-primary-dark: #102639;   /* Azul primario profundo */
    --color-secondary: #3B9EBF;      /* Celeste Técnico Seguridad */
    --color-secondary-light: #EBF7FC;/* Celeste muy claro para fondos */
    --color-accent: #3d9465;         /* Verde Protección / Cuidado (tradicional seguridad) */
    --color-accent-light: #EAF7F0;   /* Verde claro para badges/fondos */
    --color-accent-hover: #2e734e;   /* Verde oscuro para hover */
    
    /* Backgrounds & Neutral Colors */
    --color-bg-light: #F8FAFC;       /* Fondo general limpio */
    --color-bg-white: #FFFFFF;       /* Blanco puro */
    --color-text-main: #1E293B;      /* Texto principal (Slate 800) */
    --color-text-muted: #64748B;     /* Texto secundario (Slate 500) */
    --color-text-light: #94A3B8;     /* Texto suave/desactivado */
    --color-border: #E2E8F0;         /* Bordes finos */
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(26, 62, 92, 0.05), 0 2px 4px -1px rgba(26, 62, 92, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(26, 62, 92, 0.08), 0 4px 6px -2px rgba(26, 62, 92, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(26, 62, 92, 0.12), 0 10px 10px -5px rgba(26, 62, 92, 0.06);
    --shadow-hover: 0 25px 50px -12px rgba(26, 62, 92, 0.2);
    
    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

button, input, textarea {
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

/* ==========================================================================
   LAYOUT & CONTAINER UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background-color: var(--color-bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-secondary-light);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    border: 1px solid rgba(59, 158, 191, 0.2);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
}

.section-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    box-shadow: 0 4px 14px rgba(26, 62, 92, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 62, 92, 0.3);
}

.btn-secondary {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    box-shadow: 0 4px 14px rgba(61, 148, 101, 0.2);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 148, 101, 0.3);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */
.header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 70px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(26, 62, 92, 0.05);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
    padding: 8px 0;
    position: relative;
}

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

.nav-link:hover {
    color: var(--color-primary);
}

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

.nav-link.active {
    color: var(--color-primary);
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--color-primary);
}

/* Mobile Toggle Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    transform-origin: left center;
}

/* ==========================================================================
   HERO / INICIO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(59, 158, 191, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(61, 148, 101, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #FFFFFF 0%, var(--color-bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-color: var(--color-secondary-light);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
    opacity: 0.7;
}

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

.hero-content {
    max-width: 620px;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: var(--color-accent-light);
    color: var(--color-accent-hover);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    border: 1px solid rgba(61, 148, 101, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hero-tagline svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

/* Premium abstract graphics for school prevention */
.hero-card-decor {
    width: 100%;
    max-width: 440px;
    height: 480px;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.hero-card-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    padding: 30px;
    color: white;
    position: relative;
}

.hero-card-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 30px;
    height: 30px;
    background: var(--color-bg-white);
    transform: rotate(45deg);
}

.hero-card-header h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.hero-card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hero-card-body {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-metric-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--color-border);
}

.hero-metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-metric-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-secondary-light);
    color: var(--color-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-metric-icon.accent {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.hero-metric-text h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.hero-metric-text p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Floating Badges in Hero */
.floating-badge {
    position: absolute;
    background-color: var(--color-bg-white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    transition: var(--transition-smooth);
}

.floating-badge:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.badge-1 {
    top: -25px;
    left: calc(50% - 130px); /* Centrado con leve desplazamiento a la izquierda, libre de colisiones horizontales */
    animation: float 6s ease-in-out infinite;
}

.badge-2 {
    bottom: -25px;
    right: calc(50% - 130px); /* Centrado con leve desplazamiento a la derecha, libre de colisiones horizontales */
    animation: float 6s ease-in-out infinite 3s;
}

.floating-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.floating-icon.green {
    background-color: var(--color-accent);
}

.floating-icon.blue {
    background-color: var(--color-secondary);
}

.floating-icon svg, .floating-icon i {
    width: 18px;
    height: 18px;
}

.badge-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.badge-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* ==========================================================================
   PERFIL PROFESIONAL SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Placeholder for professional portrait with abstract overlay */
.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 62, 92, 0.4) 0%, rgba(26, 62, 92, 0.95) 100%),
                repeating-linear-gradient(45deg, #e5e9f0 0px, #e5e9f0 10px, #edf2f7 10px, #edf2f7 20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
}

.about-image-placeholder h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.about-image-placeholder p {
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-badge-floating {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 6px solid var(--color-bg-light);
    animation: rotateSlow 20s linear infinite;
}

.about-badge-floating-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.5;
}

.about-text {
    color: var(--color-text-muted);
}

.about-keypoints {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.keypoint-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.keypoint-icon {
    width: 24px;
    height: 24px;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.keypoint-text h5 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.keypoint-text p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   SERVICIOS SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--color-secondary-light);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.service-card:hover .service-title {
    color: var(--color-primary-light);
}

.service-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.service-card:hover .service-link {
    color: var(--color-primary);
}

.service-link svg {
    transition: var(--transition-fast);
}

.service-card:hover .service-link svg {
    transform: translateX(4px);
}

/* ==========================================================================
   CONTACTO SECTION
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-intro-text {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.contact-method-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.contact-method-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background-color: var(--color-secondary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon.whatsapp {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.contact-method-details h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.contact-method-details p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.social-links-container {
    margin-top: 10px;
}

.social-links-container h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.social-icons-grid {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-btn svg, .social-btn i {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.social-btn.facebook:hover { background-color: #1877F2; }
.social-btn.instagram:hover { background-color: #E1306C; }
.social-btn.linkedin:hover { background-color: #0A66C2; }

/* Contact CTA Box */
.contact-cta-box {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-cta-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-cta-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 2rem;
}

.contact-cta-box h3 {
    color: white;
    font-size: 1.85rem;
    margin-bottom: 12px;
}

.contact-cta-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.footer-logo-text h3 {
    color: white;
    font-size: 1.25rem;
}

.footer-logo-text p {
    font-size: 0.7rem;
    color: var(--color-secondary);
}

.footer-description {
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-link a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

a.footer-contact-item:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-bottom a:hover {
    color: white;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(45px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Fade-In Styles */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero::before {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-visual {
        order: 2;
    }
}

@media (max-width: 768px) {
    .floating-badge {
        display: none !important;
    }

    :root {
        --header-height: 70px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Hamburger Menu visible */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-bg-white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: var(--transition-smooth);
        z-index: 1000;
        padding: 40px;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(2px, 2px);
    }
    
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(2px, -2px);
    }
    
    .contact-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-cta-box {
        order: -1; /* Muestra el cuadro azul del llamado a la acción (WhatsApp/Email) al inicio en dispositivos móviles */
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .about-keypoints {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   NUEVAS CLASES: LOGO, RETRATO REAL, CURRÍCULUM Y COMPONENTES DINÁMICOS
   ========================================================================== */
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo .logo-img {
    height: 44px;
}

.about-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-frame:hover .about-portrait {
    transform: scale(1.05);
}

/* Acreditaciones y Currículum Grid */
.credentials-section {
    background-color: var(--color-bg-light);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.credential-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.credential-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.credential-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-secondary-light);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.credential-card:hover .credential-icon {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.credential-details h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

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

/* Sección de Vídeo Responsivo (Slideshow de Simulacro) */
.video-section {
    background-color: var(--color-bg-white);
}

.video-slider-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.video-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    background-color: var(--color-primary-dark);
}

.video-slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 500px;
}

.video-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.video-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #0b151f;
    overflow: hidden;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Overlay de Cristal (Glassmorphic Play Card) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(11, 21, 31, 0.35);
    z-index: 5;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-overlay-card {
    background: rgba(26, 62, 92, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 36px 40px;
    max-width: 580px;
    width: calc(100% - 40px);
    margin: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-slide:hover .video-overlay-card {
    transform: scale(1.02);
}

.video-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 0 0 rgba(59, 158, 191, 0.5);
    animation: pulse-secondary 2s infinite;
}

.video-play-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-left: 2px; /* Centrado visual */
}

.video-play-btn:hover {
    background-color: var(--color-accent);
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 0 0 15px rgba(61, 148, 101, 0);
}

.video-overlay-text h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.video-overlay-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Botones de navegación del reproductor */
.video-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(11, 21, 31, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}

.video-slider-btn:hover {
    background-color: var(--color-secondary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-lg);
}

.video-slider-btn-prev { left: 20px; }
.video-slider-btn-next { right: 20px; }

/* Cinta de Miniaturas */
.video-thumbnail-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.video-thumbnail {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.video-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.video-thumbnail.active {
    border-color: var(--color-secondary);
    background: var(--color-secondary-light);
    box-shadow: var(--shadow-md);
}

.v-thumb-preview {
    width: 70px;
    height: 52px;
    border-radius: var(--radius-sm);
    position: relative;
    flex-shrink: 0;
    background-color: #0b151f;
    overflow: hidden;
}

.v-thumb-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v-thumb-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 21, 31, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.video-thumbnail:hover .v-thumb-play {
    background: rgba(11, 21, 31, 0.1);
}

.v-thumb-play svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.v-thumb-meta {
    overflow: hidden;
}

.v-thumb-meta h4 {
    font-size: 0.85rem;
    margin-bottom: 2px;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v-thumb-meta p {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes pulse-secondary {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 158, 191, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(59, 158, 191, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 158, 191, 0);
    }
}

/* Adaptación Responsiva de Video Slider */
@media (max-width: 768px) {
    .video-slider-wrapper {
        height: 380px;
    }
    .video-thumbnail-strip {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        scrollbar-width: thin;
        scrollbar-color: var(--color-secondary) transparent;
    }
    .video-thumbnail-strip::-webkit-scrollbar {
        height: 6px;
    }
    .video-thumbnail-strip::-webkit-scrollbar-thumb {
        background: var(--color-secondary);
        border-radius: var(--radius-full);
    }
    .video-thumbnail {
        flex-shrink: 0;
        width: 200px;
        padding: 8px;
    }
    .video-overlay-card {
        padding: 24px 20px;
    }
    .video-overlay-text h3 {
        font-size: 1.15rem;
    }
    .video-overlay-text p {
        font-size: 0.8rem;
    }
    .video-play-btn {
        width: 60px;
        height: 60px;
    }
    .video-slider-btn {
        width: 40px;
        height: 40px;
    }
    .video-slider-btn-prev { left: 10px; }
    .video-slider-btn-next { right: 10px; }
}

@media (max-width: 480px) {
    .video-slider-wrapper {
        height: 260px;
    }
    .video-overlay-card {
        padding: 16px 12px;
        gap: 12px;
    }
    .video-overlay-text h3 {
        font-size: 1.05rem;
    }
    .video-overlay-text p {
        display: none; /* Ocultar párrafo en móviles ultra compactos */
    }
    .video-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .video-play-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Galería / Slideshow Interactiva */
.gallery-section {
    background-color: var(--color-bg-light);
}

.gallery-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    background-color: var(--color-primary-dark);
}

.slider-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 520px;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #0c1520; /* Fondo premium oscuro neutro para que resalten las fotos verticales */
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    color: white;
    padding: 40px 24px 20px 24px;
    font-family: var(--font-body);
    pointer-events: none;
}

.slide-caption h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.slide-caption p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.slider-btn-prev { left: 20px; }
.slider-btn-next { right: 20px; }

.thumbnail-strip {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    overflow-x: auto;
    padding: 10px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) transparent;
    justify-content: flex-start;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: var(--radius-full);
}

.thumbnail {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.5;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.thumbnail:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.thumbnail.active {
    border-color: var(--color-secondary);
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .slider-container {
        height: 380px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    .slider-btn-prev { left: 10px; }
    .slider-btn-next { right: 10px; }
    .thumbnail {
        width: 70px;
        height: 50px;
    }
}

/* ==========================================================================
   PRINT STYLES FOR BEAUTIFUL PDF PREVIEWS
   ========================================================================== */
@media print {
    /* Force exact color/background rendering */
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* Force all fade-in elements to be visible */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Adjust page margins */
    @page {
        size: A4;
        margin: 15mm 12mm 15mm 12mm;
    }

    body {
        background-color: var(--color-bg-light) !important;
        color: var(--color-text-main) !important;
        font-size: 14px;
        line-height: 1.5;
    }

    /* Clean Static Header */
    .header {
        position: static !important;
        background-color: var(--color-bg-white) !important;
        box-shadow: none !important;
        border-bottom: 1px solid var(--color-border) !important;
        height: auto !important;
        padding: 10px 0 !important;
    }
    
    .header.scrolled {
        position: static !important;
        background-color: var(--color-bg-white) !important;
        box-shadow: none !important;
        border-bottom: 1px solid var(--color-border) !important;
    }

    .hamburger, .nav-menu {
        display: none !important;
    }

    /* Adjust section paddings */
    .section {
        padding: 40px 0 !important;
        page-break-inside: auto !important;
    }

    /* Avoid page-breaks inside elements */
    .hero-card-decor,
    .about-frame,
    .about-badge-floating,
    .keypoint-item,
    .service-card,
    .contact-method-card,
    .contact-cta-box,
    .footer-top,
    .footer-bottom {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    /* Adjust Hero Layout for Print */
    .hero {
        min-height: auto !important;
        padding-top: 20px !important;
        padding-bottom: 40px !important;
        background: radial-gradient(circle at 80% 20%, rgba(59, 158, 191, 0.1) 0%, transparent 50%),
                    linear-gradient(180deg, #FFFFFF 0%, var(--color-bg-light) 100%) !important;
    }

    .hero::before {
        display: none !important;
    }

    .hero .container {
        grid-template-columns: 1.1fr 0.9fr !important;
        gap: 30px !important;
    }

    /* Layout Grids */
    .about-grid, .contact-layout {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns print better on A4 width */
        gap: 20px !important;
    }

    /* Action Buttons in Print */
    .hero-actions {
        display: none !important; /* Hide buttons like "Escribir a WhatsApp" in printable PDF */
    }

    .contact-cta-box .btn, .service-link {
        display: none !important;
    }

    /* Ensure text colors are readable */
    h1, h2, h3, h4, h5, h6 {
        color: var(--color-primary) !important;
    }

    .hero-title span {
        background: none !important;
        -webkit-text-fill-color: var(--color-primary-light) !important;
        color: var(--color-primary-light) !important;
    }
}
