:root {
   /* Paleta más profunda y profesional */
    --primary: #0f172a;    
    --accent: #2563eb;     
    --accent-soft: rgba(37, 99, 235, 0.1);
    --bg-light: #f8fafc;   
    --text-main: #1e293b;  
    --text-light: #64748b; 
    --white: #ffffff;
    --radius-lg: 24px; /* Un poco menos exagerado que 40px para verse más serio */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
	-webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Navbar Minimalista */
.navbar {
	display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 8%; background: rgba(253, 251, 247, 0.95);
    position: fixed; 
	width: 100%; 
	top: 0; 
	z-index: 1000;
	backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* LOGOTIPO MEJORADO */
.logo {
    font-family: 'Inter', sans-serif; /* Mantenemos la fuente principal para coherencia */
    font-weight: 700; /* Más audaz para destacar */
    font-size: 1.6rem; /* Un poco más grande */
    color: var(--primary);
    display: flex; /* Para alinear el icono con el texto */
    align-items: center;
    gap: 8px; /* Espacio entre el icono y el texto */
    --text-transform: uppercase; /* Para un toque más corporativo */
}

.logo span {
    color: var(--accent); /* El "PRO" en el azul brillante */
}

.logo-icon {
    font-size: 1.8rem; /* Tamaño del icono */
    color: var(--accent); /* Color del icono */
    line-height: 1; /* Para que no afecte la altura de la línea */
}

/* Ajustes para el contenedor del Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre imagen y texto */
}

/* Ajuste de la imagen del logo */
.main-logo-img {
    height: 50px; /* Tamaño ideal para la navbar */
    width: auto;
    object-fit: contain;
}

/* Estilo para el texto al lado del logo */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent);
    text-transform: uppercase;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .main-logo-img {
        height: 40px;
    }
    .brand-name {
        font-size: 1.1rem;
    }
    .brand-sub {
        display: none; /* Ocultamos el texto pequeño en móviles para ahorrar espacio */
    }
}

.nav-links { display: flex; list-style: none; }
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--accent); }

/* SECCIÓN HERO ACTUALIZADA */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
    color: white;
    background-color: #0f172a; /* Fondo de seguridad azul marino */
    background-size: cover;
    background-position: center;
    transition: background-image 1.5s ease-in-out; /* Transición suave */
    z-index: 1;
}

/* Capa oscura para que el texto siempre sea legible */
.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 { 
	font-family: 'Playfair Display', serif; 
	font-size: 3.5rem; 
	font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero p { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 2rem; }

/* Servicios */
.services-container { padding: 8rem 8%; background: #fff; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title span { color: var(--accent); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Tarjetas de Servicios y Nosotros */
.service-card, .glass-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg); /* Bordes redondeados de la imagen */
    border: 1px solid rgba(194, 157, 95, 0.2);
    box-shadow: 0 15px 35px rgba(74, 55, 40, 0.05);
    transition: 0.4s;
}

.service-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.service-card .icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 1rem; color: var(--primary); }

