:root {
    --primary-color: #1D6F42; /* Verde oscuro tipo Excel */
    --secondary-color: #107C41; /* Un tono de verde complementario */
    --dark-color: #165132; /* Verde muy oscuro para textos o fondos */
    --light-color: #f0fdf4; /* Un verde muy pálido, casi blanco, para fondos */
    --font-family: 'Helvetica', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Aumentamos la altura para que el logo quepa bien */
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

/* Sección principal con fondo de imagen */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/fondo-principal.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFFFFF; /* << ARREGLO: Color blanco puro */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* << ARREGLO: Sombra para mejorar el contraste */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

section {
    padding: 60px 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

/* Sección de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #ddd;
}

.service-card h3 a {
    color: var(--dark-color);
    text-decoration: none;
}

.service-card h3 a:hover {
    color: var(--primary-color);
}

/* Secciones de cada maestro */
.about-us {
    background: var(--light-color);
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.about-us h2 {
    color: var(--dark-color);
}

.about-us p {
    max-width: 800px;
    margin: 0 auto;
}

/* Formulario de contacto */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.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 6px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 36px;
    height: 36px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 2rem;
    }
}
/* === ESTILOS GLOBALES DE COLOR VERDE === */

/* Títulos principales y secundarios en verde oscuro */
h1, h2, h3, h4, h5, h6 {
    color: #006400 !important; /* Un verde oscuro para máxima legibilidad */
}

/* ------- Hero Blog con imagen de fondo ------- */
.hero-service {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('imagenes/portada-blog.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    min-height: 320px;         /* Asegura visualización del fondo */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;               /* Texto principal en blanco */
}

/* ------- Footer siempre con texto blanco -------- */
.footer {
    background-color: var(--dark-color);
    color: #fff !important;        /* Texto blanco sí o sí */
    text-align: center;
    padding: 20px 0;
}

.boton-volver-servicios {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 32px;
}