/**
 * TopoTech LMS v5.0 - Landing Stylesheet
 * CSS moderno con variables, Grid, Flexbox, animaciones y responsive mobile-first
 * Cache-busting via query string: ?v=TIMESTAMP
 */

/* ============================================
   CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
    /* Colores corporativos */
    --color-primary:     #004466;
    --color-primary-rgb: 0, 68, 102;
    --color-secondary:   #ffaa00;
    --color-secondary-rgb: 255, 170, 0;
    --color-accent:      #ffaa00;
    --color-accent-light:#ffc94d;

    /* Neutros */
    --color-bg:          #f4f7f6;
    --color-bg-alt:      #e8edf0;
    --color-white:       #ffffff;
    --color-black:       #0a0a0a;
    --color-text:        #1a1a2e;
    --color-text-muted:  #6b7280;
    --color-text-light:  #9ca3af;
    --color-border:      #d1d5db;
    --color-border-light:#e5e7eb;

    /* Estados */
    --color-success:     #10b981;
    --color-error:       #ef4444;
    --color-warning:     #f59e0b;
    --color-info:        #3b82f6;

    /* Gradientes */
    --gradient-primary:  linear-gradient(135deg, var(--color-primary) 0%, #006699 100%);
    --gradient-overlay:  linear-gradient(135deg, rgba(0,68,102,0.92) 0%, rgba(0,20,40,0.85) 100%);
    --gradient-accent:   linear-gradient(135deg, var(--color-secondary) 0%, #ff8800 100%);
    --gradient-dark:     linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 100%);

    /* Tipografia */
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;

    /* Tamanos de fuente (escala modular) */
    --text-xs:   clamp(0.625rem, 0.8vw, 0.75rem);   /* 10-12px */
    --text-sm:   clamp(0.75rem, 0.9vw, 0.875rem);  /* 12-14px */
    --text-base: clamp(0.875rem, 1vw, 1rem);        /* 14-16px */
    --text-lg:   clamp(1rem, 1.2vw, 1.125rem);      /* 16-18px */
    --text-xl:   clamp(1.25rem, 1.5vw, 1.5rem);     /* 20-24px */
    --text-2xl:  clamp(1.5rem, 2vw, 2rem);          /* 24-32px */
    --text-3xl:  clamp(2rem, 3vw, 2.5rem);          /* 32-40px */
    --text-4xl:  clamp(2.5rem, 4vw, 3.5rem);        /* 40-56px */
    --text-5xl:  clamp(3rem, 5vw, 4.5rem);          /* 48-72px */

    /* Espaciado */
    --space-1:  0.25rem;  /* 4px */
    --space-2:  0.5rem;   /* 8px */
    --space-3:  0.75rem;  /* 12px */
    --space-4:  1rem;     /* 16px */
    --space-5:  1.25rem;  /* 20px */
    --space-6:  1.5rem;   /* 24px */
    --space-8:  2rem;     /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */

    /* Layout */
    --container-max:   1280px;
    --container-pad:   clamp(1rem, 4vw, 3rem);
    --section-pad-y:   clamp(3rem, 6vw, 6rem);
    --border-radius:   12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    /* Sombras */
    --shadow-sm:   0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:   0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl:   0 24px 60px rgba(0,0,0,0.16);
    --shadow-glow: 0 0 30px rgba(255,170,0,0.3);

    /* Transiciones */
    --transition-fast:   150ms ease;
    --transition-base:   300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-base:     1;
    --z-dropdown: 100;
    --z-sticky:   200;
    --z-modal:    1000;
    --z-toast:    1100;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul, ol {
    list-style: none;
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-accent   { color: var(--color-accent); }
.text-primary  { color: var(--color-primary); }
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Animacion de entrada */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--section-pad-y) 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-12);
}
.section__header--left {
    text-align: left;
}
.section__eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-2);
}
.section__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}
.section__title--left {
    text-align: left;
}
.section__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}
.section__footer {
    text-align: center;
    margin-top: var(--space-10);
}

