/*
 Theme Name:   MM Integra Plag Child
 Theme URI:    (URL de tu futuro sitio web)
 Description:  Tema hijo para MM Integra Plag. Optimizado para rendimiento, SEO y control de plagas.
 Author:       MM Integra Plag
 Author URI:   (URL de tu futuro sitio web)
 Template:     kadence
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  mm-integra-plag
*/

/* ================================================================
 1.0 - VARIABLES GLOBALES DE DISEÑO (PALETA MM INTEGRA PLAG)
================================================================ */
:root {
    --primary-color: #6dc32d;  /* Verde Primario */
    --secondary-color: #222222;  /* Negro/Gris Oscuro */
    --accent-color: #58a920;   /* Verde más oscuro para hover */
    --light-gray-bg: #f7f7f7;   /* Gris Claro de Fondo */
    --text-color: #333333;
    --white-color: #FFFFFF;
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* ================================================================
 2.0 - ESTILOS GENERALES Y BOTONES
================================================================ */
body, p, span, li, a {
    font-family: var(--font-body);
    color: var(--text-color);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--secondary-color);
}
.primary-cta {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    font-family: var(--font-headings);
    font-weight: 700;
    border-radius: 5px;
    padding: 12px 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.primary-cta:hover {
    background-color: var(--accent-color);
}

/* ================================================================
 3.0 - ESTILOS DEL PIE DE PÁGINA PERSONALIZADO
================================================================ */
.mm-custom-footer {
    background-color: var(--secondary-color);
    color: #f0f0f0;
    padding: 60px 0 20px 0;
}
.mm-footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.mm-footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px;
}
.mm-footer-column h4 {
    color: var(--white-color); font-size: 1.2em; margin-bottom: 20px; text-transform: uppercase;
}
.mm-footer-column p, .mm-footer-column ul li a {
    color: #cccccc; text-decoration: none; transition: color 0.3s ease;
}
.mm-footer-column ul { list-style: none; padding: 0; margin: 0; }
.mm-footer-column ul li { margin-bottom: 12px; }
.mm-footer-column ul li a:hover { color: var(--primary-color); }
.mm-footer-column .footer-logo { max-width: 180px; margin-bottom: 20px; }
.mm-footer-bottom-bar {
    border-top: 1px solid #3a4a63; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
}
.mm-footer-bottom-bar .social-icons a svg {
    width: 24px; height: 24px; fill: #cccccc; transition: fill 0.3s ease;
}
.mm-footer-bottom-bar .social-icons a:hover svg { fill: var(--primary-color); }
@media (max-width:768px){ .mm-footer-grid{ grid-template-columns:1fr 1fr } }
@media (max-width:480px){ .mm-footer-grid{ grid-template-columns:1fr } }

/* ================================================================
 4.0 - ESTILOS DEL BOTÓN FLOTANTE DE WHATSAPP
================================================================ */
.whatsapp-flotante {
    position: fixed; width: 60px; height: 60px; bottom: 25px; right: 25px; 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; justify-content: center; align-items: center; transition: transform 0.3s ease;
}
.whatsapp-flotante:hover { transform: scale(1.1); }

/* ================================================================
 5.0 - ESTILOS PÁGINA DE INICIO (PLANTILLA PERSONALIZADA)
================================================================ */
/* Estilos para el Hero Section */
.hero-section {
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white-color);
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 50px;
}
.hero-content h1 {
    font-size: 3.2em;
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}
.hero-form-wrapper {
    background: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}
.hero-form-wrapper h3 {
    text-align: center;
    margin-top: 0;
    font-size: 1.6em;
}
/* Estilos para la sección de Plagas */
.plagas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}
.plaga-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.3s, transform 0.3s;
}
.plaga-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.plaga-item img {
    max-width: 60px;
    margin-bottom: 15px;
}

