/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Tema hijo de Astra para CEUM / Roble Vivo
 Author:       CEUM
 Author URI:   https://ceum.cl/
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/


/* ========================================
   ROBLE VIVO - STYLES.CSS
   Sitio web estático - Mobile First
   Sin dependencias externas
   ======================================== */

/* ========================================
   CSS VARIABLES (Fácil personalización)
   ======================================== */
:root {
    /* Colores principales */
    --green: #2d7a3e;
    --green-dark: #1f5a2d;
    --green-light: #4a9d5f;
    --wood: #8b6f47;
    --wood-dark: #6b5437;

    /* Colores de fondo y texto */
    --bg: #ffffff;
    --bg-light: #f8f9f7;
    --bg-dark: #1a1a1a;
    --text: #2c2c2c;
    --text-white: #ffffff;
    --text-black: #000000;
    --text-light: #5a5a5a;
    --text-muted: #7a7a7a;

    /* Colores de acento */
    --accent: #25d366;
    /* WhatsApp green */
    --accent-hover: #1fb855;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Bordes */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Contenedor */
    --container-max: 1200px;

    /* Tipografía */
    --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Patrones */
    --pattern-color: rgba(45, 122, 62, 0.03);
}

/* ========================================
   RESET Y BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* font-family: var(--font-family); */
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.ast-primary-header-bar .site-primary-header-wrap {
    max-width: 1130px;
}

.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a) {
    text-decoration: none;
}

.ast-container, .ast-container-fluid {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.ast-plain-container.ast-no-sidebar #primary {
    margin: 0;
}

/* Ocultar todos los títulos generados por WordPress */

.entry-header {
  display: none;
}

.entry-content[data-ast-blocks-layout] > * {
    max-width: none;
}

/* ========================================
   UTILIDADES
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.center {
    text-align: center;
}

/* Detalle decorativo de hoja (SVG) */
.leaf-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
    filter: blur(1px);
}

.leaf-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: -50px;
    transform: rotate(15deg);
}

.leaf-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: -80px;
    transform: rotate(-25deg);
}

