/* ===== RESET & BASE STYLES ===== */
/* Cache-busting timestamp: 2025-01-13-22:15 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1C1E1B;
    background-color: #FAF9F7;
    overflow-x: hidden;
}

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --verde-profundo: #1F4B3F;
    --verde-hoja: #3E7C59;
    --terracota: #D17B49;
    --arena: #E8D5B7;
    --blanco-calido: #FAF9F7;
    --negro-verdoso: #1C1E1B;
    
    /* Typography */
    --font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 24px;
    --border-radius: 16px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--negro-verdoso);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--negro-verdoso);
}

.lead {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 500;
    color: var(--verde-profundo);
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--verde-profundo), var(--verde-hoja));
    color: white;
    box-shadow: 0 8px 32px rgba(31, 75, 63, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(31, 75, 63, 0.4);
}

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

.btn-secondary:hover {
    background: var(--verde-profundo);
    color: white;
    transform: translateY(-2px);
}

/* Botón secundario específico para hero section */
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    margin-bottom: 24px;
    position: relative;
}

.section-title.enhanced {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 40px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--terracota), var(--arena));
    border-radius: 2px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--verde-hoja);
}

.manifesto-quote {
    margin: 0 0 32px 0;
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--arena) 0%, var(--blanco-calido) 100%);
    border-left: 4px solid var(--terracota);
    border-radius: 0 12px 12px 0;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
    color: var(--verde-profundo);
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 8px 32px rgba(31, 75, 63, 0.08);
    max-width: 600px;
    flex: 1;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(31, 75, 63, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--verde-profundo);
}

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

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--negro-verdoso);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--verde-profundo);
}

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

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

.cta-nav {
    background: var(--verde-profundo);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.cta-nav:hover {
    background: var(--verde-hoja);
    transform: translateY(-1px);
}

.cta-nav::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--verde-profundo);
    transition: var(--transition-smooth);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-left: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay de puntos orgánicos solo en la parte derecha - MUY VISIBLES */


@keyframes simboloRespira {
    0% { 
        opacity: 1; 
        transform: scale(1); 
    }
    30% {
        opacity: 0.4;
        transform: scale(0.9);
    }
    50% { 
        opacity: 0.3; 
        transform: scale(0.85); 
    }
    70% {
        opacity: 0.4;
        transform: scale(0.9);
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Símbolo de circularidad posicionado */
.circularity-symbol {
    position: absolute;
    left: 460px;
    top: 160px;
    width: 108px;
    height: 108px;
    background: url("../images/simbolo%20circularidad%20puntos.png") center/contain no-repeat;
    z-index: 10;
    pointer-events: none;
    will-change: opacity, transform;
    animation: simboloRespira 6s ease-in-out infinite;
    animation-fill-mode: both;
    transform: scale(1);
    overflow: visible;
}



.hero .hero-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0.9) 0%,       /* MÁS oscuro detrás del texto */
        rgba(15, 15, 15, 0.75) 35%,     /* Gradiente más suave */
        rgba(15, 15, 15, 0.4) 65%,      /* Transición más gradual */
        rgba(0, 0, 0, 0.08) 85%,        /* Ligero velo */
        rgba(0, 0, 0, 0) 100%           /* Completamente transparente */
    ) !important;
    z-index: 1 !important;
}

.hero-content {
    position: relative;
    z-index: 10 !important;
    color: white;
    text-align: left !important;
    width: 55%;
    max-width: 650px;
    margin: 0;
    padding: 0 20px 0 0;
}

.hero-content .container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.hero-title {
    margin-bottom: 32px;
    max-width: 800px;
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    font-size: clamp(2.4rem, 5.2vw, 4.8rem);
    line-height: 1.1;
}

.title-line {
    display: block;
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none;
    white-space: nowrap;
    margin-bottom: 0.1em;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.highlight {
    background: none;
    color: #D17B49;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

/* Highlight en diferentes secciones */
.about .highlight,
.services .highlight {
    color: #D17B49;
    font-weight: 600;
    text-shadow: none;
}

.cta-final .highlight {
    color: #D17B49;
    font-weight: 700;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3.2vw, 1.9rem);
    margin-bottom: 48px;
    max-width: 650px;
    margin-left: 0;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.25);
    line-height: 1.4;
    font-weight: 400;
}

.hero-subtitle .highlight {
    color: #D17B49;
    font-weight: 600;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-ctas {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    position: relative;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--section-padding);
    background: var(--blanco-calido);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-video {
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(31, 75, 63, 0.15);
    transition: var(--transition-smooth);
}

.video-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(31, 75, 63, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 20px;
}

.about-quote-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.quote-image {
    flex-shrink: 0;
}

.about-img-small {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 12px 32px rgba(31, 75, 63, 0.15);
    transition: var(--transition-smooth);
}

.about-img-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(31, 75, 63, 0.2);
}

