/* Variables y Reset */
:root {
    /* Nueva Paleta 'Modern Light Tech' con Rebranding */
    --color-brand-red: #DD1E1E; /* Nuevo Rojo Marca Edwared */
    --color-midnight: #1B263B; /* Azul Medianoche (Secundario Profundo) */
    --color-cobalt: #415A77;   /* Azul Cobalto Suave (Textos secundarios) */
    --color-graphite: #0D1B2A; /* Negro Grafito (Texto Principal) */
    --color-mist: #E0E1DD;     /* Gris Bruma (Fondos Alternos) */
    --color-ice: #F8F9FA;      /* Blanco Hielo (Fondo Principal) */
    --color-white: #FFFFFF;

    /* Mapeo Funcional */
    --bg-color: var(--color-ice);
    --bg-alt: var(--color-mist);
    --surface-color: var(--color-white);
    
    --text-primary: var(--color-graphite);
    --text-secondary: var(--color-cobalt);
    
    --accent: var(--color-brand-red);      /* Acento Principal ROJO */
    --accent-hover: #b91515;               /* Rojo más oscuro para hover */
    --icon-color: var(--color-brand-red);  /* Iconos en Rojo */
    
    --border-color: var(--color-mist);

    /* Espaciado y Dimensiones */
    --container-width: 1200px;
    --header-height: 80px;
    --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilidades */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Contenedor Fluido para Nav y Hero */
.container-fluid {
    width: 95%; /* Ocupar casi todo el ancho */
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
  padding: 100px 0;
}

.section-title {
    font-size: 3rem; /* Más grande para llenar espacio */
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.text-soft-white {
    color: #F8F9FA !important; /* Blanco suave pero legible */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sombra para resaltar sobre fondo oscuro */
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.spacer {
    height: 80px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Cartas un poco más anchas */
    gap: 40px; /* Más aire entre cartas */
}

/* Animaciones de Scroll (Butter Feel) */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); /* Curva 'butter' suave */
    filter: blur(5px);
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Delays escalonados para hijos si se desea, por ahora simple */

/* Botones */
.btn-primary {
  background-color: var(--accent);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(0, 114, 233, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 114, 233, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  border: 1px solid transparent; /* Para evitar saltos al hover si se añade borde */
}

/* Fix Botón Hablemos en Hero (Fondo Oscuro) */
.hero .btn-secondary {
    color: white !important;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.hero .btn-secondary:hover {
    background-color: white;
    color: var(--color-midnight) !important;
    border-color: white;
}

.btn-outline {
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--text-primary);
}

/* Navbar */
.navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(249, 250, 251, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
    height: 48px; /* Tamaño visual óptimo */
    width: auto;
    object-fit: contain;
}

.logo .highlight {
  color: var(--accent);
}

/* Botón Hamburguesa (Móvil) */
.hamburger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001; /* Encima del menú desplegado */
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Navbar Links Desktop */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

/* Estilos de Botón Mobile Toggle */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background-color: white; /* Contraste sobre fondo oscuro del menú */
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
     background-color: white;
}

/* MEDIA QUERY PRINCIPAL - MÓVIL Y TABLET VERTICAL */
@media (max-width: 968px) {
    .hamburger-menu {
        display: flex;
    }

    /* Menú Desplegable */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%; /* Panel lateral */
        background-color: var(--color-midnight);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: white;
        font-size: 1.5rem;
    }
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Fix específico para que el botón mantenga su color blanco */
.nav-links a.btn-primary {
    color: white !important;
}

.nav-links a.btn-primary:hover {
    color: white !important;
    transform: translateY(-2px);
}

/* Hero Section */
/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
    color: var(--text-primary);
}

/* Imagen de Fondo con Zoom (Ken Burns Effect) */
.hero-bg-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero-poster.png'); /* Asegurar que este archivo exista */
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: zoomEffect 25s ease-in-out infinite alternate;
}

/* Animación Zoom Suave - AUMENTADA */
@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.25); } /* Zoom más notorio */
}

/* Overlay para contraste - DARK MODE SÓLIDO */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Oscurecimiento fuerte para garantizar que el texto blanco Destaque SIEMPRE */
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-width); /* Usar todo el ancho disponible */
}

/* Nuevo Layout Split */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 700px; /* Limitar ancho del texto para legibilidad */
    text-align: left;
}