/* Patrón de fondo sutil */
.bg-pattern {
    background-image: radial-gradient(var(--pattern-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Placeholder para imágenes */
.placeholder-img {
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: var(--radius-md);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    display: block;
}

/* ========================================
   HEADER
   ======================================== */
   
/* Estado base del header */
#masthead {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Estado al hacer scroll */
#masthead.rv-header-scrolled .ast-primary-header-bar,
#masthead.rv-header-scrolled .ast-main-header-wrap {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Opcional: texto más oscuro al hacer scroll */
#masthead.rv-header-scrolled a {
  color: #0f2f1e;
}

.ast-primary-header-bar {
    background: rgb(238 248 240 / 87%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom-width: 0;
}

#masthead.rv-header-scrolled .ast-main-header-wrap {
    background-color: transparent;
}

.main-header-menu {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.main-header-menu > .menu-item > .menu-link, #astra-footer-menu > .menu-item > .menu-link {
    font-weight: 600;
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.ast-builder-menu-1 .menu-item > .menu-link {
    color: #0f2f1e;
}

.ast-builder-menu-1 .menu-item:hover > .menu-link,
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link {
    color: var(--green);
    border-bottom-color: var(--green);
    outline: none;
}


/* Quitamos el border original de Astra */
.ast-builder-menu-1 .menu-link {
  border-bottom: none !important;
  position: relative;
}

/* Línea personalizada */
.ast-builder-menu-1 .menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px; 
  height: 2px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  transform: scaleX(0);
}

/* Hover */
.ast-builder-menu-1 .menu-item:hover > .menu-link::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Página activa */
.ast-builder-menu-1 .current-menu-item > .menu-link::after,
.ast-builder-menu-1 .current-menu-ancestor > .menu-link::after {
  opacity: 1;
  transform: scaleX(1);
}


/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    /* background: linear-gradient(135deg, #f8f9f7 0%, #e8f5e9 100%); */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
        url('https://roblevivo.cl/assets/inicio/bg-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 7rem 0 4rem 0;
}

.hero-content {
    /* display: grid; */
    gap: var(--spacing-lg);
    align-items: center;
    width: 53%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.badge {
    display: inline-block;
    background-color: var(--wood);
    color: var(--bg);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

.badge-sostenibilidad {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.175rem;
    font-weight: 700;
    width: fit-content;
}

.hero-title {
    font-size: 5.75rem !important;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1;
    margin-bottom: 2rem;
}

.texto-verde {
    color: #b7e4c7;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-white);
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-image {
    display: none;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--green);
    color: var(--bg);
    border-color: var(--green);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    outline: none;
    color: var(--text-white);
}

.hero-btn-secondary {
    background-color: #ffffff;
    color: var(--green);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
    background-color: #b7e4c7;
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--green);
    border-color: var(--green);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--green);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.btn-whatsapp {
    background-color: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    outline: none;
    color: var(--text-white);
}

.btn-block {
    width: 100%;
}

/* ========================================
   TRUST SECTION
   ======================================== */
.trust {
    padding: var(--spacing-xl) 0;
    background-color: #f1f8f3;
    /* Sage light */
    position: relative;
    overflow: hidden;
}

.trust::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(232, 245, 233, 0.5), transparent);
}

.trust-grid {
    display: grid;
    gap: var(--spacing-md);
}

.trust-card {
    background-color: var(--bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(45, 122, 62, 0.1);
    box-shadow: var(--shadow-sm);
}

.trust-card:hover {
    border-color: var(--green-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: var(--spacing-sm);
}

.trust-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--spacing-xs);
}

.trust-text {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    gap: var(--spacing-lg);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: var(--spacing-md);
}

.about-description {
    color: var(--text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.about-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wood-dark);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.about-list {
    list-style: disc;
    margin-left: var(--spacing-md);
    color: var(--text-light);
}

.about-list li {
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-xs);
}

.about-note {
    background-color: var(--bg);
    padding: var(--spacing-sm);
    border-left: 4px solid var(--wood);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-md);
    font-size: 0.9375rem;
    color: var(--text-light);
}

.about-image {
    display: block;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg);
    position: relative;
}

/*.services::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 400px;
    height: 400px;
    background-color: var(--green-light);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.05;
    z-index: -1;
}*/

.section-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.services-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.service-card {
    background-color: var(--bg);
    border-radius: var(--radius-lg);
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(1.02);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card:hover .service-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.95));
}

.service-content {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.service-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.service-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-includes-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--wood-dark);
    margin-bottom: var(--spacing-xs);
}

.service-includes {
    list-style: none;
}

.service-includes li {
    color: var(--text-light);
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.service-includes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process {
    background-color: var(--bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
}

.process-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.process-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
}


.process-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 0 2rem 0;
}