.feature-item {
    padding: 32px 24px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(31, 75, 63, 0.08);
    transition: var(--transition-smooth);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(31, 75, 63, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--verde-profundo);
    font-weight: 700;
    line-height: 1.3;
}

.feature-item p {
    font-size: 1rem;
    color: var(--negro-verdoso);
    opacity: 0.85;
    line-height: 1.6;
    flex-grow: 1;
}

/* ===== PROFILES SECTION ===== */
.profiles {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--arena) 0%, var(--blanco-calido) 100%);
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px 24px;
    box-shadow: 0 12px 48px rgba(31, 75, 63, 0.1);
    transition: var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 64px rgba(31, 75, 63, 0.15);
}

.profile-avatar {
    font-size: 4rem;
    margin-bottom: 24px;
    width: 170px;
    height: 170px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 75, 63, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(31, 75, 63, 0.3);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 50%;
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--verde-profundo);
}

.profile-example {
    font-size: 1rem;
    color: var(--terracota);
    font-weight: 600;
    margin-bottom: 20px;
}

.profile-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.profile-description {
    margin-bottom: 24px;
    text-align: left;
    flex-grow: 1;
}

.profile-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--verde-hoja);
    border-left: 4px solid var(--terracota);
    padding-left: 20px;
    margin: 0;
    text-align: left;
    margin-top: auto;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--section-padding);
    background: var(--blanco-calido);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 75, 63, 0.08);
    transition: var(--transition-smooth);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(31, 75, 63, 0.12);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--verde-profundo), var(--verde-hoja));
    color: white;
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-6px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--verde-profundo);
}

.service-card.featured .service-title {
    color: white;
}

.service-subtitle {
    font-size: 1.125rem;
    color: var(--terracota);
    margin-bottom: 20px;
}

.service-card.featured .service-subtitle {
    color: var(--arena);
}

.service-card.featured .service-description {
    color: white;
}

.service-card.featured .service-features li {
    color: white;
}

.service-description {
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    flex-grow: 1;
}

.service-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--verde-hoja);
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: var(--arena);
}

/* ===== SERVICE CARD LINKS ===== */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition-smooth);
    height: 100%;
}

.service-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover .service-card {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(31, 75, 63, 0.2);
    cursor: pointer;
}

.service-card-link:hover .service-card.featured {
    transform: scale(1.07) translateY(-8px);
    box-shadow: 0 24px 72px rgba(31, 75, 63, 0.25);
}

.methodology-steps {
    margin-top: 24px;
    flex-grow: 1;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.step-number {
    background: var(--arena);
    color: var(--verde-profundo);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: white;
}

.step-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--verde-profundo) 0%, var(--verde-hoja) 100%);
    color: white;
}

.testimonials .section-title {
    color: white;
}

