/* ==========================================================================
   DIMOA - DESIGN SYSTEM & STYLING
   ========================================================================== */

/* 1. Reset and Core Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette - Environmental & Scientific */
    --primary-color: #1b4332;
    --primary-light: #2d6a4f;
    --primary-dark: #081c15;

    /* Vibrant Lime CTA Color - User Requested */
    --accent-color: #c8ff30;
    --accent-light: #d4ff54;
    --accent-dark: #aee61a;
    --accent-text: #1b4332;
    /* Dark green for readable text on lime background */

    --bg-light: #f4f7f4;
    --bg-white: #ffffff;

    /* Text Colors */
    --text-dark: #1e2925;
    --text-light: #ffffff;
    --text-muted: #5e6b66;

    /* Structural variables */
    --border-color: #e1e8e4;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.35);

    /* Fonts */
    --font-heading: 'Outfit', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(27, 67, 50, 0.04);
    --shadow-md: 0 12px 30px rgba(27, 67, 50, 0.08);
    --shadow-lg: 0 20px 48px rgba(27, 67, 50, 0.12);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   2. Reusable Layout Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.section-title {
    color: var(--primary-color);
}

.section-underline {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Buttons System - Styled with Neon Lime #C8FF30 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 30px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--accent-text);
    box-shadow: 0 4px 15px rgba(200, 255, 48, 0.25);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--accent-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 255, 48, 0.45);
}

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

.btn-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--accent-text);
    transform: translateY(-2px);
}

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

/* ==========================================================================
   3. Main Header and Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 24px 0;
}

.site-header.scrolled {
    padding: 14px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.site-header.scrolled .logo-img {
    height: 40px;
    filter: brightness(0) saturate(100%) invert(20%) sepia(30%) saturate(1000%) hue-rotate(110deg) brightness(85%) contrast(90%);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 6px 0;
}

.site-header.scrolled .nav-link {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-smooth);
}

.site-header.scrolled .nav-link::after {
    background: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    font-weight: 700;
    color: var(--accent-color) !important;
}

.site-header.scrolled .nav-link.active {
    color: var(--primary-color) !important;
}

/* CTA Nav Button with #C8FF30 */
.btn-contact-nav {
    background-color: var(--accent-color);
    color: var(--accent-text) !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    font-weight: 700;
}

.btn-contact-nav::after {
    display: none;
}

.btn-contact-nav:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 255, 48, 0.35);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1100;
}

.mobile-nav-toggle .bar {
    width: 26px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.site-header.scrolled .mobile-nav-toggle .bar {
    background-color: var(--primary-color);
}

/* ==========================================================================
   4. Hero Section - Styled with hero_forest_bg.jpg
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: url('assets/hero_forest_bg.jpg') no-repeat center center/cover;
    padding-top: 120px;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 28, 21, 0.9) 0%, rgba(27, 67, 50, 0.7) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-content {
    max-width: 680px;
    margin-top: 40px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(200, 255, 48, 0.12);
    border: 1px solid rgba(200, 255, 48, 0.35);
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-title {
    color: var(--text-light);
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.hero-scroll-indicator a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
}

.hero-scroll-indicator a:hover {
    color: var(--accent-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* ==========================================================================
   5. Nosotros Section
   ========================================================================== */
.nosotros-section {
    background-color: var(--bg-white);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.about-text-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-image-wrapper {
    position: relative;
}

.about-featured-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    height: 400px;
}

.experience-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary-color);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    color: var(--text-light);
    max-width: 220px;
}

