/* === Global Styles & Variables === */
:root {
    /* CORRECCIÓN: Nueva paleta de colores */
    --primary-color: #01072A;
    --accent-color: #FF0000;
    --light-gray-color: #f8f9fa;
    --text-color: #333;
    --white-color: #ffffff;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

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

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: var(--body-font); 
    line-height: 1.6; 
    color: var(--text-color); 
    background-color: var(--white-color); 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

h1, h2, h3, h4 { 
    font-family: var(--heading-font); 
    font-weight: 700; 
    color: var(--primary-color); 
}

main { 
    overflow-x: hidden; 
}

/* === Animaciones === */
.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(20px) scale(0.98); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}

.animate-on-scroll.is-visible { 
    opacity: 1; 
    transform: none; 
}

/* === Botones === */
.cta-button { 
    display: inline-block; 
    background-color: var(--accent-color); 
    color: var(--white-color); 
    padding: 15px 30px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    font-family: var(--heading-font); 
    transition: all 0.3s ease; 
    border: none; 
    cursor: pointer; 
}

.cta-button:hover { 
    background-color: #D40000; 
    transform: translateY(-3px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

/* === Header & Logo === */
.header { 
    padding: 15px 0; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease; 
}

.header.scrolled { 
    background-color: var(--white-color); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); 
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    display: block; 
    height: 80px; /* Ajusta la altura según tu logo */ 
}

.logo img { 
    height: 100%; 
    width: auto; 
    transition: opacity 0.4s ease; 
}

/* Lógica para mostrar/ocultar logos */
.logo .logo-dark { 
    display: none; 
}

.header.scrolled .logo-white { 
    display: none; 
}

.header.scrolled .logo-dark { 
    display: block; 
}

/* === Secciones === */
.services, .testimonials, .faq, .contact { 
    padding: 100px 0; 
}

.section-title { 
    text-align: center; 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
}

/* Hero */
.hero { 
    position: relative; 
    height: 100vh; 
    color: var(--white-color); 
    display: flex; 
    align-items: center; 
    background: url('fondo.jpg') center center; 
    background-attachment: fixed;
    background-size:cover ;
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg, rgba(1, 7, 42, 0.90) 0%, rgba(1, 7, 42, 0.40) 100%); 
}

.hero-content { 
    position: relative; 
    max-width: 650px; 
    text-align: left; 
}

.hero h1 { 
    font-size: 3.8rem; 
    margin-bottom: 20px; 
    color: var(--white-color); 
    line-height: 1.2; 
    font-weight: 800; 
}

.hero-cta i { 
    margin-left: 10px; 
    transition: transform 0.3s ease; 
}

.hero-cta:hover i { 
    transform: translateX(5px); 
}

/* Servicios */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    margin-top: 60px; 
}

.service-card { 
    background-color: var(--white-color); 
    border-radius: var(--border-radius); 
    box-shadow: var(--box-shadow); 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12); 
}

.service-image-container { 
    height: 220px; 
    overflow: hidden; 
}

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

.service-card:hover .service-image-container img { 
    transform: scale(1.05); 
}

.service-content { 
    padding: 30px; 
    flex-grow: 1; 
}

.service-content h3 { 
    font-size: 1.4rem; 
    margin-bottom: 15px; 
}

/* Resultados */
.results-section { 
    padding: 100px 0; 
    position: relative; 
    color: var(--white-color); 
    background: url('https://images.pexels.com/photos/1181406/pexels-photo-1181406.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover; 
    background-attachment: fixed; 
}

.parallax-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(1, 7, 42, 0.9); 
}

.results-content { 
    position: relative; 
    text-align: center; 
}

.results-content .section-title { 
    color: var(--white-color); 
}

.results-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 60px; 
}

.result-item .counter { 
    font-family: var(--heading-font); 
    font-size: 4.5rem; 
    font-weight: 800; 
    color: var(--accent-color); 
}

/* Testimonios */
.testimonials { 
    background-color: var(--light-gray-color); 
    position: relative; 
}

.slider-container { 
    position: relative; 
    max-width: 800px; 
    margin: 60px auto 0; 
}

.testimonial-slider-wrapper { 
    overflow: hidden; 
}

.testimonial-slider { 
    display: flex; 
    transition: transform 0.5s ease-in-out; 
}

.testimonial-card { 
    flex: 0 0 100%; 
    padding: 40px; 
    text-align: center; 
}

.testimonial-card .stars { 
    color: var(--accent-color); 
    font-size: 1.5rem; 
    margin-bottom: 20px; 
}

.testimonial-card p { 
    font-size: 1.3rem; 
    font-style: italic; 
    margin-bottom: 20px; 
    color: #555; 
}

.testimonial-card cite { 
    font-style: normal; 
}