.testimonials .section-title::after {
    background: linear-gradient(90deg, var(--terracota), var(--arena));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-content blockquote {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    font-size: 2.5rem;
}

.author-info h4 {
    color: white;
    margin-bottom: 4px;
}

.author-info p {
    color: var(--arena);
    font-size: 0.95rem;
}

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

.benefits-title {
    font-size: 2rem;
    margin-bottom: 48px;
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

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

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.benefit-item h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: white;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ===== CTA FINAL SECTION ===== */
.cta-final {
    position: relative;
    padding: var(--section-padding);
    text-align: center;
    color: white;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(31, 75, 63, 0.9) 0%,
        rgba(62, 124, 89, 0.8) 100%
    );
    z-index: -1;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 32px;
    color: white;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 24px;
    line-height: 1.7;
    color: white;
}

.cta-question {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 48px;
    color: var(--arena);
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CTA FINAL BUTTON IMPROVEMENTS ===== */
.cta-final .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.cta-final .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-final .btn-secondary:hover::before {
    left: 100%;
}

.cta-final .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta-final .btn-primary {
    background: var(--terracota);
    border-color: var(--terracota);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.cta-final .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-final .btn-primary:hover::before {
    left: 100%;
}

.cta-final .btn-primary:hover {
    background: #B8613A;
    border-color: #B8613A;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(209, 123, 73, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--negro-verdoso);
    color: white;
    padding: 80px 0 40px;
}

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

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo .logo-text {
    color: white;
}

.footer-philosophy {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--arena);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--terracota);
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--arena);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablets y iPads */
@media (max-width: 1024px) and (min-width: 769px) {
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .profile-avatar {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }
    
    .profile-photo {
        width: 100% !important;
        height: 100% !important;
        object-position: center 15% !important;
    }
}

/* Móviles y tablets pequeños */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Mobile menu active states */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(250, 249, 247, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(31, 75, 63, 0.15);
        border-radius: 0 0 20px 20px;
        padding: 20px 0;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-menu.active .nav-link {
        padding: 12px 24px;
        margin: 0;
        text-align: center;
        border-bottom: 1px solid rgba(31, 75, 63, 0.1);
    }
    
    .nav-menu.active .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-menu.active .cta-nav {
        margin: 16px 24px 0;
        text-align: center;
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ===== HERO MOBILE IMPROVEMENTS ===== */
    .hero {
        padding: 0 1rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 40px 20px;
        text-align: center;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 20px;
        backdrop-filter: blur(2px);
    }
    
    .hero-title {
        font-size: clamp(2.4rem, 7vw, 3.4rem) !important;
        line-height: 1.0;
        margin-bottom: 28px;
        max-width: 100%;
        font-weight: 800;
    }
    
    .hero-subtitle {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        margin-bottom: 44px;
        max-width: 100%;
        line-height: 1.35;
        opacity: 0.95;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 8px;
    }
    
        .hero-ctas .btn {
        width: auto;
        min-width: 220px;
        max-width: 300px;
        justify-content: center;
        padding: 16px 32px;
    }

    /* Símbolo de circularidad en mobile - versión tablet */
    .circularity-symbol {
        left: calc(100% - 115px);
        top: 145px;
        width: 120px;
        height: 120px;
    }

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

    .about-text {
        padding-right: 0;
    }

    .about-quote-section {
        flex-direction: column;
        gap: 24px;
        margin-top: 40px;
        text-align: center;
    }

    .about-img-small {
        width: 180px;
        height: 180px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-avatar {
        width: 125px !important;
        height: 125px !important;
        margin-bottom: 20px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .profile-photo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 15% !important;
        border-radius: 50% !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-6px);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    /* ===== HERO EXTRA SMALL MOBILE ===== */
    .hero {
        padding: 0 0.75rem;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 40px 20px;
        max-width: 100%;
        width: 100% !important;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 8.5vw, 3.2rem) !important;
        line-height: 1.1;
        margin-bottom: 24px;
        font-weight: 800;
        max-width: 100%;
    }
    
    .title-line {
        display: block;
        margin-bottom: 0.05em;
        white-space: normal !important;
    }
    
    .title-line:first-child {
        margin-bottom: 0.8em;
    }
    
    .title-line:nth-child(2),
    .title-line:nth-child(3) {
        font-size: 1em;
        font-weight: 800;
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 4.5vw, 1.3rem);
        margin-bottom: 48px;
        line-height: 1.3;
        font-weight: 400;
        opacity: 0.9;
    }
    
    .hero-ctas {
        gap: 20px;
        margin-top: 16px;
    }
    
    .hero-ctas .btn {
        padding: 16px 32px;
        font-size: 1rem;
        min-width: 240px;
        font-weight: 600;
        border-radius: 12px;
    }

    /* Símbolo de circularidad en mobile - versión móvil pequeña */
    .circularity-symbol {
        left: calc(100% - 105px);
        top: 125px;
        width: 110px;
        height: 110px;
    }
    
    /* ===== OTHER MOBILE IMPROVEMENTS ===== */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 24px 20px;
    }
    
    .about-quote-section {
        padding: 0 20px;
        margin-top: 30px;
    }
    
    .about-img-small {
        width: 140px;
        height: 140px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        padding: 24px;
    }
    
    .profile-avatar {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 18px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .profile-photo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 15% !important;
        border-radius: 50% !important;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
}

/* ===== ANIMATION FALLBACKS & VISIBILITY FIXES ===== */
/* Asegurar que elementos sean visibles por defecto */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: mostrar contenido si JavaScript no carga */
.no-js .fade-in,
.no-js .slide-in-left,
.no-js .slide-in-right,
.no-js .title-line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Asegurar visibilidad después de carga */
.fade-in:not(.visible),
.slide-in-left:not(.visible),
.slide-in-right:not(.visible) {
    opacity: 1 !important;
    transform: none !important;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Asegurar visibilidad del texto del hero */
.hero-title {
    margin-bottom: 32px;
}

.title-line {
    display: block;
    opacity: 1 !important; /* Forzar visibilidad */
    transform: translateY(0) !important; /* Forzar posición normal */
    animation: none; /* Deshabilitar animaciones problemáticas */
}

/* ===== MODAL RECURSOS EN CONSTRUCCIÓN ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1F4B3F 0%, #2D5A4A 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 60px 40px 40px;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.construccion-content {
    color: white;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== MODAL BUTTON FIXES ===== */
.modal-content .btn {
    min-width: 180px;
    flex: 1;
    max-width: 280px;
    margin: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-content .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-content .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 40px 20px 20px;
        margin: 10px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
    }
    
    .modal-content .btn {
        min-width: 140px;
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .modal-content .btn {
        min-width: 120px;
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