/* Nosotros */
.about-section { padding: 6rem 8%; background: var(--primary); color: white; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.card-dark h3 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--accent); }
.objectives-box { margin-top: 4rem; text-align: center; border-top: 1px solid #1e293b; padding-top: 3rem; }
.obj-grid { display: flex; justify-content: center; gap: 3rem; font-weight: 300; }

/* Contacto */
.contact-section { padding: 8rem 8%; background: var(--bg-light); }
.contact-box { max-width: 600px; margin: 0 auto; background: white; padding: 3rem; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 1rem; margin-bottom: 1rem; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit;
}

/* Footer */
.footer { padding: 4rem 8%; background: #020617; color: #94a3b8; text-align: center; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.8rem; margin-top: 1rem; display: inline-block; }


/* Sección de Contacto Renovada */
.contact-area {
    padding: 100px 8%;
    background-color: #f1f5f9;
}

.contact-wrapper {
	display: flex;
    max-width: 1100px; margin: 50px auto;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* Panel Izquierdo (Info) */
.contact-info {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white; 
    padding: 60px; 
    flex: 1;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.info-details {
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.info-item span {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
}

/* Panel Derecho (Formulario) */
.contact-form-card {
	background: #fff;
    border-left: 1px solid #f1f5f9;
    flex: 1.2;
    padding: 60px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s ease;
	background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
	background: #fff;
}

/* Botón Premium */
.btn-premium, .btn {
	background: var(--accent) !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3) !important;
    color: white;
    padding: 15px 35px;
    border-radius: 50px; /* Estilo píldora */
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: 0.3s;
    cursor: pointer;
    display: inline-block;
}

.btn-full { width: 100%; cursor: pointer; border: none; }
.btn:hover { background: #1e40af; }

.btn-premium:hover {
    background: #1d4ed8 !important; /* Un azul más profundo al pasar el mouse */
    transform: translateY(-2px);
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info, .contact-form-card {
        padding: 40px 20px;
    }
}

.about-dynamic {
    padding: 100px 8%;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
    text-align: center;
}

.about-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.glass-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    width: 450px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--accent) !important;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.glass-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-footer {
    margin-top: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}

/* Burbujas de Objetivos */
.objectives-dynamic {
    margin-top: 80px;
}

.bubbles-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.bubble {
    background: var(--primary) !important;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.bubble span {
    background: var(--accent) !important;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.stat-number { 
	color: #60a5fa !important; /* Azul cielo para que resalte sobre el oscuro */ 
	font-size: 3rem; font-weight: 700; 
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item h2 {
    font-size: 3rem;
    font-family: 'Inter', sans-serif;
    color: var(--accent) !important;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

/* Efecto para que se vea premium */
.stat-item {
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
}

/* DISEÑO BOTÓN WHATSAPP */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #128c7e !important; /* Un verde más "bosque" o cálido */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(18, 140, 126, 0.3) !important;
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #20ba5a;
}

/* Tooltip (Mensaje flotante) */
.tooltip {
    position: absolute;
    right: 75px;
    background: #0a192f;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
}

.whatsapp-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Animación de latido para llamar la atención */
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-btn {
    animation: pulse-wa 2s infinite;
}

/* ESTILOS DEL MODAL */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(8px);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: var(--bg-light);
    padding: 40px;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    position: relative;
    animation: slideUp 0.4s ease;
}

.close-modal {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
}

.modal-body {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    color: var(--text-main);
}

.modal-body p, .modal-body li {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.services-carousel-section {
    padding: 100px 0; /* Quitamos padding lateral para que el carrusel llegue al borde */
    background: var(--bg-light);
    overflow: hidden;
}

.carousel-container {
    padding: 20px 8%;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px;
    scrollbar-width: none; /* Oculta scrollbar en Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Oculta scrollbar en Chrome/Safari */
}

.service-card-premium {
    min-width: 320px;
    max-width: 320px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    padding: 40px;
    border-radius: var(--radius-lg);
    scroll-snap-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.service-card-premium:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
    transform: translateY(-5px);
}

.card-icon-bg {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-card-premium h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.service-link {
    margin-top: 20px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.carousel-nav-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4%;
}

.nav-btn {
    background: var(--white);
    color: var(--accent);
    border: 1px solid #e2e8f0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.prev { position: absolute; left: 2%; }
.next { position: absolute; right: 2%; }

/* Ocultar flechas en móviles pequeños para dejar solo el gesto táctil */
@media (max-width: 600px) {
    .nav-btn { display: none; }
    .carousel-wrapper { padding: 0; }
	/* Permitimos que las tarjetas se vean un poco más pequeñas */
    .service-card-premium {
        min-width: 85vw; /* Casi todo el ancho de la pantalla */
    }
}

/* ESTADOS INICIALES PARA REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px); /* Aparecen desde abajo */
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px); /* Aparecen desde la izquierda */
    transition: all 0.8s ease-out;
}

/* CLASE QUE ACTIVA LA ANIMACIÓN (se añade vía JS) */
.reveal.active, .reveal-left.active {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Delays opcionales para elementos en cuadrícula (cascada) */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* AJUSTES PARA MÓVILES (Pantallas menores a 768px) */
@media (max-width: 768px) {
    .btn-premium {
        width: 100%; /* El botón ocupa todo el ancho en móvil para facilitar el clic */
        text-align: center;
    }
	
	/* Ajuste del Hero para que el texto no se vea gigante */
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }

    /* Reducimos el padding de las secciones para ganar espacio */
    .services-carousel-section, 
    .about-dynamic, 
    .contact-area {
        padding: 60px 5%;
    }

    /* Ajuste de las tarjetas de Misión/Visión */
    .glass-card {
        width: 100%; /* Ocupan todo el ancho en móvil */
        padding: 30px 20px;
    }

    /* Pilares (Burbujas) en móvil */
    .bubbles-wrapper {
        gap: 10px;
    }
    
    .bubble {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Ajuste de la Navbar */
    .nav-links {
        display: none; /* Opcional: podrías implementar un menú hamburguesa más adelante */
    }

    /* Agregamos un botón de contacto rápido que solo se ve en móvil */
    .navbar::after {
        content: "Contacto";
        background: var(--accent);
        color: white;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    /* Ajuste de tarjetas para que no se corten */
    .glass-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
}