/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-principal: #166534;
    --color-principal-hover: #14532d;
    --color-secundario: #15803d;
    --color-texto: #1f2937;
    --color-texto-claro: #6b7280;
    --color-fondo: #f9fafb;
    --color-blanco: #ffffff;
    --sombra: 0 4px 6px rgba(0, 0, 0, 0.1);
    --sombra-grande: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-texto);
    background-color: var(--color-fondo);
}

/* Header */
.header-top {
    background-color: var(--color-secundario);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.header-top a:hover {
    text-decoration: underline;
}

header nav {
    background-color: white;
    box-shadow: var(--sombra);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-principal);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-principal);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-texto);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-background.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--color-principal);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--color-principal-hover);
    transform: translateY(-2px);
    box-shadow: var(--sombra-grande);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--color-principal);
}

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

/* Secciones */
section {
    padding: 80px 20px;
}

section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--color-principal);
    text-align: center;
}

section > p {
    text-align: center;
    color: var(--color-texto-claro);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de servicios */
.servicios-grid, .zonas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.servicio-card, .zona-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--sombra);
    transition: all 0.3s;
}

.servicio-card:hover, .zona-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-grande);
}

.servicio-card h3, .zona-card h3 {
    color: var(--color-principal);
    margin-bottom: 15px;
    font-size: 22px;
}

.servicio-card p, .zona-card p {
    color: var(--color-texto-claro);
    margin-bottom: 20px;
}

/* Características */
.caracteristicas {
    background-color: white;
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.caracteristica {
    text-align: center;
}

.caracteristica-icon {
    font-size: 48px;
    color: var(--color-principal);
    margin-bottom: 20px;
}

.caracteristica h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-texto);
}

/* Proceso */
.proceso-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--sombra);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-principal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
    color: var(--color-texto);
}

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

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-grande);
}

.blog-card-content {
    padding: 25px;
}

.blog-card h3 {
    color: var(--color-principal);
    margin-bottom: 15px;
    font-size: 20px;
}

.blog-date {
    color: var(--color-texto-claro);
    font-size: 14px;
    margin-bottom: 10px;
}

/* FAQs */
.faqs-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-texto);
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--color-fondo);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

/* Contacto */
.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contacto-info h3 {
    color: var(--color-principal);
    margin-bottom: 20px;
}

.contacto-item {
    margin-bottom: 25px;
}

.contacto-item strong {
    display: block;
    color: var(--color-texto);
    margin-bottom: 5px;
}

.contacto-item a {
    color: var(--color-principal);
    text-decoration: none;
}

.contacto-item a:hover {
    text-decoration: underline;
}

.mapa {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: var(--sombra);
}

/* Footer */
footer {
    background-color: var(--color-secundario);
    color: white;
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #93c5fd;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Página interna */
.page-header {
    background: linear-gradient(135deg, var(--color-principal), var(--color-secundario));
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-content h2 {
    color: var(--color-principal);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 28px;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-content ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content ul li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: var(--sombra);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .contacto-container {
        grid-template-columns: 1fr;
    }
    
    .servicios-grid, .zonas-grid {
        grid-template-columns: 1fr;
    }
}