/* Fondo oscuro para secciones */
.section--courses { background: var(--gradient-primary); }
.section--courses .section__subtitle { color: rgba(255,255,255,0.75); }
.section--dxf     { background: var(--gradient-primary); padding: var(--space-16) 0; }
.section--services{ background: var(--color-bg); }
.section--services .section__title { color: var(--color-text); }
.section--projects{ background: var(--color-bg-alt); }
.section--projects .section__title { color: var(--color-text); }
.section--videos  { background: var(--color-white); }
.section--videos  .section__title { color: var(--color-text); }
.section--blog    { background: var(--color-bg); }
.section--blog    .section__title { color: var(--color-text); }
.section--downloads{ background: var(--gradient-primary); }
.section--contact { background: var(--color-bg); }
.section--contact .section__title { color: var(--color-text); }
.section--testimonials { background: var(--color-bg-alt); }
.section--testimonials .section__title { color: var(--color-text); }

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.btn:hover::before {
    transform: translateX(100%);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--gradient-accent);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(255,170,0,0.35);
}
.btn--primary:hover {
    box-shadow: 0 8px 24px rgba(255,170,0,0.45);
}

.btn--accent {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}
.btn--accent:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
}
.btn--outline:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(255,170,0,0.05);
}

.btn--ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    font-weight: 600;
}
.btn--ghost:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--youtube {
    background: #ff0000;
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(255,0,0,0.3);
}
.btn--youtube:hover {
    background: #cc0000;
    box-shadow: 0 8px 24px rgba(255,0,0,0.4);
}

.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--block { width: 100%; }

.btn i {
    font-size: 0.9em;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}
.site-header.is-scrolled {
    background: rgba(0, 68, 102, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    height: 72px;
}

.navbar__logo {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 900;
    letter-spacing: -0.03em;
    z-index: 10;
    transition: transform var(--transition-fast);
}
.navbar__logo:hover {
    transform: scale(1.02);
}
.navbar__logo-topo {
    color: var(--color-secondary);
}
.navbar__logo-tech {
    color: var(--color-white);
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}
.navbar__menu a {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}
.navbar__menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}
.navbar__menu a:hover::after,
.navbar__menu a.active::after {
    width: 60%;
}
.navbar__menu a:hover {
    color: var(--color-secondary);
}
.navbar__menu a.active {
    color: var(--color-secondary);
}

/* Mobile menu toggle */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
    padding: var(--space-2);
}
.hamburger-line {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}
.navbar__toggle.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar__toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.navbar__toggle.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--container-pad);
    padding-top: 72px;
}
.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-4);
    animation: fadeInDown 0.8s ease both;
}
.hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero__subtitle {
    font-size: var(--text-xl);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero__cta {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Stats en hero */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
    margin-top: var(--space-12);
    animation: fadeInUp 0.8s ease 0.8s both;
}
.stat-item {
    text-align: center;
}
.stat-item__number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}
.stat-item__label {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-1);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}
.hero__scroll:hover {
    opacity: 1;
}

/* ============================================
   CURSOS
   ============================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;

}

.course-card {
    background: #ffffff !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 68, 102, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative; /* Mantiene a salvo el badge ONLINE */
    border: 1px solid #edf2f7;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 68, 102, 0.15);
}
.course-card .badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 2;
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    background: var(--color-success);
}
.course-card .badge-urgency {
    background: linear-gradient(135deg, #ff4444, #ff6600);
    animation: pulse 2s infinite;
}
.course-card .badge-online {
    background: var(--color-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.course-card-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f8fafc;
}

.course-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la foto perfectamente sin estirarla */
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-img img {
    transform: scale(1.06); /* Zoom elegante al pasar el mouse */
}
/* Contenedor del Texto */
.course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    background-color: #ffffff; /* Asegura fondo blanco */
}

.course-card-footer {
    margin-top: auto; /* Mantiene el botón pegado al final sin importar el texto */
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
}

/* El botón dentro de la tarjeta */
.course-card-footer .btn-reserve {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.course-card__body {
    padding: var(--space-5);
}
.course-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    line-height: 1.35;
}
.course-card__desc {
    font-size: var(--text-sm);
    color: rgba(11, 2, 65, 0.8);
    margin-bottom: var(--space-3);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}
.meta-item {
    font-size: var(--text-xs);
    color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}
.meta-item i {
    color: var(--color-secondary);
    font-size: 0.8em;
}

.course-card__price {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}
.price-transfer {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-secondary);
}
.price-mp {
    font-size: var(--text-sm);
    color: rgba(4, 1, 31, 0.37);
    text-decoration: line-through;
}