.exp-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 6px;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Mission & Vision Cards (With smaller centered images on a white background) */
.mission-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.mv-card {
    position: relative;
    background: var(--bg-white);
    /* White background for card */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    padding: 24px 0;
    /* Add top/bottom padding to structure */
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.mv-image-wrapper-centered {
    width: 140px;
    height: 140px;
    min-height: 140px;
    border-radius: 50%;
    background-color: var(--bg-white);
    margin: 20px auto 0;
    /* Centered with top spacing */
    overflow: hidden;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.mv-card:hover .mv-image-wrapper-centered {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.mv-img-centered {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-content {
    padding: 30px 40px 10px;
    position: relative;
    flex-grow: 1;
    text-align: center;
    /* Centered content alignment */
}

.mv-icon-box {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.mv-card:hover .mv-icon-box {
    background: var(--accent-color);
    color: var(--accent-text);
    transform: translateX(-50%) rotate(360deg);
}

.mv-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    margin-top: 15px;
}

.mv-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   6. Services Section - Restored to Tabbed Layout
   ========================================================================== */
.servicios-section {
    position: relative;
    background: url('assets/forest_card_image.jpg') no-repeat center center/cover;
    overflow: hidden;
    z-index: 1;
}

.servicios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 28, 21, 0.9) 0%, rgba(27, 67, 50, 0.7) 100%);
    z-index: -1;
}

.servicios-section .container {
    position: relative;
    z-index: 2;
}

.servicios-section .section-title {
    color: var(--text-light);
}

.servicios-section .section-subtitle {
    color: var(--accent-light);
}

.servicios-section .services-intro {
    color: rgba(255, 255, 255, 0.85);
}

.services-intro {
    max-width: 720px;
    margin: -30px auto 50px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.services-tabs-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.services-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.tab-button {
    display: flex;
    align-items: center;
    text-align: left;
    background: none;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    width: 100%;
    gap: 16px;
}

/* 
   Dark Icon background - "poner un fondo 30% mas oscuro" to highlight white icons 
   We use '#123024' which is a 30% darker forest green than '#1b4332'
*/
.tab-icon-wrapper {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #123024;
    /* 30% darker forest green background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-custom-icon {
    font-size: 1.15rem;
    color: var(--accent-color);
    transition: var(--transition-smooth);
}

.tab-button:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.tab-button.active .tab-icon-wrapper {
    background-color: var(--accent-color);
    /* Bright lime green active background */
}

.tab-button.active .tab-custom-icon {
    color: var(--primary-color);
}

/* Services Panel Details */
.services-panels-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    min-height: 480px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

/* Dark background wrapper inside services panels to detail white icons */
.panel-icon-bg {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: #123024;
    /* 30% darker forest green background */
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-custom-icon {
    font-size: 1.75rem;
    color: var(--accent-color);
}

.panel-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
}

.panel-header h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.panel-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Service Bullet List */
.services-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.services-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
}

.services-list li i {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-top: 2px;
    transition: var(--transition-smooth);
}

.services-list li:hover i {
    color: var(--accent-dark);
    transform: scale(1.15);
}

/* ==========================================================================
   7. Clientes Section
   ========================================================================== */
.clientes-section {
    background-color: var(--bg-white);
}

.clients-intro {
    max-width: 700px;
    margin: -30px auto 50px;
    color: var(--text-muted);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: center;
    margin-top: 40px;
}

.client-logo-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    transition: var(--transition-smooth);
}

.client-logo-card:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.client-logo-img {
    max-height: 55px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.65;
    transition: var(--transition-smooth);
}

.client-logo-card:hover .client-logo-img {
    filter: grayscale(0);
    opacity: 1;
}

/* ==========================================================================
   8. Contacto Section
   ========================================================================== */
.contacto-section {
    position: relative;
    background: url('assets/forest_canopy_bg.jpg') no-repeat center center/cover;
    overflow: hidden;
    z-index: 1;
}

.contacto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 28, 21, 0.95) 0%, rgba(27, 67, 50, 0.85) 100%);
    z-index: -1;
}

.contacto-section .container {
    position: relative;
    z-index: 2;
}

.contacto-section .section-title {
    color: var(--text-light);
}