.hero-visual {
    flex: 0 0 400px; /* Ancho fijo base para el logo */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-large {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    /* Efecto sutil 'flotante' */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Responsive para Hero Split */
@media (max-width: 992px) {
    .hero-split {
        flex-direction: column-reverse; /* Logo arriba o abajo? Abajo del texto o oculto si es muy grande */
        text-align: center;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Responsive Mobile Typography Fixes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem; /* Reducción drástica para evitar desbordes */
        margin-bottom: 20px;
        word-wrap: break-word; /* Asegurar quiebre si es necesario */
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 15px;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .hero-content {
        padding: 0 15px; /* Menos padding lateral para dar espacio al texto */
    }

    .hero-split {
        gap: 20px;
    }

    .hero-buttons {
        gap: 15px;
        flex-direction: column; /* Botones uno encima de otro en pantallas muy estrechas */
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Botones full width en móvil para fácil touch */
        text-align: center;
    }

    /* Ajuste Logo Hero en Móvil */
    .hero-visual {
        max-width: 180px !important; /* Logo más chico */
        margin: 0 auto;
    }
    
    .hero-logo-large {
        max-width: 100%;
    }

    /* Fix para que el contenido no se corte en móvil */
    .hero {
        height: auto; 
        min-height: 100vh;
        overflow: hidden; /* Clip para que el zoom no tape otras secciones */
        padding-bottom: 60px; /* Espacio extra abajo */
    }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
  color: #FFFFFF; /* Texto Blanco Puro */
  text-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Sombra fuerte para contraste */
}

.hero-subtitle {
    font-size: 1.35rem; /* Letra un poco más grande */
    color: #F8F9FA; /* Blanco Hielo */
    margin-bottom: 50px;
    
    /* INTEGRACIÓN SIN TARJETA */
    background: transparent;
    border: none;
    border-left: 5px solid var(--color-brand-red); /* Mantenemos solo la línea roja de acento */
    padding-left: 20px; /* Espacio para separar de la línea */
    font-style: italic;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); /* Sombra para leerse sobre cualquier imagen */
}

.hero-differentiator strong {
    color: var(--color-brand-red); /* Rojo marca para resaltar palabras clave */
    font-weight: 700;
    text-shadow: none; /* El rojo ya resalta */
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* Cards Generales */
.card {
  background: var(--surface-color);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: transparent;
}

/* Servicios - SLIDESHOW FADE */
.services-slideshow {
    position: relative;
    height: 500px; /* Altura de banner */
    overflow: hidden;
    background-color: var(--color-midnight);
    display: flex; /* Para centrar contenido si falla JS */
}

.service-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 38, 59, 0.85); /* Azul Medianoche semi-transparente */
    z-index: 1;
}

/* Estructura Slide Detallada */
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px; /* Más ancho para dos columnas */
    color: white;
    padding: 0 20px;
}

.slide-content h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    text-align: left;
}

.detail-box {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-brand-red);
}

.detail-box strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-box p {
    font-size: 1rem;
    color: #E0E1DD;
    line-height: 1.6;
    margin: 0;
}

/* Header Oscuro Conceptual */
.section-header-dark {
    background-color: var(--color-midnight);
    color: white;
    padding-top: 80px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-mist);
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

/* Pricing Refinado */
.price-card {
    text-align: center;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    background: white;
    /* Sombras para resaltar en el carrusel */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pricing-category {
    /* Ajuste para slide */
    width: 100%;
    flex-shrink: 0;
    padding: 20px 0; /* Espacio para sombras */
}

/* CAROUSEL STYLES */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-midnight);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--color-brand-red);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }


.card-header h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.price-card .period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.price-card .desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.price-card .features {
  margin: 30px 0;
  text-align: left;
}

.features li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.features li::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
  font-size: 1.5rem;
  line-height: 0;
}

.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 20px 50px rgba(0, 114, 233, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.featured-blue {
    border: 2px solid var(--accent);
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

/* Contacto - Nuevo Estilo */
.section.contact {
    background-color: #f0f2f5; /* Tono grisáceo moderno */
    position: relative;
    padding: 80px 0;
}

/* Divisiones visuales */
.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--color-mist), transparent);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 60px; /* Más espacio entre botones */
    flex-wrap: wrap;
    margin-top: 50px;
    position: relative;
}

/* Línea horizontal divisora opcional entre botones */
.contact-buttons::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 60px;
    background-color: #ccc;
    display: none; /* Oculto por defecto, activar si se desea separador vertical */
}

@media (min-width: 768px) {
    .contact-buttons::after {
        display: block; /* Mostrar solo en PC */
    }
    
    .contact::before {
        display: none; /* Quitar la línea central de fondo en PC si ensucia */
    }
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.btn-phone {
    background-color: var(--text-primary);
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 700;
}

.btn-phone:hover {
    background-color: #333;
    transform: translateY(-3px);
}



/* Footer - DARK THEME */
.footer {
    padding: 50px 0;
    border-top: none;
    text-align: center;
    background-color: var(--color-midnight);
    color: #E0E1DD;
}

.footer-link {
    font-weight: 700;
    color: var(--color-brand-red);
    text-decoration: none;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-link {
    font-weight: 700;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s;
}

.footer-link:hover {
    text-decoration-color: var(--accent);
}