.course-card__actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.course-card__actions .btn {
    flex: 1 1 120px;
}
/* ======================================================= */
/* DISEÑO VIP REFACTORIZADO PARA EL BADGE "ONLINE" (V5)    */
/* ======================================================= */

/* Forzar que el contenedor del card sea el eje relativo del badge */
.course-card, 
.card-curso {
    position: relative;
}

/* Estilo de la etiqueta ONLINE flotante */
.badge--online {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #004466;      /* Azul oscuro principal */
    color: #ffaa00;                 /* Detalle en Naranja TopoTech */
    border: 1px solid #ffaa00;      /* Borde de realce corporativo */
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 14px;
    border-radius: 50px;            /* Diseño de píldora redondeada moderna */
    box-shadow: 0 4px 12px rgba(0, 68, 102, 0.25);
    z-index: 5;                     /* Flota con jerarquía por encima de la imagen del curso */
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Efecto de pulso en vivo para simular interactividad del Aula Virtual */
.badge--online::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #25d366;      /* Punto verde de 'Live/En vivo' */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulsoOnline 2s infinite;
}

@keyframes pulsoOnline {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ============================================
   DXF PROMO
   ============================================ */
.dxf-promo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.dxf-promo__img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    justify-self: end;
}
.dxf-promo__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}
.dxf-promo__text {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--space-6);
}
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.testimonial-card__stars {
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}
.testimonial-card__text {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    font-style: italic;
}
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-top: 1px solid var(--color-border-light);
    padding-top: var(--space-4);
}
.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-bg);
}
.testimonial-card__author strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text);
}
.testimonial-card__author span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ============================================
   SERVICIOS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--space-6);
}
.service-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.service-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.service-card:hover .service-card__img {
    transform: scale(1.05);
}
.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    font-size: 3rem;
    color: var(--color-primary);
    background: linear-gradient(135deg, #f4f7f6 0%, #e8edf0 100%);
}
.service-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    padding: var(--space-4) var(--space-5) var(--space-2);
    line-height: 1.3;
}
.service-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: 0 var(--space-5) var(--space-5);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-card .btn {
    margin: 0 var(--space-5) var(--space-5);
}

/* ========================================== */
/* ESTILOS: SECCIÓN DE PROYECTOS V5           */
/* ========================================== */

.projects-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 68, 102, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 68, 102, 0.15);
}

.project-img-wrapper {
    position: relative;
    height: 240px; /* Altura fija para que todas las fotos se vean alineadas */
    width: 100%;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen sin deformarla */
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05); /* Efecto de zoom leve */
}

/* Etiqueta flotante de categoría (Ej: "Planos") */
.project-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffaa00;
    color: #004466;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.25rem;
    color: #004466;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.project-content p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================== */
/* ESTILOS: MODAL DE PROYECTOS V5             */
/* ========================================== */
.project-modal-content {
    max-width: 950px !important;
    padding: 0 !important; /* Quitamos el padding para aprovechar el espacio */
    overflow: hidden;
}

.project-modal-body {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.project-modal-gallery {
    background: #f8fafc;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 1px solid #e2e8f0;
}

.project-modal-gallery img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: block;
}

.project-modal-info {
    padding: 30px;
    overflow-y: auto;
}

