/*
Theme Name: Forestier Soluciones Ambientales
Theme URI: https://forestier.es
Author: Forestier
Description: Tema corporativo para Forestier Soluciones Ambientales
Version: 1.0
License: Privado
Text Domain: forestier
*/

/* ===== VARIABLES ===== */
:root {
    --verde-oscuro:  #1b4332;
    --verde-primary: #2d6a4f;
    --verde-medio:   #40916c;
    --verde-claro:   #95d5b2;
    --verde-suave:   #d8f3dc;
    --blanco:        #ffffff;
    --gris-claro:    #f8f9fa;
    --gris-texto:    #4a4a4a;
    --negro:         #1a1a2e;
    --sombra:        0 4px 20px rgba(27,67,50,0.12);
    --radio:         8px;
    --transicion:    all 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gris-texto);
    background: var(--blanco);
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-primary); text-decoration: none; transition: var(--transicion); }
a:hover { color: var(--verde-oscuro); }
ul { list-style: none; }

/* ===== HEADER ===== */
.site-header {
    background: var(--verde-oscuro);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--verde-claro);
    letter-spacing: -0.5px;
}
.site-logo span { color: var(--verde-oscuro); }
.site-logo:hover { color: var(--verde-medio); }

/* Navegación */
.main-nav ul {
    display: flex;
    gap: 1 rem;
    align-items: center;
}
.main-nav a {
    color: var(--negro);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radio);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transicion);
}
.main-nav a {
    color: var(--blanco);  /* Cambiado de negro a blanco para mejor contraste sobre verde */
    padding: 0.6rem 1rem;  /* Aumentado ligeramente para más espacio interno */
    border-radius: var(--radio);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transicion);
    border: 1px solid rgba(255, 255, 255, 0.2);  /* Borde sutil para profundidad */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* Sombra ligera para efecto 3D */
    display: inline-flex;  /* Asegura alineación interna */
    align-items: center;  /* Centra verticalmente el texto dentro del enlace */
    justify-content: center;  /* Centra horizontalmente */
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: var(--negro);
    color: var(--verde-medio);
    transform: translateY(-2px);  /* Efecto de elevación en hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* Sombra más pronunciada */
}

.nav-cta a {
    background: var(--verde-medio) !important;
    color: var(--blanco) !important;
    padding: 0.6rem 1.2rem !important;  /* Ajustado para consistencia */
    border: 1px solid var(--verde-oscuro);  /* Borde para armonizar */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* Sombra ligera */
}

.nav-cta a:hover {
    background: var(--verde-claro) !important;
    color: var(--verde-oscuro) !important;
    transform: translateY(-2px);  /* Efecto de elevación */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* Sombra más fuerte */ 
}

/* Hamburguesa móvil */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--blanco);
    padding: 0.4rem 0.7rem;
    border-radius: var(--radio);
    cursor: pointer;
    font-size: 1.2rem;
}

.site-logo-img { display: flex; align-items: center; }
.site-logo-img img { height: 56px; width: auto; display: block; }

