/* CSS Personalizado Puro */

:root {
    --color-green-dark: #1b3d1d;
    --color-green-medium: #2a5a2e;
    --color-yellow: #f5a623;
    --color-yellow-light: #f7b844;
    --color-cream: #fcf8ee;
    --color-cream-dark: #f5ede0;
    --color-text-dark: #222222;
    --color-text-light: #ffffff;
    --color-gray: #666666;
    --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    background-color: var(--color-cream);
    line-height: 1.6;
}

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Encabezados de Sección */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    color: #2a5a2e;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-tag-dark {
    display: inline-block;
    color: #1b3d1d;
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.text-green {
    color: var(--color-green-dark);
}

.text-dark {
    color: var(--color-text-dark);
}

.section-description {
    color: #444;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 15px;
}

.title-underline {
    width: 70px;
    height: 4px;
    background-color: var(--color-yellow);
    margin: 0 auto;
    border-radius: 2px;
}

.title-underline-dark {
    width: 70px;
    height: 4px;
    background-color: var(--color-green-dark);
    margin: 0 auto;
    border-radius: 2px;
}

/* Header & Navegación */
.site-header {
    position: sticky;
    top: 0;
    background-color: rgba(27, 61, 29, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.brand-logo img {
    height: 35%;
    width: 35%;
    object-fit: contain;
}

.brand-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-yellow);
}

/* Hero Section con Textura Verde */
.hero-section {
    position: relative;
    background-image: url('../img/verde.jpg');
    background-repeat: repeat;
    background-size: 300px auto;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 35, 16, 0.75) 0%, rgba(27, 61, 29, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(245, 166, 35, 0.2);
    border: 1px solid var(--color-yellow);
    color: var(--color-yellow);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.badge-icon {
    width: 20px;
    height: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-yellow);
    color: #1b3d1d;
}

.btn-primary:hover {
    background-color: var(--color-yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

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

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--color-green-dark);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Fondos */
.bg-cream {
    background-color: var(--color-cream);
}

.bg-light {
    background-color: #f0f3f0;
}

.yellow-texture-bg {
    position: relative;
    background-image: url('../img/amarillo.jpg');
    background-repeat: repeat;
    background-size: 300px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Grillas */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.text-block .subsection-title {
    font-size: 1.5rem;
    color: var(--color-green-dark);
    margin-bottom: 15px;
}

.paragraph {
    margin-bottom: 15px;
    color: #333333;
    text-align: justify;
}

/* Callout Box con Textura Amarilla */
.callout-card {
    padding: 35px;
    border-left: 6px solid var(--color-green-dark);
}

.callout-content h3 {
    font-size: 1.4rem;
    color: var(--color-green-dark);
    margin-bottom: 10px;
}

.callout-content p {
    font-size: 1.1rem;
    color: #222222;
    font-weight: 500;
}

/* Grid de Vídeos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.video-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-50px);
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Aspect Ratio 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    font-size: 1.15rem;
    color: var(--color-green-dark);
    margin-bottom: 8px;
}

.video-info p {
    font-size: 0.95rem;
    color: #555555;
}

/* Galería */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 240px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #ffffff;
    padding: 15px 10px 10px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

/* Sección Beneficios / Pilares */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(5px);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--color-green-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #333333;
}

/* Formulario */
.contact-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-green-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-green-dark);
    box-shadow: 0 0 0 3px rgba(27, 61, 29, 0.1);
}

/* Footer con Textura Verde */
.site-footer {
    position: relative;
    background-image: url('../img/verde.jpg');
    background-repeat: repeat;
    background-size: 300px auto;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 35, 16, 0.9);
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    width: 30%;
    height: auto;
    margin-bottom: 10px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.footer-brand p {
    color: #bbbbbb;
    max-width: auto;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links h4 {
    color: var(--color-yellow);
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-links ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #dddddd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    width: 100%;
    color: #888888;
    font-size: 0.85rem;
}

/* Responsividad */
@media (max-width: 900px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }
}