.process-image-container-service {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.process-infographic {
    max-width: 100%;
    height: auto;
    
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #f8f9f7 100%);
}

.contact-content {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-whatsapp {
    background-color: var(--bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.contact-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--spacing-sm);
}

.contact-text {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.contact-info {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid #e0e0e0;
    color: var(--text-light);
}

.contact-info p {
    margin-bottom: var(--spacing-xs);
}

/* ========================================
   FORM
   ======================================== */
.contact-form-wrapper {
    background-color: var(--bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9375rem;
}

.form-input,
.form-textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

.form-textarea {
    resize: vertical;
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 0.875rem;
    color: var(--text-light);
    cursor: pointer;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
    margin-top: var(--spacing-xl);
}

.faq-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.faq-grid {
    display: grid;
    gap: var(--spacing-md);
}

.faq-item {
    background-color: var(--bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--green);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--spacing-xs);
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--bg-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    width: 136px;
    /*height: 50px;*/
    margin-bottom: var(--spacing-sm);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bg);
    margin-bottom: var(--spacing-sm);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
    width: 258px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-link {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--green-light);
    outline: none;
}

.footer-bottom {
    border-top: 1px solid #3a3a3a;
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */
/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #20b858;
}

/* ========================================
   RESPONSIVE - TABLET (768px+)
   ======================================== */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

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

    .page-title {
        font-size: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-image {
        display: block;
    }

    .service-header-content {
        grid-template-columns: 1fr 1fr;
    }

    .service-header-image {
        display: block;
    }

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

    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .about-image {
        display: block;
    }

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

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

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

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

    .includes-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .contact-content {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .quick-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   RESPONSIVE - DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .page-title {
        font-size: 3.5rem;
    }

    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .when-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   PAGE HEADER (páginas internas)
   ======================================== */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.48)),
        url('https://roblevivo.cl/assets/nosotros/page-header-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 9rem 0 4rem 0;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.25rem;
    color: #f1f8f3;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Service Header con imagen */
.contact-header {
    background-image: url('https://roblevivo.cl/assets/inicio/bg-hero.jpg');
}

.contact-header,
.service-header {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 9rem 0 4rem 0;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
}

.contact-header {
    min-height: 350px;
}

.contact-header::before,
.service-header::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;
}

.contact-header .container,
.service-header .container {
    position: relative;
    z-index: 2;
}

.service-header.poda {
    background-image: url('https://roblevivo.cl/assets/poda/poda-header-bg.png');
}

.service-header.tala {
    background-image: url('https://roblevivo.cl/assets/tala/tala-header-bg.png');
    /* Placeholder for now */
}

.service-header-content {

    align-items: center;
}

.service-header-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}


/* ========================================
   ABOUT PAGE
   ======================================== */
.about-page {
    padding: var(--spacing-xl) 0;
}

/* ========================================
   SERVICE INTRO
   ======================================== */
.service-intro {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    color: var(--text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    font-size: 1.0625rem;
}

/* ========================================
   SERVICE TYPES / WHEN SECTION
   ======================================== */
.service-types,
.when-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg);
}

.types-grid,
.when-grid {
    display: grid;
    gap: var(--spacing-md);
}

/* Alternating Layout for Poda Types */
.type-row {
    display: grid;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.type-row:last-child {
    margin-bottom: 0;
}

.type-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.type-card,
.when-card {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.type-card:hover,
.when-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

@media (min-width: 768px) {
    .type-row {
        grid-template-columns: 1fr 1fr;
    }

    .type-row.reverse .type-card {
        order: 2;
    }

    .type-row.reverse .type-image {
        order: 1;
    }
}

.type-title,
.when-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--spacing-sm);
}

.type-description,
.when-text {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.type-list {
    list-style: none;
}

.type-list li {
    color: var(--text-light);
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.type-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 1.2rem;
}

.when-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   SERVICE INCLUDES DETAIL
   ======================================== */
.service-includes-detail {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.includes-detail-grid {
    display: grid;
    gap: var(--spacing-md);
}

.include-detail-card {
    background-color: var(--bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--green-light);
}

.include-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.include-detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--spacing-sm);
}

.include-detail-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg);
}

.benefits-grid {
    display: grid;
    gap: var(--spacing-md);
}

.benefit-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    background-color: var(--bg-light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.benefit-icon {
    font-size: 1.5rem;
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.25rem;
}

.benefit-text {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ========================================
   INCLUDES SECTION (Quienes Somos)
   ======================================== */
.service-includes-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg);
}

.includes-grid {
    display: grid;
    gap: var(--spacing-md);
}

.include-card {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--green);
}

.include-number {
    width: 40px;
    height: 40px;
    background-color: var(--green);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.include-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--spacing-xs);
}

.include-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   VALUES SECTION
   ======================================== */