.project-category-badge {
    display: inline-block;
    background: #ffaa00;
    color: #004466;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.project-modal-title {
    font-size: 1.8rem;
    color: #004466;
    margin-bottom: 20px;
    line-height: 1.3;
}

.project-modal-desc {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
    text-align: justify;
}

/* Diseño para PC/Tablets grandes */
@media (min-width: 768px) {
    .project-modal-body {
        flex-direction: row;
    }
    .project-modal-gallery {
        width: 55%;
        border-bottom: none;
        border-right: 1px solid #e2e8f0;
        padding: 30px;
    }
    .project-modal-info {
        width: 45%;
        padding: 40px;
    }
}

/* ============================================
   VIDEOS
   ============================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-6);
}
.video-embed {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-black);
    transition: all var(--transition-base);
}
.video-embed:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.video-embed__wrap {
    position: relative;
    padding-top: 56.25%;
}
.video-embed__wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================== */
/* ESTILOS: SECCIÓN DE NOTICIAS (BLOG) V5     */
/* ========================================== */
.blog-section {
    padding: 80px 0;
    background-color: #f8fafc; /* Fondo ligeramente gris para contrastar con las tarjetas blancas */
    border-top: 1px solid #edf2f7;
}

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

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 68, 102, 0.12);
}

.blog-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.06);
}

/* Etiqueta de la fecha sobre la imagen */
.blog-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 68, 102, 0.9); /* Azul TopoTech */
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    color: #004466;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.blog-content p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Botón Leer Más */
.btn-read-more {
    color: #ffaa00; /* Naranja TopoTech */
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    align-self: flex-start;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-read-more i {
    transition: transform 0.2s ease;
}

.btn-read-more:hover {
    color: #004466; /* Cambia a azul al hacer hover */
}

.btn-read-more:hover i {
    transform: translateX(6px); /* La flechita se mueve a la derecha */
}

/* ============================================
   DESCARGAS
   ============================================ */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: var(--space-6);
}
.download-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}
.download-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}
.download-card__icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
}
.download-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-2);
}
.download-card__desc {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}
.contact-info__text {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}
.contact-info__list {
    margin-bottom: var(--space-6);
}
.contact-info__list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: var(--text-base);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
}
.contact-info__list i {
    color: var(--color-secondary);
    width: 20px;
    text-align: center;
}
.contact-info__social {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.contact-info__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 1rem;
    transition: all var(--transition-base);
}
.contact-info__social a:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}
.contact-info__map {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.contact-info__map iframe {
    width: 100%;
    height: 220px;
    border: none;
    display: block;
}

/* Formulario */
.contact-form-wrap {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.form-group label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.form-group label i {
    color: var(--color-secondary);
    font-size: 0.85em;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(255,170,0,0.15);
    background: var(--color-white);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

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

/* Mensaje de formulario */
.form-message {
    padding: var(--space-3);
    border-radius: var(--border-radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    display: none;
}
.form-message.is-visible {
    display: block;
}
.form-message--success {
    background: rgba(16,185,129,0.1);
    color: var(--color-success);
    border: 1px solid rgba(16,185,129,0.2);
}
.form-message--error {
    background: rgba(239,68,68,0.1);
    color: var(--color-error);
    border: 1px solid rgba(239,68,68,0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding-top: var(--space-16);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-10);
}
.footer-col--brand {
    padding-right: var(--space-8);
}
.footer-desc {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin: var(--space-4) 0;
    line-height: 1.7;
}
.footer-social {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: rgba(255,255,255,0.08);
    color: var(--color-white);
    font-size: 0.9rem;
    transition: all var(--transition-base);
}
.footer-social a:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-2px);
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}
.footer-links li {
    margin-bottom: var(--space-2);
}
.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    transition: all var(--transition-fast);
    display: inline-block;
}
.footer-links a:hover {
    color: var(--color-secondary);
    transform: translateX(4px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-6) 0;
    text-align: center;
}
.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ============================================
   MODALES
   ============================================ */
/* ========================================== */
/* MODAL DE PRESUPUESTO (FIJO EN PANTALLA)    */
/* ========================================== */

.modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* FIJO, para que no baje al footer */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex; /* Se muestra al agregar clase active */
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 30, 45, 0.85); /* Fondo oscuro */
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 10; /* Encima del overlay */
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease-out forwards;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.modal__close:hover {
    color: #e53e3e;
}

