/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #F97316;
    --primary-hover: #EA580C;
    --dark-blue: #0F172A;
    --mid-blue: #334155;
    --light-gray: #F8FAFC;
    --white-color: #FFFFFF;
    --border-color: #E2E8F0;
    --font-family: 'Poppins', sans-serif;
    --text-dark-blue: #042a63; /* Añadida para la navbar */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--mid-blue);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* ============================================= */
/* ===== HEADER Y NAVBAR (NUEVO)     ===== */
/* ============================================= */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    background: white;
    height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    position: relative;
    width: auto;
    height: 72px;
    display: flex;
    align-items: center;
    overflow: visible;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    transition: opacity 250ms ease, transform 250ms ease;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo img.logo--siglas {
    height: 72px;
    opacity: 1;
}

.logo img.logo--full {
    height: 44px;
    opacity: 0;
}

.navbar.scrolled .logo img.logo--siglas {
    opacity: 0;
}

.navbar.scrolled .logo img.logo--full {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding-left: 0;
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    text-decoration: none;
    color: inherit;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #002b55;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== NUEVOS ESTILOS PARA BOTONES DE ACCIÓN (INICIA) ===== */

/* Contenedor para los nuevos botones de escritorio */
.navbar-actions-desktop {
  display: flex;
  flex-direction: row; /* Coloca los botones uno al lado del otro */
  gap: 10px; /* Espacio horizontal entre los botones */
  align-items: center; /* Centra los botones verticalmente */
  flex-shrink: 0; /* Evita que se encojan */
}

/* Botón "Iniciar Sesión" (Estilo Secundario - Outline) */
.cta-nav {
  display: inline-block;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1px solid var(--text-dark-blue);
  background: var(--white-color); /* Fondo blanco */
  color: var(--text-dark-blue); /* Texto azul */
  text-align: center;
  white-space: nowrap; 
  text-decoration: none;
}

.cta-nav:hover {
  background: #f8fafd; /* Azul pálido */
  border-color: var(--text-dark-blue);
  transform: translateY(-1px);
}

/* Botón "Pagos en Línea" (Estilo Principal - Sólido) */
.cta-nav.cta-nav--highlight {
  background: var(--text-dark-blue);
  border-color: var(--text-dark-blue);
  color: #fff;
}

.cta-nav.cta-nav--highlight:hover {
  background: #03214d; /* Azul más oscuro */
  border-color: #03214d;
}

/* ===== NUEVOS ESTILOS PARA BOTONES DE ACCIÓN (TERMINA) ===== */


.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #042a63;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(4, 42, 99, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.cta:hover {
    transform: translateY(-3px) scale(1.02);
}

.nav-links__cta-mobile,
.hamburger-btn,
.overlay {
    display: none;
}
/* ============================================= */
/* ===== FIN DE HEADER Y NAVBAR (NUEVO) ===== */
/* ============================================= */


/* ============================================= */
/* ===== SUB-NAVEGACIÓN DE SERVICIOS ===== */
/* ============================================= */
main {
    padding-top: 110px;
}

.services-nav-wrapper {
    background-color: #f0f4f8;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.services-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    background-color: var(--white-color);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.services-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mid-blue);
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center; /* Para móvil */
}

.services-nav-btn:hover {
    background-color: #f0f4f8;
    color: var(--dark-blue);
}

.services-nav-btn.active {
    background-color: #eef5fd;
    color: #042a63;
    border-color: #a4ccf1;
    box-shadow: 0 2px 8px rgba(4, 42, 99, 0.1);
}

.services-nav-btn i {
    font-size: 1.5rem;
}

.content-group {
    display: block;
    animation: fadeIn 0.6s ease;
}

.content-group.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #28306e;
    color: var(--white-color);
    border: 2px solid #334155;
}

.btn-primary:hover {
    background-color: #4c569c;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white-color);
    color: #042a63;
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #eef2f7;
    transform: translateY(-2px);
}