.values-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    gap: var(--spacing-md);
}

.value-card {
    background-color: var(--bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--wood);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--spacing-xs);
}

.value-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   NOTE BOX
   ======================================== */
.about-note-box,
.note-box {
    background-color: var(--bg);
    padding: var(--spacing-md);
    border-left: 4px solid var(--wood);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}

.note-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wood-dark);
    margin-bottom: var(--spacing-sm);
}

.note-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   PROCESS VERTICAL (Tala)
   ======================================== */
.process-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.process-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.process-step-vertical {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    background-color: var(--bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--green);
}

.process-step-content {
    flex: 1;
}

/* ========================================
   IMPORTANT NOTE
   ======================================== */
.important-note {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg);
}

/* ========================================
   WORK GALLERY
   ======================================== */
.work-gallery {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg);
}

/* ========================================
   WORK GALLERY - PREMIUM SWIPER
   ======================================== */
.work-gallery {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    position: relative;
}

.work-slider {
    width: 100%;
    margin-top: var(--spacing-lg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
    background: var(--bg-light);
}

.work-slide-content {
    position: relative;
    height: 600px;
}

@media (max-width: 768px) {
    .work-slide-content {
        height: 400px;
    }
}

.work-slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.swiper-slide-active .work-slide-content img {
    transform: scale(1.05);
}

.work-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    z-index: 2;
}

.work-slide-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.3s;
}

.work-slide-info span {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    display: block;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.4s;
}

.swiper-slide-active .work-slide-info h3,
.swiper-slide-active .work-slide-info span {
    transform: translateY(0);
    opacity: 1;
}

.swiper-slide-active .work-slide-info h3 {
    color: #ffffff;
}

/* Swiper Buttons Customization */
.swiper-button-next,
.swiper-button-prev {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    color: white !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--green) !important;
    border-color: var(--green) !important;
    transform: scale(1.1) !important;
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: white !important;
    opacity: 0.5 !important;
    margin: 0 6px !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    width: 35px !important;
    border-radius: 6px !important;
    background: var(--green) !important;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.cta-box {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--bg);
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: #ffff;
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-main {
    padding: var(--spacing-xl) 0;
}

.info-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--spacing-sm);
}

.info-item {
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
}

/* Form Row */
.form-row {
    display: grid;
    gap: var(--spacing-sm);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
    text-align: center;
}

/* ========================================
   QUICK SERVICES
   ======================================== */
.quick-services {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.quick-services-grid {
    display: grid;
    gap: var(--spacing-md);
}

.quick-service-card {
    background-color: var(--bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.quick-service-card:hover {
    border-color: var(--green-light);
    box-shadow: var(--shadow-md);
}

.quick-service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.quick-service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: var(--spacing-xs);
}

.quick-service-text {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.9375rem;
}

/* ========================================
   BUTTON VARIANTS
   ======================================== */
.btn-large {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
}

/* Active nav link */
.nav-link.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

/* Logo link */
.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
/* Focus visible para navegación por teclado */
:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
}

/* Mejora de contraste para textos */
@media (prefers-contrast: high) {
    :root {
        --text: #000000;
        --text-light: #333333;
        --green: #1f5a2d;
    }
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */
   
   [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
       fill: #38601e;
   }
   
   [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal {
       color: #38601e;
   }

@media (max-width: 921px) {
    
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link {
        color: var(--ast-global-color-3);
        background-color: #b0bfb2;
    }

    
    .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-link,
    .ast-builder-menu-mobile .main-navigation .main-header-menu {
        background-color: #d3dcd4;
    }
    
    
}





@media (max-width: 450px) {
    .hero-content {
        width: 100%;
    }

    .hero-title {
        font-size: 3.75rem !important;
    }
    
    .process {
        padding: 3rem 0 3rem 0;
    }
    
    .footer-brand,
    .footer-links,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .footer-nav {
        align-items: center;
    }
}




