/* ==========================================================================
   ENFOQUE SNOEZELEN - SYSTEM DESIGN & STYLE SHEET
   ========================================================================== */

/* 1. VARIABLES & DESIGN TOKENS */
:root {
    /* Color Palette */
    --color-white: #ffffff;
    --color-bg-light: #f4f9fc;       /* Soft blue-white background */
    --color-blue-light: #e0f2fe;     /* Very light blue accent */
    --color-sky-light: #93c5fd;      /* Light sky blue */
    --color-sky: #60a5fa;            /* Main sky blue */
    --color-sky-dark: #3b82f6;       /* Deeper sky blue for interactive elements */
    --color-turquoise-light: #ccfbf1;/* Light turquoise background */
    --color-turquoise: #2dd4bf;      /* Main turquoise */
    --color-turquoise-dark: #14b8a6; /* Accent turquoise for actions */
    --color-navy: #1e3a8a;           /* Dark blue for headers/rigorous contrast */
    --color-dark: #0f172a;           /* Primary text / Slate 900 */
    --color-text-muted: #4b5563;     /* Body text / Gray 600 */
    --color-gray-light: #f3f4f6;     /* Card background / Gray 100 */
    --color-border: #e2e8f0;         /* Soft borders / Slate 200 */
    --color-success: #10b981;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(224, 242, 254, 0.85) 0%, rgba(204, 251, 241, 0.85) 100%);
    --gradient-primary: linear-gradient(135deg, var(--color-sky) 0%, var(--color-turquoise) 100%);
    --gradient-primary-hover: linear-gradient(135deg, var(--color-sky-dark) 0%, var(--color-turquoise-dark) 100%);
    --gradient-soft: linear-gradient(135deg, #e0f2fe 0%, #f0fdfa 100%);
    --gradient-light-gray: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    /* Typography */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Shadow & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 0 20px rgba(45, 212, 191, 0.25);

    /* Layout & Spacing */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. BASE STYLES & RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
#bubble-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.65;
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-navy);
    font-weight: 600;
    line-height: 1.25;
}

a {
    color: var(--color-sky-dark);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--color-turquoise-dark);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--border-radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-slow);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(96, 165, 250, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-white);
    border-color: var(--color-sky-light);
    color: var(--color-navy);
}

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

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.w-100 {
    width: 100%;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.section-padding {
    padding: 7rem 0;
    position: relative;
}

.bg-light {
    background-color: var(--color-bg-light);
}

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

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Section Headers */
.section-header {
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
}

.section-title {
    font-size: 2.25rem;
    color: var(--color-navy);
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-divider {
    height: 4px;
    width: 60px;
    background: var(--gradient-primary);
    margin: 0 auto 1.5rem auto;
    border-radius: var(--border-radius-full);
}

.section-divider.text-left {
    margin-left: 0;
}

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

/* Placeholder for Images */
.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: var(--gradient-soft);
    border: 2px dashed var(--color-sky-light);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--color-navy);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
}

.image-placeholder:hover {
    border-color: var(--color-turquoise);
    background: var(--color-turquoise-light);
}