/* ================================================================
 6.0 - ESTILOS DEL BLOG (home.php y single.php)
================================================================ */
.blog-page-wrapper { overflow-x: hidden; }
.blog-section { padding: 80px 20px; }
.blog-container { max-width: 1100px; margin: 0 auto; }
.blog-section-title { text-align: center; margin-bottom: 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.post-card { background: #fff; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.post-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.post-card-image-placeholder { height: 220px; background-size: cover; background-position: center; }
.post-card-content { padding: 30px; }
.post-card-content h3 a { text-decoration: none; color: var(--secondary-color); }
.post-card-content .btn { background: var(--secondary-color); color: var(--white-color); padding: 10px 25px; border-radius: 5px; text-decoration: none; font-weight: 700; }
.post-card-content .btn:hover { background-color: var(--primary-color); }

.single-post-wrapper { max-width: 800px; margin: 40px auto 80px auto; padding: 0 20px; }
.post-thumbnail-container { height: 400px; background-size: cover; background-position: center; border-radius: 8px; margin-bottom: 30px; }
.entry-title { font-size: 3em; }
.entry-content { font-size: 1.1em; line-height: 1.8; }
.entry-content a { color: var(--primary-color); }

/* ================================================================
 7.0 - ESTILOS PARA CONTACT FORM 7
================================================================ */
.hero-form-wrapper .wpcf7-form p {
    margin-bottom: 15px;
}
.hero-form-wrapper .wpcf7-form-control {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #ccc;
    color: var(--text-color);
    padding: 12px;
    border-radius: 5px;
    font-size: 1em;
}
.hero-form-wrapper .wpcf7-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.hero-form-wrapper .wpcf7-submit:hover {
    background-color: var(--accent-color);
}
/* ================================================================
 8.0 - AJUSTES FINALES DE COLOR
================================================================ */

/* Forzar color del botón principal del Hero */
.hero-content .primary-cta {
    background-color: var(--primary-color) !important;
}

/* Forzar color del botón del formulario */
.hero-form-wrapper .wpcf7-submit {
    background-color: var(--primary-color) !important;
}
.hero-form-wrapper .wpcf7-submit:hover {
    background-color: var(--accent-color) !important;
}
/* ================================================================
 8.0 - ESTILOS DE LAS NUEVAS SECCIONES DEL CUERPO
================================================================ */

/* Estilos base para secciones */
.page-section {
    padding: 80px 20px;
}
.section-container {
    max-width: 1100px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #666;
}

/* 8.1 - Servicios Principales */
.services-section { background-color: var(--light-gray-bg); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    background: var(--white-color);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-icon { max-height: 60px; margin-bottom: 20px; }

/* 8.2 - Métodos Seguros */
.methods-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}
.methods-text ul { list-style: none; padding-left: 0; }
.methods-text li { font-size: 1.1em; margin-bottom: 15px; }
.check-icon { color: var(--primary-color); font-weight: bold; margin-right: 10px; }
.methods-image img { width: 100%; border-radius: 8px; }

/* 8.3 - Áreas Verdes */
.areas-verdes-section {
    background-color: var(--secondary-color);
}
.areas-verdes-section .section-title, .areas-verdes-section .section-subtitle {
    color: var(--white-color);
}

/* 8.4 - Contador */
.counter-section { background-color: var(--primary-color); }
.counter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; color: var(--white-color); }
.counter-number { font-size: 3.5em; font-weight: 800; font-family: var(--font-headings); }
.counter-text { font-size: 1.1em; }

/* 8.5 - Reseñas */
.testimonials-section { background-color: var(--light-gray-bg); }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; }
.testimonial-card { background: var(--white-color); padding: 30px; border-left: 5px solid var(--primary-color); border-radius: 5px; }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-author { font-weight: bold; color: var(--secondary-color); }

/* 8.6 - Preguntas Frecuentes (FAQ) */
.faq-container { max-width: 800px; }
.faq-item {
    background: var(--white-color);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px 20px;
}
.faq-question {
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: block;
}
.faq-answer {
    padding-top: 20px;
    line-height: 1.7;
}

/* 8.7 - CTA Banner 24/7 */
.cta-banner {
    background-color: var(--secondary-color);
    text-align: center;
    color: var(--white-color);
}
.cta-banner h2 { color: var(--white-color); }
.cta-banner p { color: #f0f0f0; margin-bottom: 30px; }

/* --- Media Queries para Móviles --- */
@media (max-width: 768px) {
    .methods-container, .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================================================
 9.0 - ESTILOS PARA SERVICIOS HORIZONTALES
================================================================ */

.horizontal-services-grid {
    display: grid;
    /* Crea 4 columnas en pantallas grandes, y se ajusta automáticamente a menos en pantallas más pequeñas */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.h-service-card {
    background: var(--white-color);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.h-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.h-service-card .service-icon {
    max-height: 50px;
    margin-bottom: 20px;
}

.h-service-card h3 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.h-service-card p {
    color: #666;
    line-height: 1.6;
}