.testimonial-card cite strong { 
    display: block; 
    margin-top: 10px; 
    font-size: 1.1rem; 
    color: var(--primary-color); 
}

.slider-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background-color: var(--white-color); 
    border: 1px solid #ddd; 
    color: var(--primary-color); 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 1.2rem; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    transition: all 0.3s ease; 
    z-index: 10; 
}

.slider-btn:hover { 
    background-color: var(--primary-color); 
    color: var(--white-color); 
}

.prev-btn { 
    left: 10px; 
}

.next-btn { 
    right: 10px; 
}

/* CTA Banner */
.cta-banner { 
    padding: 80px 0; 
    background: var(--primary-color); 
    color: var(--white-color); 
    text-align: center; 
}

.cta-banner h2 { 
    font-size: 2.5rem; 
    color: var(--white-color); 
    margin-bottom: 15px; 
}

.cta-banner .cta-button { 
    background-color: var(--accent-color); 
    color: var(--white-color); 
}

.cta-banner .cta-button:hover { 
    background-color: #D40000; 
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3); 
}

/* FAQ */
.faq { 
    background-color: var(--white-color); 
}

.faq-accordion { 
    max-width: 800px; 
    margin: 60px auto 0; 
}

.faq-item { 
    border-bottom: 1px solid #e0e0e0; 
}

.faq-question { 
    width: 100%; 
    background: none; 
    border: none; 
    text-align: left; 
    padding: 25px 0; 
    font-family: var(--heading-font); 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.faq-question i { 
    transition: transform 0.3s ease-in-out; 
}

.faq-item.active .faq-question i { 
    transform: rotate(45deg); 
    color: var(--accent-color); 
}

.faq-answer { 
    display: grid; 
    grid-template-rows: 0fr; 
    overflow: hidden; 
    transition: grid-template-rows 0.5s ease-in-out; 
}

.faq-answer > div { 
    min-height: 0; 
}

.faq-item.active .faq-answer { 
    grid-template-rows: 1fr; 
}

.faq-answer p { 
    padding: 0 10px 25px 10px; 
    line-height: 1.8; 
    color: #555; 
}

/* === Contacto === */
.contact { 
    background: var(--light-gray-color); 
}

.contact-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
}

.contact-form-container { 
    background-color: var(--white-color); 
    padding: 40px; 
    border-radius: var(--border-radius); 
    box-shadow: var(--box-shadow); 
}

.contact-form-container h3 { 
    font-size: 2.2rem; 
}

/* Estilos de formulario consistentes */
.form-group input, .form-group textarea, .form-button { 
    font-family: inherit; 
    font-size: 1rem; 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 15px; 
    border: 1px solid #ccc; 
    border-radius: var(--border-radius); 
}

.form-group input:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 5px rgba(1, 7, 42, 0.3); 
}

/* Nuevo Diseño Creativo para Info de Contacto */
.contact-details-container {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-header {
    text-align: left;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.contact-header h3 {
    color: var(--white-color);
    font-size: 2rem;
    font-weight: 800;
}

.contact-header p {
    color: #ccc;
    font-size: 1.1rem;
    margin-top: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-right: 20px;
    width: 30px;
}

.contact-item div span {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-item div a, .contact-item div p {
    color: var(--white-color);
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
}

.contact-item div a:hover {
    color: var(--accent-color);
}

/* === WhatsApp === */
.whatsapp-float { 
    position: fixed; 
    width: 60px; 
    height: 60px; 
    bottom: 40px; 
    right: 40px; 
    background-color: #25d366; 
    color: #FFF; 
    border-radius: 50px; 
    text-align: center; 
    font-size: 30px; 
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); 
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    animation: pulse 2s infinite; 
}

@keyframes pulse { 
    0% { transform: scale(0.95); } 
    70% { transform: scale(1); } 
    100% { transform: scale(0.95); } 
}

/* === Footer === */
.footer { 
    background-color: var(--primary-color); 
    color: var(--white-color); 
    text-align: center; 
    padding: 30px 0; 
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--white-color);
}


/* === Responsive Design === */
@media (max-width: 992px) {
    .contact-wrapper { 
        grid-template-columns: 1fr; 
    }
    .contact-details-container { 
        order: -1; 
        margin-bottom: 40px; 
    }
    .hero h1 { 
    font-size: 2rem; 
    margin-bottom: 20px; 
    color: var(--white-color); 
    line-height: 1.2; 
    font-weight: 800; 
}
.cta2 { 
    display: none; 
}
}

@media (max-width: 768px) {
    h1 { 
        font-size: 2.5rem; 
    }
    .section-title { 
        font-size: 2.2rem; 
    }
    .results-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .slider-btn { 
        width: 40px; 
        height: 40px; 
        font-size: 1rem; 
    }
}