/* Variables de Color (Revisadas para mayor contraste y modernidad) */
:root {
    --primary-color: #E44D26; /* Naranja Intenso para energía y acción */
    --secondary-color: #2c3e50; /* Azul Oscuro/Gris para profesionalismo y solidez */
    --accent-color: #FFD700; /* Dorado para destacar y calidad */
    --text-light: #ecf0f1; /* Blanco grisáceo para texto en fondos oscuros */
    --text-dark: #34495e; /* Azul oscuro suave para texto en fondos claros */
    --background-dark: #222; /* Fondo oscuro principal */
    --background-light: #ffffff; /* Fondo claro principal */
    --gradient-start: rgba(0, 0, 0, 0.7); /* Para overlays */
    --gradient-end: rgba(0, 0, 0, 0.3); /* Para overlays */
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7; /* Ligeramente más espaciado para mejor legibilidad */
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden; /* Evitar scroll horizontal */
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en enlaces internos */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 20px;
    letter-spacing: 0.5px; /* Pequeño espaciado para un look más moderno */
}

h1 {
    font-size: 3.8em; /* Un poco más grande para mayor impacto */
    text-align: center;
    color: var(--text-light);
    line-height: 1.1; /* Ajuste para evitar mucho espacio entre líneas */
}

h2 {
    font-size: 2.8em; /* Un poco más grande */
    text-align: center;
    margin-bottom: 40px;
    position: relative; /* Para posibles efectos de underline o before/after */
}

h2::after { /* Efecto de línea debajo del título */
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

h3 {
    font-size: 2em; /* Ligeramente más grande */
    color: var(--primary-color); /* Color principal para destacar */
}

p {
    margin-bottom: 18px; /* Ligeramente más espaciado */
    font-size: 1.1em; /* Texto un poco más grande para mejor lectura */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 16px 32px; /* Ligeramente más grande */
    border-radius: 50px; /* Bordes más redondeados para un look suave */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 700; /* Más negrita */
    text-transform: uppercase;
    letter-spacing: 1.5px; /* Más espaciado entre letras */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #cc4522; /* Tono más oscuro de naranja */
    transform: translateY(-5px); /* Efecto de levantamiento más pronunciado */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Ajuste de brillo */
    z-index: -2; /* Detrás del overlay */
}

.hero-overlay { /* Nuevo overlay con gradiente */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 800px; /* Limitar el ancho del contenido para mejor lectura */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Sombra más pronunciada */
}

.hero-text p {
    font-size: 1.8em; /* Más grande */
    margin-bottom: 40px;
    font-weight: 300; /* Fuente más delgada para un look elegante */
}

/* About Section */
.about-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 100px 0; /* Más padding para espacio */
    text-align: center;
}

.about-section h2 {
    color: var(--accent-color);
}

.mission-vision {
    display: flex;
    justify-content: center;
    gap: 50px; /* Más espacio entre tarjetas */
    margin-top: 50px;
    flex-wrap: wrap;
}

.mission-vision .card {
    background-color: var(--secondary-color); /* Usar secondary-color */
    padding: 40px; /* Más padding */
    border-radius: 12px; /* Más redondeado */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Sombra más definida */
    flex: 1;
    min-width: 320px;
    max-width: 48%; /* Ajuste para que se vea mejor */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 5px solid var(--primary-color); /* Borde inferior para destacar */
}

.mission-vision .card:hover {
    transform: translateY(-15px); /* Efecto de levantamiento más pronunciado */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.mission-vision .card h3 {
    color: var(--accent-color); /* Dorado para el título de la tarjeta */
    margin-bottom: 20px;
    display: flex; /* Para alinear icono y texto */
    align-items: center;
    justify-content: center;
    gap: 15px; /* Espacio entre icono y texto */
}

.icon-card { /* Estilo para los iconos de las tarjetas */
    font-size: 2.2em;
    color: var(--primary-color);
}


/* Services Section */
.services-section {
    padding: 100px 0; /* Más padding */
    background-color: var(--background-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px; /* Más espacio entre tarjetas */
    margin-top: 50px;
}

.service-card {
    background-color: var(--secondary-color); /* Fondo oscuro para contraste */
    color: var(--text-light);
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent; /* Borde transparente inicial */
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-color); /* Borde al pasar el ratón */
}

.service-card i {
    font-size: 3.5em; /* Iconos más grandes */
    color: var(--accent-color); /* Color dorado para los iconos */
    margin-bottom: 25px;
}

.service-card h3 {
    color: var(--primary-color); /* Naranja para el título del servicio */
    margin-bottom: 15px;
}

.icon-service { /* Clase específica para iconos de servicio */
    transition: color 0.3s ease; /* Transición para el color del icono */
}

.service-card:hover .icon-service {
    color: var(--primary-color); /* Cambiar a primary al pasar el ratón (si ya es accent) */
}


/* Testimonials Section (Nueva Sección) */
.testimonials-section {
    background-color: #f8f9fa; /* Un color ligeramente diferente al blanco para distinción */
    padding: 100px 0;
    text-align: center;
    color: var(--text-dark);
}

.testimonials-section h2 {
    color: var(--secondary-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--background-light);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card::before { /* Elemento decorativo */
    content: "\f10d"; /* Icono de comillas */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 3em;
    color: rgba(var(--primary-color), 0.1); /* Opacidad baja */
    z-index: 0;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.15em;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative; /* Para asegurar que el texto esté encima del pseudo-elemento */
    z-index: 1;
}

.testimonial-card h4 {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 100px 0; /* Más padding */
    text-align: center;
}

.contact-section h2 {
    color: var(--text-light);
}

.contact-form {
    max-width: 650px; /* Ligeramente más ancho */
    margin: 50px auto 0 auto;
    background-color: var(--secondary-color); /* Fondo oscuro para el formulario */
    padding: 50px; /* Más padding */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 25px; /* Más espacio */
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px; /* Más espacio */
    font-weight: 600; /* Más negrita */
    color: var(--accent-color);
    font-size: 1.1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px; /* Más padding */
    border: 1px solid #555;
    border-radius: 8px; /* Más redondeado */
    background-color: #3e5060; /* Un tono más claro que secondary-color para el input */
    color: var(--text-light);
    font-size: 1.1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6); /* Color del placeholder */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color); /* Borde dorado al enfocar */
    box-shadow: 0 0 10px rgba(var(--accent-color), 0.5);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 18px; /* Más padding */
    font-size: 1.3em; /* Más grande */
    border: none;
    cursor: pointer;
    background-color: var(--accent-color);
    color: var(--secondary-color); /* Texto en color oscuro para contraste */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: #e6c200; /* Tono más oscuro de dorado */
    transform: translateY(-3px);
}