.placeholder-text {
    opacity: 0.8;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.main-header.scrolled .brand-logo {
    height: 55px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 95px;
    max-width: 100%; /* Permitir que se expanda para dar más espacio a los enlaces */
    margin: 0 auto;
    padding: 0 2rem;
    transition: var(--transition-normal);
}

@media (min-width: 1400px) {
    .header-container {
        max-width: 1400px; /* Ancho máximo amplio para evitar solapamientos en ultra-wide */
        padding: 0 3rem;
    }
}

/* Brand Logo */
.logo-area {
    display: flex;
    align-items: center;
}

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

.brand-logo {
    height: 82px; /* Aumentado de 70px para mayor visibilidad e impacto de marca */
    width: auto;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
}

/* Fallback label in case logo fails or for visual placeholder */
.logo-fallback-text {
    display: none;
    font-family: var(--font-headings);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Navigation menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.4rem; /* Incrementado para separar los apartados espacialmente */
}

.nav-link {
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.875rem; /* Incrementado ligeramente */
    color: var(--color-navy);
    padding: 0.5rem 0;
    position: relative;
}

@media (min-width: 1280px) {
    .nav-menu ul {
        gap: 1.85rem; /* Separación amplia en pantallas grandes */
    }
    
    .nav-link {
        font-size: 0.925rem; /* Incrementado en alta resolución */
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    border-radius: var(--border-radius-full);
}

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

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

.nav-link.active {
    color: var(--color-sky-dark);
}

/* Mobile nav toggle button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-navy);
    position: relative;
    transition: var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-navy);
    transition: var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Active burger */
.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
   4. HERO / PORTADA
   ========================================================================== */
.hero-section {
    min-height: 65vh; /* Reducido para hacerlo más apaisado y panorámico */
    max-height: 700px; /* Límite máximo en pantallas muy altas */
    padding-top: 110px; /* Reducido de 140px */
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-bg-light);
    background-image: var(--gradient-hero);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* If the user puts hero-bg.jpg, this style will target it */
.hero-section.has-bg {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(224, 242, 254, 0.1) 100%), url('assets/hero-bg.jpg');
}

.hero-section.has-bg .hero-content {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem 2.25rem; /* Reducido de 4rem 3.5rem */
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
}

@media (max-width: 768px) {
    .hero-section.has-bg .hero-content {
        padding: 2rem 1.25rem;
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(45, 212, 191, 0.15) 0%, transparent 60%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-bottom: 1.5rem; /* Reducido de 4rem */
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-content-flex {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

.hero-text-block {
    width: 100%;
}

/* Logo box in hero initial section if fits visually */
.hero-logo-box {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.hero-brand-logo {
    height: 90px; /* Tamaño del logo en móvil/inicial */
    width: auto;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.4rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    background: var(--color-white);
    color: var(--color-navy);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--color-sky-light);
    margin-bottom: 0.75rem; /* Reducido de 1.5rem */
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 0.75rem; /* Reducido de 1.5rem */
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto 1.25rem auto; /* Reducido de 2.5rem */
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
}

/* ==========================================================================
   5. SECCIÓN: QUÉ ES SNOEZELEN
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: center;
}

.about-text-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.about-text-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}.about-media-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.sensory-video-container {
    width: 100%;
    max-width: 280px; /* Reducido el ancho máximo para mejorar la densidad de píxeles y la calidad del vídeo */
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-dark);
    position: relative;
    border: 1px solid var(--color-sky-light);
    aspect-ratio: 3 / 4; /* Cambiado a 3:4 para adaptarse al video vertical sin recortarlo en exceso */
    background-image: url('assets/fibra-optica-purpura.jpg');
    background-size: cover;
    background-position: center;
}

.sensory-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Eliminados filtros para mantener la calidad de imagen original y evitar ruido/grano en zonas oscuras */
    transition: var(--transition-normal);
}

.sensory-video:hover {
    transform: scale(1.01);
}

.about-highlight-box {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-turquoise);
    position: relative;
    overflow: hidden;
}

.about-highlight-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
    border-radius: var(--border-radius-full);
}

.quote-icon {
    font-size: 5rem;
    line-height: 0.1;
    color: var(--color-turquoise);
    opacity: 0.3;
    font-family: serif;
    position: absolute;
    top: 2.5rem;
    left: 2rem;
}

.about-highlight-box blockquote {
    font-family: var(--font-headings);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-navy);
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* Cards Grid (Ideas Clave) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-item {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(45, 212, 191, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--color-blue-light);
    color: var(--color-sky-dark);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-normal);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

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

.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-text {
    color: var(--color-text-muted);
    font-size: 0.975rem;
    line-height: 1.6;
}

/* ==========================================================================
   6. SECCIÓN: A QUIÉN VA DIRIGIDO
   ========================================================================== */
.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.target-card {
    background: var(--gradient-light-gray);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.target-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-sky-light);
    background: var(--color-white);
}