.site-footer {
    background: var(--verde-oscuro);
    color: rgba(255,255,255,0.8);
    padding: 3rem 2rem 1.5rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand .site-logo { font-size: 1.3rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.8; line-height: 1.6; }
.footer-links h4, .footer-contact h4 {
    color: var(--verde-claro);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-links a:hover { color: var(--blanco); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-contact a { color: var(--verde-claro); }
.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { opacity: 1; color: var(--blanco); }

/* ===== CONTENEDOR GENERAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-primary) 60%, var(--verde-medio) 100%);
    color: var(--blanco);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radio);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transicion);
    border: none;
}
.btn-primary {
    background: var(--blanco);
    color: var(--verde-oscuro);
}
.btn-primary:hover { background: var(--verde-suave); color: var(--verde-oscuro); transform: translateY(-2px); box-shadow: var(--sombra); }
.btn-outline {
    border: 2px solid rgba(255,255,255,0.7);
    color: var(--blanco);
    background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--blanco); }
.btn-verde {
    background: var(--verde-primary);
    color: var(--blanco);
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    width: 100%;
}
.btn-verde:hover { background: var(--verde-oscuro); color: var(--blanco); transform: translateY(-2px); box-shadow: var(--sombra); }

/* ===== SECCIÓN GENÉRICA ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--gris-claro); }
.section-verde { background: var(--verde-suave); }
.section-dark { background: var(--verde-oscuro); color: var(--blanco); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--verde-oscuro);
    margin-bottom: 0.75rem;
}
.section-dark .section-header h2 { color: var(--verde-claro); }
.section-header p { max-width: 600px; margin: 0 auto; opacity: 0.8; }
.section-intro {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--gris-texto);
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--blanco);
    border-radius: calc(var(--radio) * 2);
    padding: 2rem;
    box-shadow: var(--sombra);
    transition: var(--transicion);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(27,67,50,0.18); }
.card-icon {
    width: 56px;
    height: 56px;
    background: var(--verde-suave);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}
.card h3 { font-size: 1.1rem; color: var(--verde-oscuro); margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--gris-texto); }

/* ===== HERO DE PÁGINA INTERNA ===== */
.page-hero {
    background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-primary));
    color: var(--blanco);
    padding: 4rem 2rem;
    text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.05rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* ===== PROCESO ===== */
.proceso-list { counter-reset: paso; display: flex; flex-direction: column; gap: 1.5rem; max-width: 700px; margin: 0 auto; }
.proceso-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 1.5rem;
    box-shadow: var(--sombra);
}
.proceso-num {
    counter-increment: paso;
    min-width: 48px;
    height: 48px;
    background: var(--verde-primary);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.proceso-item h3 { color: var(--verde-oscuro); margin-bottom: 0.25rem; }
.proceso-item p { font-size: 0.9rem; }

/* ===== LISTA CHECKS ===== */
.check-list { display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.check-list li::before {
    content: '✓';
    color: var(--verde-medio);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ===== FORMULARIO ===== */
.form-section {
    background: var(--blanco);
    border-radius: calc(var(--radio) * 2);
    padding: 2.5rem;
    box-shadow: var(--sombra);
    max-width: 680px;
    margin: 0 auto;
}
.form-section h2 { color: var(--verde-oscuro); margin-bottom: 0.5rem; font-size: 1.5rem; }
.form-section p { margin-bottom: 2rem; color: var(--gris-texto); }
.form-row { margin-bottom: 1.25rem; }
.form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--verde-oscuro);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radio);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transicion);
    background: var(--blanco);
    color: var(--negro);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--verde-medio);
    box-shadow: 0 0 0 3px rgba(64,145,108,0.15);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row select { cursor: pointer; }
.form-check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.form-check input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--verde-primary);
}
.form-check label {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gris-texto);
}
.form-check a { color: var(--verde-primary); }

/* ===== EQUIPO ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.team-card {
    text-align: center;
    background: var(--blanco);
    border-radius: calc(var(--radio) * 2);
    padding: 2rem;
    box-shadow: var(--sombra);
}
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--verde-suave);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}
.team-card h3 { color: var(--verde-oscuro); margin-bottom: 0.25rem; }
.team-card .cargo { font-size: 0.85rem; color: var(--verde-medio); font-weight: 600; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.9rem; }

/* ===== CERTIFICACIONES ===== */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
	justify-content: center; 
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.cert-item {
    background: var(--blanco);
    border: 2px solid var(--verde-suave);
    border-radius: var(--radio);
    padding: 1.25rem;
    text-align: center;
    font-weight: 600;
    color: var(--verde-oscuro);
    font-size: 0.9rem;
}

/* ===== PÁGINA GRACIAS ===== */
.gracias-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}
.gracias-box {
    max-width: 520px;
    background: var(--blanco);
    border-radius: calc(var(--radio) * 2);
    padding: 3rem;
    box-shadow: var(--sombra);
}
.gracias-icon { font-size: 4rem; margin-bottom: 1rem; }
.gracias-box h1 { color: var(--verde-oscuro); margin-bottom: 1rem; }
.gracias-box p { margin-bottom: 1.5rem; }

/* ===== PÁGINAS LEGALES ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    line-height: 1.8;
}
.legal-content h1 { color: var(--verde-oscuro); margin-bottom: 2rem; font-size: 2rem; }
.legal-content h2 { color: var(--verde-primary); margin: 2rem 0 1rem; font-size: 1.3rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 1rem 0 1rem 2rem; list-style: disc; }
.legal-content li { margin-bottom: 0.5rem; }

/* ===== AVISO RGPD ===== */
.rgpd-nota {
    font-size: 0.78rem;
    color: #888;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}
@media (max-width: 700px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--verde-oscuro);
        padding: 1rem;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 0.75rem 1rem; border-radius: var(--radio); }
    .header-inner { position: relative; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero { padding: 4rem 1.5rem; }
    .form-section { padding: 1.75rem; }
    .section { padding: 3rem 0; }
	.cert-grid { grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */ }
	.cards-grid { grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */ }
}