.contacto-section .section-subtitle {
    color: var(--accent-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: stretch;
}

/* Contact Info Panel */
.contact-info-panel {
    background: rgba(27, 67, 50, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 48px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.contact-info-panel h3 {
    color: var(--text-light);
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-grow: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.info-item:hover .info-icon {
    background: var(--accent-color);
    color: var(--accent-text);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

a.info-value:hover {
    color: var(--accent-color);
}

/* Social links */
.social-links-container {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

.social-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.social-icon-btn:hover {
    background-color: var(--accent-color);
    color: var(--accent-text);
    transform: translateY(-2px);
}

/* Form Panel */
.contact-form-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form-panel h3 {
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.form-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-privacy-check input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--primary-light);
    cursor: pointer;
}

.form-privacy-check label {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.4;
}

/* Feedback messages styling */
.form-feedback {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 16px;
}

.form-feedback.success {
    background-color: rgba(82, 183, 136, 0.15);
    border: 1px solid var(--primary-light);
    color: var(--primary-color);
}

.form-feedback.error {
    background-color: rgba(217, 73, 72, 0.15);
    border: 1px solid #d94948;
    color: #b73231;
}

/* ==========================================================================
   8b. Galería Section
   ========================================================================== */
.galeria-section {
    background-color: var(--bg-white);
}

.gallery-carousel-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.gallery-carousel {
    position: relative;
    height: 520px;
    background-color: var(--primary-dark);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.gallery-slide.fade-out {
    opacity: 0;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(8, 28, 21, 0.95) 0%, rgba(8, 28, 21, 0.4) 60%, transparent 100%);
    color: var(--text-light);
    z-index: 3;
}

.gallery-caption h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-bottom: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, opacity 0.6s 0.2s;
}

.gallery-caption p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, opacity 0.6s 0.3s;
}

.gallery-slide.active .gallery-caption h3,
.gallery-slide.active .gallery-caption p {
    transform: translateY(0);
    opacity: 1;
}

/* Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(27, 67, 50, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    outline: none;
}

.carousel-control:hover {
    background-color: var(--accent-color);
    color: var(--accent-text);
    box-shadow: 0 4px 15px rgba(200, 255, 48, 0.35);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev {
    left: 24px;
}

.carousel-control.next {
    right: 24px;
}

/* Carousel Counter */
.carousel-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(8, 28, 21, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 20px;
    border-radius: 50px;
    z-index: 10;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

#current-slide-num {
    color: var(--accent-color);
}

#total-slides-num {
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-carousel {
        height: 380px;
    }
    
    .gallery-caption {
        padding: 24px;
    }
    
    .gallery-caption h3 {
        font-size: 1.3rem;
    }
    
    .gallery-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-control {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .carousel-control.prev {
        left: 12px;
    }

    .carousel-control.next {
        right: 12px;
    }
}

/* ==========================================================================
   9. Footer Styling
   ========================================================================== */
.site-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    border-top: 4px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    height: 48px;
    width: auto;
    align-self: flex-start;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-grid h4 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-grid ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-grid ul li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-grid ul li a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
    font-size: 0.85rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   9b. Subpages Styling
   ========================================================================== */
.subpage-hero {
    position: relative;
    padding: 160px 0 80px;
    background: url('assets/hero_forest_bg.jpg') no-repeat center center/cover;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 28, 21, 0.92) 0%, rgba(27, 67, 50, 0.75) 100%);
    z-index: -1;
}

.subpage-hero h1 {
    color: var(--text-light);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.subpage-hero-subtitle {
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
}

.subpage-content-section {
    background-color: var(--bg-light);
}

.legal-content-card {
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content-card h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 36px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.legal-content-card h2:first-of-type {
    margin-top: 0;
}

.legal-content-card p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.legal-content-card ul {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style-type: disc;
}

.legal-content-card ul li {
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 500;
}

@media (max-width: 768px) {
    .legal-content-card {
        padding: 36px 20px;
    }
    
    .subpage-hero {
        padding: 130px 0 60px;
    }
    
    .subpage-hero h1 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   10. Responsive Design Breakpoints
   ========================================================================== */

/* Tablet Viewports (992px and below) */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.85rem;
    }

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

    /* Header toggle visibility */
    .mobile-nav-toggle {
        display: flex;
    }

    .primary-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--primary-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        padding: 100px 40px;
        transition: var(--transition-smooth);
        z-index: 1050;
    }

    .primary-navigation.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .nav-link {
        color: var(--text-light) !important;
        font-size: 1.25rem;
    }

    .btn-contact-nav {
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 12px;
    }

    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--text-light) !important;
    }

    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--text-light) !important;
    }

    /* Hero Section adjustments */
    .hero-section {
        min-height: auto;
        padding: 150px 0 100px;
    }

    /* About Section adjustments */
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-featured-img {
        height: 320px;
    }

    /* Services Section adjustments */
    .services-tabs-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-tabs-list {
        flex-direction: column;
        padding: 16px;
        gap: 10px;
    }

    .tab-button {
        width: 100%;
        white-space: normal;
    }

    .services-panels-container {
        padding: 32px 24px;
        min-height: auto;
    }

    .services-list-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Clientes section */
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact Section adjustments */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Viewports (576px and below) */
@media (max-width: 576px) {
    h1 {
        font-size: 2.15rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .mission-vision-container {
        grid-template-columns: 1fr;
    }

    .mv-content {
        padding: 30px;
    }

    .services-panels-container {
        padding: 24px 16px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .panel-header h3 {
        font-size: 1.5rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 32px 24px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}