.target-card-img-box {
    width: calc(100% + 5rem);
    height: 180px;
    margin-top: -2.5rem;
    margin-left: -2.5rem;
    margin-right: -2.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
    border-bottom: 1.5px solid var(--color-border);
}

.target-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.target-card:hover .target-card-img {
    transform: scale(1.05);
}

.target-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    background: var(--color-white);
    color: var(--color-turquoise-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.target-card:hover .target-icon-wrapper {
    background: var(--color-turquoise-light);
    color: var(--color-turquoise-dark);
    transform: scale(1.05);
}

.target-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.target-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   7. SECCIÓN: FORMACIÓN
   ========================================================================== */
.formacion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.formacion-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
}

.formacion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-sky-light);
}

.formacion-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-blue-light);
    color: var(--color-navy);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
}

.formacion-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    padding-right: 2rem;
    font-weight: 600;
}

.formacion-card p {
    color: var(--color-text-muted);
    font-size: 0.925rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    flex-grow: 1;
}

.formacion-features {
    list-style: none;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.formacion-features li {
    font-size: 0.85rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.25rem;
}

.formacion-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.formacion-cta {
    margin-top: 2rem;
}

/* Curso Descripción */
.curso-descripcion-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4.5rem;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.curso-descripcion-text h3 {
    font-family: var(--font-headings);
    color: var(--color-navy);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.curso-descripcion-text p {
    font-size: 0.975rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.curso-descripcion-text p:last-child {
    margin-bottom: 0;
}

.curso-descripcion-image {
    width: 100%;
}

.curso-programa-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: block;
}

.curso-programa-img:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   8. SECCIÓN: SERVICIOS
   ========================================================================== */
.services-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: flex-start;
}

.services-intro-text {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    font-weight: 300;
}

.services-image-container {
    width: 100%;
    height: 380px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.services-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.services-image-container img:hover {
    transform: scale(1.03);
}

.services-list-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

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

.service-item:hover {
    transform: translateX(5px);
}

.service-number {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-sky-light);
    line-height: 1;
    transition: var(--transition-normal);
}

.service-item:hover .service-number {
    color: var(--color-turquoise);
    transform: scale(1.1);
}

.service-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-navy);
}

.service-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   9. SECCIÓN: RECURSOS (BIBLIOTECA / BLOG)
   ========================================================================== */
.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.recurso-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
}

.recurso-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-sky-light);
}

.recurso-img-box {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.recurso-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.recurso-card:hover .recurso-img-box img {
    transform: scale(1.05);
}

.img-contain-bg {
    background: #edf2f7;
}

.recurso-img-box img.recurso-img-contain {
    object-fit: contain;
    padding: 1rem;
    transition: var(--transition-slow);
}

.recurso-card:hover .recurso-img-contain {
    transform: scale(1.03) translateY(-2px);
}

.recurso-tag {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-navy);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius-full);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}

.recurso-body {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recurso-body h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.recurso-body p {
    color: var(--color-text-muted);
    font-size: 0.925rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    flex-grow: 1;
}

.recurso-link {
    font-family: var(--font-headings);
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--color-sky-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    transition: var(--transition-normal);
}

.recurso-link svg {
    transition: transform 0.3s ease;
}

.recurso-link:hover {
    color: var(--color-turquoise-dark);
}

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

/* ==========================================================================
   10. SECCIÓN: SOBRE MÍ
   ========================================================================== */
.about-me-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: flex-start;
}

.about-me-image-wrapper {
    width: 100%;
    position: relative;
}

/* Custom rounded frame style */
.about-me-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-turquoise-light);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    transition: var(--transition-slow);
}

.about-me-image-wrapper:hover::after {
    transform: translate(5px, 5px);
    border-color: var(--color-sky-light);
}

.about-me-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: block;
    transition: var(--transition-normal);
}

.about-me-img:hover {
    transform: scale(1.02);
}