.btn-large {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* --- Sección Hero (Zeitplan) --- */
#hero {
    background-color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: var(--dark-blue);
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* ============================================= */
/* ===== SECCIÓN: ¿POR QUÉ USAR ZEITPLAN?  ===== */
/* ============================================= */
#why-zeitplan {
    background-color: #f7f9fc;
    padding: 100px 0;
}

.why-zeitplan-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.why-text-content {
    flex: 1;
    min-width: 400px;
}

.section-title-left {
    text-align: left;
    font-size: 2.8rem;
    color: #042a63;
    margin-bottom: 10px;
    line-height: 1.2;
}

.section-subtitle-left {
    text-align: left;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    max-width: none;
}

.feature-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--white-color);
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #a4ccf1;
}

.feature-card.active {
    border-color: #042a63;
    background-color: #eef5fd;
    box-shadow: 0 6px 20px rgba(4, 42, 99, 0.1);
}

.feature-card .card-icon-left {
    font-size: 2.5rem;
    color: #042a63;
    flex-shrink: 0;
}

.feature-card .card-text h3 {
    font-size: 1.3rem;
    color: #1a202c;
    margin-bottom: 5px;
    text-align: left;
}

.feature-card .card-text p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    text-align: left;
}

.cta-free-trial {
    background-color: var(--mid-blue);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 999px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(22, 132, 249, 0.25);
}

.cta-free-trial:hover {
    background-color: var(rgba(255, 255, 255, 0.15)e);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px rgba(16, 47, 222, 0.35);
}

.why-image-panel {
    flex: 1.2;
    padding: 20px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 150px;
    height: fit-content;
}

.why-image-panel img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: opacity 0.5s ease-in-out;
}

.why-image-panel .image-caption {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
}

.mobile-image-display {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    animation: slideDownFadeIn 0.5s ease-out;
}

.mobile-image-display img {
    width: 100%;
    border-radius: 8px;
}

@keyframes slideDownFadeIn {
    from { opacity: 0; transform: translateY(-20px); max-height: 0; }
    to { opacity: 1; transform: translateY(0); max-height: 500px; }
}

/* --- Grids y Tarjetas Generales --- */
.features-grid,
.solution-grid {
    display: grid;
    gap: 30px;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.solution-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

/* Ajuste de padding para el título de la sección solution */
#solution {
    background-color: var(--light-gray);
    padding-top: 50px; 
}

#solution .section-title {
    margin-bottom: 15px; 
    padding-top: 0; 
}

#solution .section-subtitle {
    margin-top: 0;
    margin-bottom: 30px; 
}

/* --- Sección Precios (Diseño Original) --- */
.pricing-grid {
    padding-top: 35px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    display: grid;
    gap: 30px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card .price {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.pricing-card .price strong {
    font-size: 2.2rem;
    font-weight: 700;
}

.pricing-card .ideal-for {
    font-size: 0.9rem;
    color: var(--mid-blue);
    min-height: 40px;
}

.pricing-card hr {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
    padding-left: 0;
}

.pricing-card ul li {
    margin-bottom: 12px;
}

.pricing-card.recommended {
    border: 2px solid #042a63;
    transform: scale(1.05);
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #042a63;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Sección CTA Final --- */
#cta {
    background-color: #36487a;
    color: var(--white-color);
}

#cta .section-title {
    color: var(--white-color);
}

.cta-content {
    text-align: center;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* ============================================= */
/* ===== SECCIÓN: SERVICIOS ADICIONALES    ===== */
/* ============================================= */
#additional-services {
    background-color: #f7f9fc;
    padding-bottom: 100px;
    padding-top: 50px; 
}

#additional-services .section-title {
    margin-bottom: 60px;
    padding-top: 0; 
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #a4ccf1;
}

.service-card.active {
    border-color: #042a63;
    background-color: #eef5fd;
    box-shadow: 0 6px 20px rgba(4, 42, 99, 0.1);
    transform: translateY(-2px);
}

.service-card i {
    font-size: 3.5rem;
    color: #042a63;
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin: 0;
}

#service-details-wrapper {
    background-color: #eef5fd;
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 40px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: all 0.4s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#default-service-content {
    text-align: center;
    color: #64748b;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#default-service-content i {
    font-size: 5rem;
    margin-bottom: 20px;
}

