/*
Theme Name: FONRECOL
Author: Cascade AI
Version: 2.0 (Replicación Fondescol)
Description: Hoja de estilos limpia y definitiva para la página principal.
*/

/* ===============================
   1. VARIABLES Y RESET GLOBAL
   =============================== */
:root {
    --primary-color: #007206;
    --secondary-color: #005a04;
    --dark-color: #2c3e50;
    --light-gray-bg: #f8f9fa;
}

html, body {
    margin: 0 !important; /* Forzar reseteo */
    padding: 0 !important; /* Forzar reseteo */
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Fix para la barra de admin de WordPress */
body.admin-bar {
    padding-top: 32px !important;
}

body.admin-bar .navbar {
    top: 32px !important;
}

/* ===============================
   2. NAVBAR FLOTANTE
   =============================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

/* ===============================
   3. HERO SLIDER (100vh Y TARJETA)
   =============================== */
#heroSlider, #heroSlider .carousel-item {
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.slide-card-style {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: slideInRight 1s ease-out both;
}

.slide-title-style {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.slide-text-style {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.slide-decoration-style {
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    opacity: 0.8;
}

/* ===============================
   4. ESTILOS GENERALES DE SECCIÓN
   =============================== */
.section-style {
    padding: 80px 0;
    animation: fadeInUp 1s ease-out both;
}

.section-title-style {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.section-text-style {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.text-highlight-style {
    color: var(--primary-color);
    font-weight: 600;
}

.bg-light { background-color: var(--light-gray-bg); }

/* ===============================
   5. BOTONES (VERDE Y OSCURO)
   =============================== */
.btn-style-primary, .btn-style-dark {
    padding: 0.9rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-style-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-style-primary:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 114, 6, 0.3);
}

.btn-style-dark {
    background: var(--dark-color);
    color: #fff;
}

.btn-style-dark:hover {
    background: #111827;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===============================
   6. SERVICIOS CAROUSEL
   =============================== */
.service-card-style {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card-style:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.service-icon-style {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
}

.service-icon-style i {
    font-size: 2rem;
    color: #fff;
}

.service-title-style {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-text-style {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link-style {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.service-link-style:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.carousel-indicators-style {
    position: relative;
    margin-top: 2.5rem;
    bottom: auto;
    left: auto;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.carousel-indicators-style button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    margin: 0 6px;
    opacity: 1;
}

.carousel-indicators-style button.active {
    background: var(--primary-color);
}

/* ===============================
   7. ANIMACIONES
   =============================== */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   8. RESPONSIVE
   =============================== */
@media (max-width: 991px) {
    .section-title-style { font-size: 2.2rem; }
    .slide-card-style { padding: 2rem; }
    .slide-title-style { font-size: 2rem; }
}

@media (max-width: 767px) {
    #heroSlider, #heroSlider .carousel-item, .hero-slide {
        height: auto;
        min-height: 700px;
        padding: 100px 0;
    }
    .slide-card-style { margin-top: 2rem; }
    .section-style { padding: 60px 0; }
}