.about-me-content .section-subtitle {
    display: block;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-turquoise-dark);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.about-me-lead {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    color: var(--color-sky-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.45;
    border-left: 3px solid var(--color-turquoise);
    padding-left: 1rem;
}

.about-me-content p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-me-values-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .about-me-values-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }
}

.about-me-accreditations {
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    width: 100%;
}

.about-me-accreditations h4 {
    font-size: 1.15rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accreditations-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.accreditation-logo {
    height: 125px;
    width: 125px;
    object-fit: cover;
    background: var(--color-white);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
    border: 1.5px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.accreditation-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-sky-light);
}

.value-item h3 {
    font-family: var(--font-headings);
    color: var(--color-navy);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.value-item p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   11. SECCIÓN: CONTACTO & FORMULARIO
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-form-container {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--color-border);
    background-color: var(--color-bg-light);
    color: var(--color-dark);
    transition: var(--transition-normal);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-sky);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-terms {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.form-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-sky);
}

/* Feedback for submission */
.form-feedback {
    display: none;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-feedback.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-feedback.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Contact Info Container */
.contact-info-container {
    background: var(--gradient-soft);
    border-radius: var(--border-radius-lg);
    padding: 3.5rem 3rem;
    border: 1px solid var(--color-sky-light);
}

.contact-info-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background: var(--color-white);
    color: var(--color-sky-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-text strong {
    display: block;
    font-family: var(--font-headings);
    font-size: 0.95rem;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.info-text span,
.info-text a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.info-text a:hover {
    color: var(--color-turquoise-dark);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-sky-dark);
    background: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--color-border);
}

.social-links a:hover {
    background: var(--color-turquoise-light);
    color: var(--color-turquoise-dark);
    border-color: var(--color-turquoise);
}

/* ==========================================================================
   12. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.main-footer {
    background-color: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 0 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--color-turquoise);
    position: relative;
    z-index: 5;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-wrapper {
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 90px;
    background: var(--color-white);
    padding: 0.35rem;
    border-radius: var(--border-radius-sm);
}

.footer-accreditations {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-accreditation-logo {
    height: 90px;
    width: 90px;
    object-fit: cover;
    background: var(--color-white);
    border-radius: var(--border-radius-sm);
    padding: 0.35rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.footer-accreditation-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-turquoise);
}

.footer-tagline {
    font-family: var(--font-headings);
    font-style: italic;
    line-height: 1.6;
    font-weight: 300;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.main-footer h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.main-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-footer ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
}

.main-footer ul a:hover {
    color: var(--color-turquoise);
    padding-left: 4px;
}

.footer-social .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    background-color: rgba(15, 23, 42, 0.3);
}

.footer-bottom-container {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

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

/* ==========================================================================
   14. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet Layout (1024px and down) */
@media (max-width: 1024px) {
    .curso-descripcion-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.25rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .target-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .formacion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .recursos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .services-wrapper {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .services-image-container {
        height: 300px;
    }

    .about-me-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .about-me-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* Mobile Nav Styles & Toggles (768px and down) */
@media (max-width: 768px) {
    .about-me-values {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .section-padding {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 3.5rem;
    }

    .about-highlight-box {
        padding: 2.25rem 1.75rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--color-white);
        overflow: hidden;
        transition: var(--transition-slow);
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu.active {
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 3rem 1.5rem;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.15rem;
    }

    .header-actions {
        display: none; /* Hide header CTA on mobile, they can scroll to contact form */
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-container {
        padding: 2.25rem 1.5rem;
    }

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

    .contact-info-container {
        padding: 2.25rem 1.5rem;
    }
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .target-grid {
        grid-template-columns: 1fr;
    }

    .formacion-grid {
        grid-template-columns: 1fr;
    }

    .recursos-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   15. LIGHTBOX / MODAL DE IMÁGENES
   ========================================================================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 2rem;
    box-sizing: border-box;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.35s ease;
    object-fit: contain;
    background: var(--color-white);
    padding: 0.5rem;
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 300;
    transition: var(--transition-normal);
    cursor: pointer;
    line-height: 1;
    z-index: 1510;
}

.modal-close:hover {
    color: var(--color-turquoise);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .image-modal {
        padding: 1rem;
    }
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
        padding: 0.25rem;
    }
    .modal-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   16. SECCIÓN: PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--color-sky-light);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    background: none;
    border: none;
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-navy);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-normal);
}

.faq-question:hover {
    color: var(--color-turquoise-dark);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--color-turquoise);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: var(--gradient-light-gray);
}