#default-service-content h3 {
    font-size: 1.8rem;
    color: #334155;
}

#dynamic-service-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
}

#service-details-wrapper > div:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    position: static;
    pointer-events: auto;
}

#dynamic-service-content h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

#dynamic-service-content p {
    font-size: 1.1rem;
    color: var(--mid-blue);
    margin-bottom: 30px;
}

.sub-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sub-service-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.sub-service-card:hover {
    background-color: #eef5fd;
    border-color: #a4ccf1;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sub-service-card i {
    font-size: 2.5rem;
    color: #042a63;
    margin-bottom: 10px;
    display: block;
}

.sub-service-card h4 {
    font-size: 1rem;
    color: var(--dark-blue);
    margin: 0;
}

/* ============================================= */
/* ===== NUEVO: SECCIÓN DESARROLLO WEB     ===== */
/* ============================================= */
#web-hero {
    background-color: #0d1a2e; 
    background-image: linear-gradient(rgba(13, 26, 46, 0.85), rgba(13, 26, 46, 0.85)), url('https://images.unsplash.com/photo-1551434678-e076c223a692?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyODE1MDl8MHwxfGFsbHx8fHx8fHx8fDE2Mzg4ODU5OTY&ixlib=rb-1.2.1&q=80&w=1080'); 
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
}

#web-hero .hero-content h1 {
    color: var(--white-color);
    font-size: 3rem;
}

#web-hero .hero-content p {
    color: var(--white-color);
    font-size: 1.15rem;
    max-width: 700px;
}

#web-hero .hero-buttons .btn-primary {
    background-color: var(--mid-blue);
    border-color: var(--dark-blue);
    color: var(--white-color);
}
#web-hero .hero-buttons .btn-primary:hover {
    background-color: rgba(0, 0, 255, 0.396);
    border-color: var(--dark-blue);
}
#web-hero .hero-buttons .btn-secondary {
    color: var(--white-color);
    border-color: var(--white-color);
    background-color: transparent; 
}
#web-hero .hero-buttons .btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--dark-blue);
}

#web-features {
    background-color: var(--white-color);
}

#web-gallery {
    background-color: #f7f9fc;
}

/* --- NUEVOS ESTILOS DE GALERÍA (CARRUSEL) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-card {
    background: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-out;
}
.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
    background-color: #f0f4f8; /* Color de fondo mientras cargan imgs */
}

.gallery-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    flex: 0 0 100%;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark-blue);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
}

.gallery-slider:hover .gallery-btn {
    opacity: 1;
    visibility: visible;
}