.modal__header h3 {
    margin-top: 0;
    color: #004466; /* Tu color primario */
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal__header {
    padding: var(--space-6) var(--space-8) 0;
}
.modal__header h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}
.modal__header p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}
.modal__body {
    padding: var(--space-6) var(--space-8);
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
}
.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.toast--success { background: var(--color-success); }
.toast--error   { background: var(--color-error); }

/* ============================================
   ALERTAS
   ============================================ */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.alert--info {
    background: rgba(59,130,246,0.1);
    color: var(--color-info);
    border: 1px solid rgba(59,130,246,0.15);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@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 bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .dxf-promo {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }
    .dxf-promo__img {
        justify-self: center;
        max-width: 360px;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .navbar__toggle {
        display: flex;
    }
    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        padding: calc(72px + var(--space-8)) var(--space-8) var(--space-8);
        background: rgba(0, 68, 102, 0.98);
        backdrop-filter: blur(12px);
        transition: right var(--transition-base);
        gap: 0;
        box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    }
    .navbar__menu.is-open {
        right: 0;
    }
    .navbar__menu a {
        display: block;
        width: 100%;
        padding: var(--space-3) 0;
        font-size: var(--text-base);
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .navbar__menu a::after {
        display: none;
    }

    .hero__stats {
        gap: var(--space-6);
    }
    .stat-item__number {
        font-size: var(--text-2xl);
    }

    .courses-grid,
    .services-grid,
    .projects-grid,
    .blog-grid,
    .downloads-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .project-filters {
        gap: var(--space-1);
    }
    .filter-btn {
        padding: var(--space-1) var(--space-3);
        font-size: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
    .footer-col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }

    .modal__content {
        margin: var(--space-2);
        max-height: 95vh;
    }
    .modal__body,
    .modal__header {
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: var(--text-4xl);
    }
    .hero__stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    .section__title {
        font-size: var(--text-2xl);
    }
    .btn--lg {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links a:hover {
        transform: none;
    }
}

/* ============================================
   SCROLLBAR CUSTOM
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #006699;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* ========================================== */
/* ESTILOS OPTIMIZADOS: SECCIÓN DJI PLANNER   */
/* ========================================== */
.djiplanner-section {
    background-color: #ffffff;
    padding: 80px 0;
    border-top: 1px solid #edf2f7;
}

.djiplanner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.djiplanner-image-block {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 68, 102, 0.08);
}

.djiplanner-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.djiplanner-image-block:hover .djiplanner-img {
    transform: scale(1.02);
}

/* Botón de Play Flotante */
.btn-play-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 68, 102, 0.95); /* Azul oscuro de TopoTech */
    color: #ffffff;
    border: 2px solid #ffaa00; /* Naranja corporativo */
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-play-trigger:hover {
    background: #ffaa00;
    color: #004466;
    border-color: #004466;
    transform: translate(-50%, -50%) scale(1.06);
}