.faq-answer-inner {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--color-border);
}

.faq-answer p {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.faq-answer li {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .faq-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ==========================================================================
   17. SECCIÓN: CONTACTO - MAPA DE UBICACIÓN
   ========================================================================== */
.contact-map-wrapper {
    margin-top: 1rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    position: relative;
    max-width: 100%;
}

.contact-map-link {
    display: block;
    position: relative;
}

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

.contact-map-link:hover .contact-map-img {
    transform: scale(1.05);
}

.contact-map-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-full);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.contact-map-link:hover .contact-map-badge {
    background: var(--color-turquoise);
    color: var(--color-white);
}

/* ==========================================================================
   18. HERO SPLIT GRID & CONTACTO FLOTANTE (STICKY SIDEBAR)
   ========================================================================== */
.hero-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    text-align: center;
}

.hero-contact-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 1.15rem 1.25rem; /* Reducido a la mitad */
    border-radius: var(--border-radius-lg);
    text-align: left;
    max-width: 320px; /* Reducido de 480px */
    margin: 0 auto;
    width: 100%;
}

.hero-contact-card h3 {
    font-family: var(--font-headings);
    font-size: 1.05rem; /* Reducido */
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.hero-contact-card p {
    font-size: 0.775rem; /* Reducido */
    color: var(--color-text-muted);
    margin-bottom: 0.75rem; /* Reducido */
    line-height: 1.4;
}

.quick-contact-form {
    display: flex;
    flex-direction: column;
}

.form-group-quick {
    margin-bottom: 0.65rem; /* Reducido */
}

.form-group-quick label {
    display: block;
    font-size: 0.75rem; /* Reducido */
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
    font-family: var(--font-headings);
}

.form-group-quick input,
.form-group-quick textarea {
    width: 100%;
    padding: 0.45rem 0.65rem; /* Reducido */
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 0.825rem; /* Reducido */
    background: var(--color-white);
    transition: var(--transition-normal);
}

.form-group-quick input:focus,
.form-group-quick textarea:focus {
    outline: none;
    border-color: var(--color-turquoise);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.form-terms-quick {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.85rem; /* Reducido */
}

.form-terms-quick input[type="checkbox"] {
    width: auto;
    margin-top: 0.15rem;
    cursor: pointer;
}

.form-terms-quick label {
    font-size: 0.725rem; /* Reducido */
    color: var(--color-text-muted);
    line-height: 1.35;
    cursor: pointer;
}

.form-terms-quick a {
    color: var(--color-turquoise-dark);
    text-decoration: underline;
    font-weight: 500;
}

.hero-contact-card .btn {
    padding: 0.5rem 1rem; /* Reducido */
    font-size: 0.825rem; /* Reducido */
}

.form-feedback-quick {
    margin-top: 0.75rem;
    font-size: 0.775rem;
    text-align: center;
    font-weight: 600;
}

/* Estilos de escritorio a partir de 1024px: Menú en dos columnas, tarjeta de formulario estática (se desplaza con el scroll de manera normal) para evitar solapar el contenido en pantallas de laptop medianas */
@media (min-width: 1024px) {
    .hero-grid-wrapper {
        display: grid;
        grid-template-columns: 1.25fr 0.75fr;
        gap: 3.5rem;
        text-align: left;
        align-items: center;
    }

    .hero-section .hero-content {
        text-align: left;
        max-width: 780px; /* Aumentado ligeramente para dar espacio al diseño horizontal */
        margin: 0;
    }

    .hero-content-flex {
        flex-direction: row; /* Posición apaisada: texto a la izquierda, logo a la derecha */
        gap: 2rem;
        align-items: center;
    }

    .hero-text-block {
        flex: 1;
        text-align: left;
    }

    .hero-section .hero-content .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-section .hero-content .hero-buttons {
        justify-content: flex-start;
    }

    .hero-section .hero-logo-box {
        justify-content: center;
        margin: 0;
    }

    .hero-section .hero-brand-logo {
        height: 120px; /* Logo más grande en el extremo derecho del cuadro */
        padding: 0.5rem;
    }

    .hero-sidebar {
        position: relative;
        height: auto;
    }

    .hero-contact-card {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        box-shadow: var(--shadow-md);
        z-index: 10;
    }

    /* En pantallas de portátil medianas, las secciones ocupan todo su espacio central sin estrecharse */
    .container {
        padding-right: 1.5rem; /* Sin desplazamiento adicional en portátil: el formulario se desplaza hacia arriba y sale de pantalla */
    }

    /* Keep header, footer and the hero container itself full width */
    .header-container, 
    .hero-container, 
    .footer-container, 
    .footer-bottom-container {
        padding-right: 1.5rem !important;
    }
}

/* A partir de 1240px (pantallas de escritorio estándar): la tarjeta se fija en el lateral derecho y el contenido se desplaza ligeramente */
@media (min-width: 1240px) {
    .hero-contact-card {
        position: fixed;
        top: 120px;
        right: 1.25rem; /* Pinned to the extreme right edge */
        width: 260px;
        max-width: 260px;
        z-index: 100;
        background: rgba(255, 255, 255, 0.93);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
        padding: 1.15rem 1.25rem;
        border-radius: var(--border-radius-lg);
        transition: transform 0.1s ease-out, box-shadow var(--transition-normal);
        margin: 0;
    }

    .container {
        padding-right: 280px; /* Desplazamiento mínimo para dar espacio al formulario flotante fijo */
    }
}

/* En pantallas de alta resolución (1380px o más), los márgenes del centrado absorben espacio y ensanchan el contenido */
@media (min-width: 1380px) {
    .container {
        padding-right: 160px; /* El contenido gana 120px de ancho y no queda tan vertical */
    }
}

/* En pantallas extra anchas (1500px o más), centrado 100% perfecto */
@media (min-width: 1500px) {
    .container {
        padding-right: 1.5rem; /* Ancho completo de 1200px y centrado absoluto, el formulario flota en el margen vacío de pantalla */
    }
}


/* ==========================================================================
   19. CORRECCIÓN DE INTERACCIÓN EN FORMULARIOS
   Evita que capas decorativas o problemas de apilado intercepten el clic/foco.
   ========================================================================== */

/* Las capas puramente decorativas nunca deben capturar clics. */
.hero-bg-overlay,
.hero-wave,
#bubble-canvas {
    pointer-events: none !important;
}

/* Asegura que la sección y el formulario principal estén por encima de
   elementos decorativos de la página. */
#contacto {
    position: relative;
    z-index: 20;
}

.contact-form-container {
    position: relative;
    z-index: 21;
    isolation: isolate;
}

#contact-form,
#hero-quick-form,
.hero-sidebar,
.hero-contact-card {
    pointer-events: auto !important;
}

/* Fuerza la interacción normal de todos los controles de ambos formularios. */
#contact-form input,
#contact-form textarea,
#contact-form select,
#contact-form button,
#contact-form label,
#hero-quick-form input,
#hero-quick-form textarea,
#hero-quick-form select,
#hero-quick-form button,
#hero-quick-form label {
    pointer-events: auto !important;
}

/* Los campos de texto deben poder recibir foco, seleccionar y editar texto. */
#contact-form input:not([type="checkbox"]),
#contact-form textarea,
#hero-quick-form input:not([type="checkbox"]),
#hero-quick-form textarea {
    position: relative;
    z-index: 1;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
}

/* El desplegable conserva un cursor apropiado. */
#contact-form select,
#hero-quick-form select {
    cursor: pointer;
}