.gallery-btn:hover {
    background-color: var(--white-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn.prev {
    left: 10px;
}

.gallery-btn.next {
    right: 10px;
}

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-item-info {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.gallery-item-info h3 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.gallery-item-info p {
    font-size: 0.95rem;
    color: var(--mid-blue);
    margin-bottom: 15px; /* Espacio para el botón */
}

/* Estilo para el enlace "Ver Proyecto" */
.gallery-link-btn {
    font-weight: 600;
    color: var(--mid-blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.gallery-link-btn i {
    transition: transform 0.3s ease;
}
.gallery-link-btn:hover {
    color: blue;
}
.gallery-link-btn:hover i {
    transform: translateX(4px);
}


/* ============================================= */
/* ===== FOOTER Y RESPONSIVE               ===== */
/* ============================================= */
.footer {
    background-color: #28306e;
    color: #adb5bd;
    padding: 80px 40px 30px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    max-width: 400px;
}

.footer-logo {
    max-height: 80px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.95em;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.footer-column h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
    list-style: none;
}

.footer-column ul li a {
    color: #adb5bd;
    transition: color 0.3s, padding-left 0.3s;
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    font-size: 1.2em;
    color: #ffffff;
}

.contact-list span {
    color: #adb5bd;
}

.footer-column.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin-top: 10px;
    list-style: none;
}

.social-icons a {
    display: inline-flex;
    font-size: 1.6rem;
    color: #adb5bd;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 0.9em;
}

/* ============================================= */
/* ===== MODAL "PRÓXIMAMENTE"              ===== */
/* ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}
.modal-content-simple {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-overlay:not(.hidden) .modal-content-simple {
    transform: scale(1);
    opacity: 1;
}
.modal-content-simple .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #aaa;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.modal-content-simple .modal-close-btn:hover {
    color: #333;
}
.modal-content-simple i {
    font-size: 4rem;
    color: #042a63;
    margin-bottom: 15px;
}
.modal-content-simple h3 {
    font-size: 1.8rem;
    color: #0F172A;
    margin-bottom: 10px;
}
.modal-content-simple p {
    font-size: 1rem;
    color: #4a5568;
}

/* ============================================= */
/* ===== BOTÓN VOLVER ARRIBA (SCROLL TOP)  ===== */
/* ============================================= */
.scroll-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #042a63;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top-btn:hover {
    background-color: #03306b;
}


/* ============================================= */
/* =============== MEDIA QUERIES =============== */
/* ============================================= */
@media (max-width: 1300px) {
    main {
        padding-top: 0px;
    }

    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-btn span {
        width: 100%;
        height: 3px;
        background-color: var(--text-dark-blue);
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        padding: 120px 40px 40px 40px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 25px; /* Este 'gap' separa los enlaces de texto */
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-dark-blue);
    }

    .nav-links a::after {
        display: none; /* Desactiva el subrayado en móvil */
    }

    /* Ocultamos los botones de escritorio */
    .navbar-actions-desktop {
        display: none;
    }

    .nav-links__cta-mobile {
        display: block;
        margin-top: 0; /* Reseteamos el margen */
        width: 100%;
    }
    
    /* --- INICIO DE LA CORRECCIÓN --- */
    .nav-links__cta-mobile + .nav-links__cta-mobile {
        margin-top: 10px; /* Cambiado de -15px a 10px */
    }

    .nav-links__cta-mobile .cta {
        color: #fff !important;
        width: 100%;
        padding: 14px 24px; /* Padding horizontal reducido */
        font-size: 1.1rem; /* Fuente ligeramente reducida */
        text-align: center; /* Asegura el centrado */
        /* Hacemos que ambos tengan borde para que midan lo mismo */
        border: 2px solid var(--text-dark-blue);
    }
    /* --- FIN DE LA CORRECCIÓN --- */


    /* Botón "Pagos en Línea" (Sólido) */
    .nav-links__cta-mobile .cta-mobile--highlight {
      background: var(--text-dark-blue);
      border-color: var(--text-dark-blue);
    }

    .nav-links__cta-mobile .cta-mobile--highlight:hover {
      background: #03214d;
      border-color: #03214d;
    }
    
    /* Botón "Iniciar Sesión" (Outline) */
    .nav-links__cta-mobile .cta:not(.cta-mobile--highlight) {
        background: var(--white-color);
        color: var(--text-dark-blue) !important;
        border: 2px solid var(--text-dark-blue);
    }
    
    .nav-links__cta-mobile .cta:not(.cta-mobile--highlight):hover {
        background: #f8fafd; /* Azul pálido */
    }

    .overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* --- Reglas de ETH.css --- */
    .why-zeitplan-container {
        flex-direction: column;
        gap: 40px;
    }

    .why-image-panel {
        display: none;
    }

    .section-title-left,
    .section-subtitle-left {
        text-align: center;
    }

    .why-text-content {
        min-width: auto;
    }

    .services-nav {
        flex-direction: column;
    }

    .services-nav-btn {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

@media (max-width: 800px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .contact-list li,
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    main {
        padding-top: 90px;
    }
    
    #hero {
        padding-top: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    #web-hero .hero-content h1 {
        font-size: 2.2rem;
    }

    .navbar {
        height: 90px;
        padding: 0 20px;
    }

    .navbar.scrolled {
        height: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .slide-content {
        flex-direction: column;
    }
    .slide-content img {
        width: 100%;
        height: 220px;
    }
    .slide-info {
        padding: 25px;
    }
    .slider-nav {
        bottom: 10px;
        right: 10px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}