/* Footer */
.footer-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 40px 0; /* Más padding */
    font-size: 0.95em;
    border-top: 5px solid var(--primary-color); /* Borde superior para destacar */
}

.footer-section a {
    color: var(--accent-color);
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-light);
}

/* WhatsApp Floating Button (Ya integrado y mejorado en la propuesta inicial) */
.whatsapp-float {
    position: fixed;
    width: 65px; /* Un poco más grande */
    height: 65px;
    bottom: 30px; /* Ajuste para separarlo un poco más del borde */
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%; /* Asegurar que sea perfectamente redondo */
    text-align: center;
    font-size: 32px; /* Icono más grande */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Sombra más suave */
    z-index: 100; /* Asegura que esté por encima de otros elementos */
    display: flex; /* Para centrar el icono */
    align-items: center; /* Para centrar el icono verticalmente */
    justify-content: center; /* Para centrar el icono horizontalmente */
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.15); /* Efecto de escala más pronunciado */
    background-color: #1DA851; /* Tono más oscuro de verde */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Animaciones CSS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases para activar animaciones */
.animate-fade-in-up,
.animate-slide-in-right,
.animate-fade-in,
.animate-fade-in-left,
.animate-fade-in-right,
.animate-zoom-in,
.animate-slide-in-left,
.animate-slide-in-up {
    opacity: 0; /* Ocultar por defecto */
    transform: translateY(20px); /* Posición inicial */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Transición por defecto */
}

.animate-slide-in-right, .animate-slide-in-left {
    transform: translateX(50px);
}
.animate-slide-in-left {
    transform: translateX(-50px);
}
.animate-zoom-in {
    transform: scale(0.9);
}
.animate-slide-in-up {
    transform: translateY(30px);
}


/* Cuando la clase 'is-visible' se añade por JS */
.animate-fade-in-up.is-visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in.is-visible {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-right.is-visible {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-slide-in-left.is-visible {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-fade-in-left.is-visible {
    animation: fadeIn 0.8s ease-out forwards, slideInLeft 0.8s ease-out forwards; /* Combinar si es necesario */
}

.animate-fade-in-right.is-visible {
    animation: fadeIn 0.8s ease-out forwards, slideInRight 0.8s ease-out forwards; /* Combinar si es necesario */
}

.animate-zoom-in.is-visible {
    animation: zoomIn 0.7s ease-out forwards;
}

.animate-slide-in-up.is-visible {
    animation: slideInUp 0.7s ease-out forwards;
}

/* Delays para animaciones escalonadas */
.delay-1 { animation-delay: 0.2s !important; }
.delay-2 { animation-delay: 0.4s !important; }
.delay-3 { animation-delay: 0.6s !important; }
.delay-4 { animation-delay: 0.8s !important; }
.delay-5 { animation-delay: 1s !important; }


/* Responsive Design */
@media (max-width: 992px) { /* Ajuste para tablets */
    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 2.2em;
    }

    .hero-text p {
        font-size: 1.4em;
    }

    .mission-vision .card {
        max-width: 48%;
        min-width: 300px;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-text p {
        font-size: 1.2em;
        margin-bottom: 25px;
    }

    .btn-primary {
        padding: 14px 28px;
        font-size: 0.95em;
    }

    .mission-vision {
        flex-direction: column; /* Apilar en pantallas pequeñas */
        align-items: center;
    }

    .mission-vision .card {
        max-width: 90%;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px;
        margin: 30px auto 0 auto;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        font-size: 28px;
    }

    p {
        font-size: 1em;
    }

    h3 {
        font-size: 1.7em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .about-section, .services-section, .testimonials-section, .contact-section {
        padding: 60px 0; /* Menos padding general */
    }

    .mission-vision .card, .service-card, .testimonial-card, .contact-form {
        padding: 25px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}