:root {
    /* Colores principales */
    --primary-color: #B8CB4D;
    --color-secondary: #a87c4d;
    --accent-color: var(--wp--preset--color--luminous-vivid-orange);
    --dark-color: var(--wp--preset--color--black);
    --light-color: var(--wp--preset--color--white);

    /* Gradientes */
    --primary-gradient: linear-gradient(135deg, #B8CB4D, #B8CB4D);
    --accent-gradient: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange);

    /* Sombras */
    --card-shadow: var(--wp--preset--shadow--natural);
    --hover-shadow: var(--wp--preset--shadow--deep);

    /* Espaciado */
    --section-spacing: var(--wp--preset--spacing--70);
    --component-spacing: var(--wp--preset--spacing--40);

    /* Fuentes */
    --small-font: var(--wp--preset--font-size--small);
    --medium-font: var(--wp--preset--font-size--medium);
    --large-font: var(--wp--preset--font-size--large);

    /* Colores específicos */
    --bg-color-soft: #f5f8f5;

    --nav-height: 60px;
    --logo-height: 40px;
    --font-size: 0.9rem;
}

/* --------- Estilos generales --------- */
body {
    overflow-x: hidden;
    background-color: var(--bg-color-soft);
    font-family: 'Poppins', sans-serif !important;
}
.bg-light {
    background-color: #f8f9fa !important;
}
.text-success {
    color: var(--primary-color) !important;
}
h1, h2, h3 {
    font-weight: 600 !important;
    letter-spacing: -0.5px;
}

/* --------- Botones --------- */
.btn-primary {
    background: #4DAE50;
    border: none;
    transition: all 0.3s;
}
.btn-primary:hover {
    background: #136f4a !important;
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--color-secondary);
    border: none;
}
.btn-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
    transition: all 0.3s ease;
}
.btn-success:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-2px);
}

/* --------- Cards --------- */
.card {
    border: 3px solid var(--bs-success) !important;
    border-radius: 10px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff !important;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.15) !important;
}

/* --------- Iconos --------- */
.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
.icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}
.card:hover .icon-circle {
    transform: rotateY(360deg);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.5);
}

/* --------- Utilidades --------- */
.bg-primary-gradient { background: var(--primary-gradient); }
.bg-accent-gradient { background: var(--accent-gradient); }
.shadow-custom { box-shadow: var(--card-shadow); }
.shadow-hover { transition: box-shadow 0.3s ease; }
.shadow-hover:hover { box-shadow: var(--hover-shadow); }
.transition-all { transition: all 0.3s ease; }
.section-padding { padding: var(--section-spacing) 0; }
.component-padding { padding: var(--component-spacing); }
.bg-white { background-color: var(--bg-color-soft) !important; }

/* --------- Hero Section --------- */
.hero-section {
    position: relative;
    min-height: 600px; /* o el alto que quieras */
    width: 100%;
    overflow: hidden;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-section h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.hero-section .lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.hero-section .btn-primary {
    background-color: #B8CB4D;
    border-color: #B8CB4D;
    padding: 15px 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.hero-section .btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.hero-background, .hero-background2 {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}
.hero-background2 {
    background: linear-gradient(45deg, #28a745 0%, #20c997 100%);
    opacity: 0.9;
}
.hero-background::before, .hero-background2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
    z-index: -1;
}
.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* --------- Servicios --------- */
.servicios-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../assets/img/tierra-de-diatomeas-slider.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.servicios-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}
.servicios-section .container { position: relative; z-index: 2; }
.service-card {
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}
.service-card:hover {
    border-color: #4CAF50;
    transform: translateY(-5px);
}
.service-icon {
    width: 64px;
    height: 64px;
    transition: all 0.3s ease;
    filter: invert(71%) sepia(40%) saturate(402%) hue-rotate(84deg) brightness(91%) contrast(87%);
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* --------- Contacto --------- */
.contact-section {
    background-color: var(--bg-color-soft);
    position: relative;
}
.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-control {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    border-radius: 0.5rem;
}
.form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}
.contact-info-card, .contact-form-card {
    transition: transform 0.3s ease;
}
.contact-info-card:hover, .contact-form-card:hover {
    transform: translateY(-5px);
}

/* --------- Beneficios --------- */
.beneficios-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}
.row-equal-height { display: flex; flex-wrap: wrap; }
.beneficio-card {
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}
.beneficio-icon-wrapper { text-align: center; padding: 25px 0 15px 0; }
.beneficio-icon { display: inline-block; transition: all 0.3s ease; }
.beneficio-card:hover .beneficio-icon { transform: scale(1.1); }
.beneficio-content { padding: 0 25px 25px 25px; }
.beneficio-title {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.beneficio-description { color: #666; margin-bottom: 25px; }
.beneficio-button { text-align: center; }
.beneficio-button .btn {
    padding: 10px 25px;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
}
.beneficio-button .btn:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-3px);
}

