:root {
    --primary-blue: #0066cc;
    --primary-green: #4caf50;
    --dark-green: #2e7d32;
    --text-color: #2c3e50;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.7;
}

/* Header / Navegación */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-container img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-green);
}

/* Hero Banner */
.hero {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85), rgba(46, 125, 50, 0.85)), 
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 5rem 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Carrusel de Fotos */
.carousel-section {
    max-width: 1100px;
    margin: 3rem auto 1rem auto;
    padding: 0 1.5rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: var(--white);
    padding: 2rem 1.5rem 1rem 1.5rem;
    font-size: 1.1rem;
}

/* Botones del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Contenido Principal */
.container {
    max-width: 1100px;
    margin: 3rem auto 4rem auto;
    padding: 0 1.5rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 6px solid var(--primary-green);
}

.card.vision-card {
    border-top-color: var(--primary-blue);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.card p {
    color: #4a5568;
    font-size: 1.05rem;
    text-align: justify;
}

/* Contenedor Botón Flotante de WhatsApp + Mensaje */
.whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
}

/* Bocadillo con mensaje "¿Te ayudo?" */
.whatsapp-tooltip {
    background-color: var(--white);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    position: relative;
    white-space: nowrap;
    animation: pulseTooltip 3s infinite ease-in-out;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent var(--white);
}

/* Botón Circular WhatsApp */
.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: var(--white);
}

/* Animación de flotación suave para el mensaje */
@keyframes pulseTooltip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Pie de Página */
footer {
    background-color: #1e293b;
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 5rem;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .carousel-container {
        height: 300px;
    }
    .whatsapp-container {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    .whatsapp-tooltip {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}
/* Desplazamiento suave para los enlaces de ancla */
html {
    scroll-behavior: smooth;
}

/* Botones en el Hero Banner */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-btn {
    text-decoration: none;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-mision {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--primary-green);
}

.btn-mision:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-vision {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--primary-green);
}

.btn-vision:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}
/* Estilo de botón para Contacto en el Nav */
nav ul li .nav-btn {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav ul li .nav-btn:hover {
    background-color: var(--dark-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sección Contáctanos */
.contact-section {
    background-color: var(--white);
    max-width: 800px;
    margin: 4rem auto 2rem auto;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-section h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-section p {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.submit-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}