/* ------------------------------------------ */
/* TIPOGRAFÍA CORREGIDA - ESTILO GLOBAL V5    */
/* ------------------------------------------ */
.djiplanner-content-block .section-subtitle {
    display: block;
    color: #ffaa00; /* Naranja de la marca */
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.djiplanner-content-block .section-title {
    color: #004466; /* Azul Oscuro de la marca */
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

/* TEXTO REFACTORIZADO Y JUSTIFICADO */
.djiplanner-text {
    color: #4a5568;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;        /* Forzamos justificado */
    text-justify: inter-word;  /* Distribución proporcional del espacio */
}

.djiplanner-text strong {
    color: #004466; /* Resaltados en el azul principal */
    font-weight: 600;
}

.djiplanner-actions {
    margin-top: 35px;
}

/* ------------------------------------------ */
/* ARQUITECTURA DEL MODAL DE VIDEO            */
/* ------------------------------------------ */
.djiplanner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.djiplanner-modal.active {
    display: flex;
    opacity: 1;
}

.djiplanner-modal-content {
    position: relative;
    width: 90%;
    max-width: 850px;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.djiplanner-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffffff;
    font-size: 34px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.djiplanner-modal-close:hover {
    color: #ffaa00;
}

.djiplanner-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.djiplanner-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Ajustes de Responsividad */
@media (max-width: 992px) {
    .djiplanner-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .djiplanner-img {
        height: 320px;
    }
    .djiplanner-content-block .section-title {
        font-size: 1.75rem;
    }
}

/* ========================================== */
/* ESTILOS: SECCIÓN SERVICIOS V5              */
/* ========================================== */
.services-section {
    padding: 80px 0;
    background-color: #f8fafc; /* Fondo gris ultra claro para destacar las tarjetas blancas */
    border-top: 1px solid #edf2f7;
}

.section-header.text-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-subtitle {
    display: block;
    color: #ffaa00;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.section-header .section-title {
    color: #004466;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.section-description {
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Grilla Automática (Móvil a Escritorio) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta Base */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Quita el subrayado a los enlaces */
    color: inherit;
}

/* Animación SOLO para tarjetas cliqueables (enlaces) */
.service-card.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 68, 102, 0.12);
}

.service-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom de imagen al pasar el mouse (solo enlaces) */
.service-card.interactive-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

/* Capa oscura con icono (Overlay) */
.service-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 68, 102, 0.5); /* Azul TopoTech transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-overlay i {
    color: #ffffff;
    font-size: 2.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.service-card.interactive-card:hover .service-overlay {
    opacity: 1;
}

.service-card.interactive-card:hover .service-overlay i {
    transform: translateY(0);
}

/* Contenido de texto */
.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: #004466;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.service-content p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Texto de "Ver Detalles" inferior */
.service-link-text {
    color: #ffaa00;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: color 0.2s ease;
}

.service-link-text i {
    transition: transform 0.2s ease;
}

.service-card.interactive-card:hover .service-link-text {
    color: #004466;
}

.service-card.interactive-card:hover .service-link-text i {
    transform: translateX(5px);
}

/* Utilidad para el botón final */
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }

/* ======================================================= */
/* ESTILOS PREMIUM PARA EL BOTÓN DE SOLICITUD DE PRESUPUESTO */
/* ======================================================= */
.cta-button, 
.open-budget-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ffaa00; /* Naranja corporativo vibrante */
    color: #004466;            /* Texto azul oscuro para un contraste impecable y accesible */
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 36px;
    border-radius: 50px;       /* Bordes redondeados VIP estilo V5 */
    border: 2px solid #ffaa00;
    cursor: pointer;
    text-decoration: none !important; /* Elimina cualquier subrayado de enlace */
    box-shadow: 0 4px 14px rgba(255, 170, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Transición fluida de aceleración */
}

/* EFECTO HOVER: Al pasar el mouse por encima */
.cta-button:hover, 
.open-budget-btn:hover {
    background-color: #004466; /* Cambia limpiamente al azul oscuro */
    color: #ffffff;            /* Texto blanco brillante */
    border-color: #004466;
    transform: translateY(-3px); /* Efecto de flotado suave */
    box-shadow: 0 8px 22px rgba(0, 68, 102, 0.3); /* Sombra más profunda azulada */
}

/* EFECTO ACTIVE: Al hacer clic físico en la pantalla */
.cta-button:active, 
.open-budget-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 68, 102, 0.2);
}

/* Contenedor del botón por si necesitas que esté perfectamente centrado debajo */
.services-action.text-center {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}