/* --------- Galería --------- */
.gallery-item {
    height: 250px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}
.gallery-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0.5);
    transition: all 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }
.gallery-item img { transition: all 0.3s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* --------- Modales --------- */
.modal-backdrop.show { opacity: 0.9; }
.btn-close {
    background-color: white;
    opacity: 0.8;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    z-index: 1;
}
.btn-close:hover { opacity: 1; }

/* --------- Footer --------- */
.footer-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    border-top: 5px solid #4CAF50;
    color: white;
}
.social-link-material { text-decoration: none; }
.social-icon-material {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}
.social-icon-material i {
    font-size: 20px;
    color: #4CAF50;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}
.social-link-material:hover .social-icon-material {
    transform: translateY(-5px);
    background: rgba(76, 175, 80, 0.2);
}
.hover-link { transition: all 0.3s ease; }
.hover-link:hover {
    color: #4CAF50 !important;
    transform: translateX(5px);
}
.newsletter-form .form-control {
    border: 2px solid rgba(76, 175, 80, 0.2);
    background: white;
}
.newsletter-form .form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}
.newsletter-form .btn-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
    padding: 0.5rem 2rem;
}
.newsletter-form .btn-success:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* --------- WhatsApp botón --------- */
#whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
}
#whatsapp circle { fill: #25d366; }
#whatsapp path { fill: #fff; }

/* --------- Video Section --------- */
.video-section {
    padding: 100px 0;
    background: linear-gradient(to right, #f8f9fa 50%, #ffffff 50%);
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-content {
    padding-right: 40px;
}

/* --------- Secciones especiales --------- */
#nutricion-animal {
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%),
        url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h40v40H0z" fill="%23e9ecef" fill-opacity="0.1"/%3E%3C/svg%3E');
    background-blend-mode: multiply;
    position: relative;
    overflow: hidden;
}
#nutricion-animal::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    transform: skewY(-2deg);
    z-index: -1;
}
#aplicaciones-industriales {
    background: linear-gradient(15deg, #ffffff 50%, #f1f8f1 100%);
    position: relative;
    overflow: hidden;
}
#beneficios-agricultura {
    position: relative;
    overflow: hidden;
}
#beneficios-agricultura::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="1" d="M0,96L60,112C120,128,240,160,360,165.3C480,171,600,149,720,138.7C840,128,960,128,1080,138.7C1200,149,1320,171,1380,181.3L1440,192L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    z-index: 1;
}

/* --------- Media Queries --------- */
@media (max-width: 991px) {
    .beneficio-card { margin-bottom: 30px; }
}
@media (max-width: 768px) {
    .hero-section { min-height: 80vh; padding: 80px 0; }
    .hero-section h1 { font-size: 2.5rem; }
    .hero-section h3 { font-size: 1.2rem; }
    .hero-section .lead { font-size: 1rem; }
    .hero-section .btn-primary { padding: 12px 30px; font-size: 1rem; }
    .gallery-item { height: 200px; }
    .service-card { margin-bottom: 20px; }
    .servicios-section { background-attachment: scroll; }
    .contact-info-card, .contact-form-card { margin-bottom: 1rem; }
    .social-icon-material { width: 40px; height: 40px; }
    .social-icon-material i { font-size: 18px; }
}

/* Accesibilidad: foco visible en enlaces y botones */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #198754; /* Verde Bootstrap */
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #b6f0d1;
}
