/* Awalé - Estilos principales */

/* Variables */
:root {
    --negro: #000000;
    --blanco: #FFFFFF;
    --gris-oscuro: #1a1a1a;
    --gris-medio: #666666;
    --gris-claro: #f5f5f5;
    --acento: #49A15C;
    --naranja: #FF8B2D;
    --azul-oscuro: #2C3E66;
    --fuente-principal: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fuente-display: 'Playfair Display', serif;
    --max-width: 1400px;
    --transicion: all 0.3s ease;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-principal);
    background: var(--blanco);
    color: var(--gris-oscuro);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transicion);
}

/* Navegación */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transicion);
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo img {
    height: 35px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--gris-oscuro);
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--negro);
    transition: width 0.3s ease;
}

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

/* Dropdown arrow for services */
.nav-item > .nav-link::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--gris-medio);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.nav-item:hover > .nav-link::before {
    opacity: 1;
}

/* Language Switch */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--gris-medio);
    border-radius: 4px;
    font-size: 0.85rem;
}

.lang-option {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-option.active {
    opacity: 1;
}

/* Submenu */
.nav-item {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--blanco);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 1rem;
    padding: 1rem 0;
}

.nav-item:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: var(--blanco);
    transform: rotate(45deg);
    box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.05);
}

.submenu-item {
    padding: 0.75rem 2rem;
    transition: background 0.2s ease;
}

.submenu-item:hover {
    background: var(--gris-claro);
}

.submenu-link {
    display: block;
    color: var(--gris-oscuro);
    font-size: 0.9rem;
    text-decoration: none;
}

.submenu-phase {
    font-size: 0.75rem;
    color: var(--acento);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.submenu-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.submenu-description {
    font-size: 0.85rem;
    color: var(--gris-medio);
    line-height: 1.4;
}

/* Mobile menu */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-burger span {
    width: 25px;
    height: 2px;
    background: var(--negro);
    transition: var(--transicion);
}

/* Hero */
.hero {
    position: relative;
    min-height: 120vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gris-claro) 0%, rgba(73, 161, 92, 0.05) 100%);
    z-index: -1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
    width: 100%;
}

.hero-title {
    font-family: var(--fuente-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    max-width: 900px;
    color: var(--blanco);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transicion);
    cursor: pointer;
    border: none;
    background: none;
    border-radius: 4px;
}

.btn-primary {
    background: var(--negro);
    color: var(--blanco);
}

.btn-primary:hover {
    background: var(--gris-oscuro);
    transform: translateY(-1px);
}

.btn-text {
    color: var(--negro);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    gap: 1rem;
}

.btn-text .arrow {
    transition: transform 0.3s ease;
}

.btn-text:hover .arrow {
    transform: translateX(3px);
}

/* Secciones */
.section {
    padding: 8rem 3rem;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gris-medio);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--fuente-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* About */
.about {
    padding: 8rem 3rem;
    background: var(--gris-claro);
}

.about-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 600px;
    background: var(--gris-claro);
}

.about-image img,
.about-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.about-image:hover img,
.about-image:hover video {
    transform: scale(1.05);
}

.about-title {
    font-family: var(--fuente-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.about-highlight {
    color: var(--acento);
}

.about-text {
    color: var(--gris-medio);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-cta {
    margin-top: 2rem;
}

/* Services Preview */
.services-preview {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 25%, #fff3e0 50%, #e8eaf6 75%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.services-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(73, 161, 92, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.services-preview-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

.services-preview-cta {
    text-align: center;
    margin-top: 5rem;
}

/* Cases Preview */
.cases-preview {
    padding: 8rem 0;
    background: var(--blanco);
}

.cases-preview-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
}

.cases-preview-cta {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

/* Statement */
.statement {
    position: relative;
    padding: 12rem 3rem;
    overflow: hidden;
    background: var(--blanco);
}

.statement-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.statement-text {
    font-family: var(--fuente-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.statement-highlight {
    color: var(--acento);
}

/* Why Choose Us */
.why-us {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 50%, #fff3e0 100%);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(73, 161, 92, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: floatPattern 30s linear infinite;
}

@keyframes floatPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.why-us-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.value-card {
    background: var(--blanco);
    padding: 3rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(73, 161, 92, 0.1);
}

/* Bubble animation for cards */
.value-card::before,
.value-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.value-card::before {
    width: 20px;
    height: 20px;
    background: rgba(73, 161, 92, 0.3);
    top: 80%;
    left: 10%;
}

.value-card::after {
    width: 15px;
    height: 15px;
    background: rgba(255, 139, 45, 0.3);
    top: 70%;
    right: 15%;
}

.value-card:hover::before {
    animation: bubbleUp 2s ease-in-out infinite;
}

.value-card:hover::after {
    animation: bubbleUp 2s ease-in-out 0.5s infinite;
}

@keyframes bubbleUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(1.5);
        opacity: 0;
    }
}

.value-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(73, 161, 92, 0.15);
    border-color: var(--acento);
}

.value-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, rgba(73, 161, 92, 0.1) 0%, rgba(255, 139, 45, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* Different colors for each icon */
.value-card:nth-child(1) .value-icon {
    background: linear-gradient(135deg, rgba(73, 161, 92, 0.15) 0%, rgba(73, 161, 92, 0.05) 100%);
}

.value-card:nth-child(2) .value-icon {
    background: linear-gradient(135deg, rgba(44, 62, 102, 0.15) 0%, rgba(44, 62, 102, 0.05) 100%);
}

.value-card:nth-child(3) .value-icon {
    background: linear-gradient(135deg, rgba(255, 139, 45, 0.15) 0%, rgba(255, 139, 45, 0.05) 100%);
}

.value-card:nth-child(4) .value-icon {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.15) 0%, rgba(142, 68, 173, 0.05) 100%);
}

.value-card:nth-child(5) .value-icon {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.value-card:nth-child(6) .value-icon {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15) 0%, rgba(231, 76, 60, 0.05) 100%);
}

.value-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--acento) 0%, var(--naranja) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 30px rgba(73, 161, 92, 0.2);
}

.value-card:hover .value-icon i {
    transform: scale(1.1);
}

/* Floating bubbles background */
.value-card .floating-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-150px) scale(1.5);
        opacity: 0;
    }
}

.value-card:hover .floating-bubble {
    animation-play-state: running;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gris-oscuro);
    font-weight: 600;
}

.value-card p {
    color: var(--gris-medio);
    line-height: 1.6;
}

/* Services */
.services {
    padding: 8rem 3rem;
    background: var(--blanco);
}

.services-header {
    max-width: var(--max-width);
    margin: 0 auto 4rem;
    text-align: center;
    padding: 0 3rem;
}

.services-flexibility-text {
    font-size: 1.1rem;
    color: var(--gris-medio);
    line-height: 1.8;
    max-width: 800px;
    margin: 2rem auto 0;
    font-weight: 300;
}

/* Phases Overview */
.phases-overview {
    max-width: 1400px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.phase-overview-card {
    width: 100%;
    padding: 3rem 2rem 2.5rem;
    background: var(--blanco);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
}

.phase-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.phase-overview-card:nth-child(1) {
    background: linear-gradient(135deg, #f0f7f2 0%, #e8f5e9 100%);
    border-color: rgba(73, 161, 92, 0.2);
}

.phase-overview-card:nth-child(2) {
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
    border-color: rgba(255, 139, 45, 0.2);
}

.phase-overview-card:nth-child(3) {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eaf6 100%);
    border-color: rgba(44, 62, 102, 0.2);
}

.phase-overview-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--acento);
}

.phase-overview-card:hover::before {
    opacity: 1;
}

.phase-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.phase-icon::after {
    content: '';
    position: absolute;
    width: 130%;
    height: 130%;
    border-radius: 50%;
    border: 2px dashed;
    opacity: 0;
    transition: all 0.4s ease;
}

.phase-overview-card:nth-child(1) .phase-icon {
    background: linear-gradient(135deg, rgba(73, 161, 92, 0.2) 0%, rgba(73, 161, 92, 0.1) 100%);
}

.phase-overview-card:nth-child(2) .phase-icon {
    background: linear-gradient(135deg, rgba(255, 139, 45, 0.3) 0%, rgba(255, 168, 37, 0.15) 100%);
}

.phase-overview-card:nth-child(3) .phase-icon {
    background: linear-gradient(135deg, rgba(44, 62, 102, 0.2) 0%, rgba(44, 62, 102, 0.1) 100%);
}

.phase-icon i {
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

.phase-overview-card:nth-child(1) .phase-icon i {
    color: var(--verde);
}

.phase-overview-card:nth-child(1) .phase-icon::after {
    border-color: var(--verde);
}

.phase-overview-card:nth-child(2) .phase-icon i {
    color: var(--naranja);
}

.phase-overview-card:nth-child(2) .phase-icon::after {
    border-color: var(--naranja);
}

.phase-overview-card:nth-child(3) .phase-icon i {
    color: var(--azul-oscuro);
}

.phase-overview-card:nth-child(3) .phase-icon::after {
    border-color: var(--azul-oscuro);
}

.phase-overview-card:hover .phase-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.phase-overview-card:hover .phase-icon::after {
    opacity: 0.5;
    transform: scale(1.1);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1.1); }
}

.phase-overview-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gris-oscuro);
    position: relative;
    z-index: 2;
}

.phase-overview-card p {
    color: var(--gris-medio);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}


.phase-services-preview {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.3;
    text-align: center;
}

.phase-overview-card:nth-child(1) .service-tag {
    background: rgba(73, 161, 92, 0.1);
    color: var(--verde);
}

.phase-overview-card:nth-child(2) .service-tag {
    background: rgba(255, 139, 45, 0.1);
    color: var(--naranja);
}

.phase-overview-card:nth-child(3) .service-tag {
    background: rgba(44, 62, 102, 0.1);
    color: var(--azul-oscuro);
}

.phase-overview-card:hover .service-tag {
    transform: scale(1.05);
}


.services-detail-header {
    text-align: center;
    margin: 4rem auto 3rem;
    max-width: 800px;
}

.detail-subtitle {
    font-size: 1.3rem;
    color: var(--gris-medio);
    font-weight: 300;
}

.services-phases {
    max-width: var(--max-width);
    margin: 0 auto;
}

.phase-section {
    margin-bottom: 6rem;
    padding-top: 2rem;
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.phase-number {
    font-size: 4rem;
    font-weight: 300;
    color: var(--acento);
    opacity: 0.3;
}

.phase-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.phase-info p {
    color: var(--gris-medio);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transicion);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-description {
    color: var(--gris-medio);
    line-height: 1.6;
}

/* Services Flexibility */
.services-flexibility {
    background: var(--blanco);
    padding: 6rem 0;
}

.services-flexibility-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
    text-align: center;
}

.flexibility-title {
    font-family: var(--fuente-display);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--gris-oscuro);
}

.flexibility-description {
    font-size: 1.1rem;
    color: var(--gris-medio);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.flexibility-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.flexibility-option {
    padding: 2rem;
    background: var(--gris-claro);
    border-radius: 8px;
    transition: var(--transicion);
}

.flexibility-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.flexibility-icon {
    width: 50px;
    height: 50px;
    background: var(--acento);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
}

.flexibility-option h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gris-oscuro);
}

.flexibility-option p {
    color: var(--gris-medio);
    line-height: 1.6;
}

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

/* Cases */
.case-studies {
    padding: 8rem 0;
    background: var(--negro);
    color: var(--blanco);
}

.case-studies-header {
    max-width: var(--max-width);
    margin: 0 auto 4rem;
    padding: 0 3rem;
}

.case-studies-header .section-label {
    color: rgba(255, 255, 255, 0.6);
}

.case-studies-header .section-title {
    color: var(--blanco);
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.case-study:nth-child(even) {
    direction: rtl;
}

.case-study:nth-child(even) > * {
    direction: ltr;
}

.case-content {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-image-full {
    position: relative;
    overflow: hidden;
}

.case-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.case-study:hover .case-image-full img {
    transform: scale(1.05);
}

.case-label {
    font-size: 0.9rem;
    color: var(--acento);
    margin-bottom: 1rem;
}

.case-title {
    font-family: var(--fuente-display);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.case-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.case-results {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.case-metric {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--acento);
}

.case-metric span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* Insights */
.insights {
    padding: 8rem 3rem;
    background: var(--gris-claro);
}

.insights-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.insights-featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.featured-article {
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 3rem;
}

.featured-date,
.insight-date {
    font-size: 0.85rem;
    color: var(--gris-medio);
    margin-bottom: 1rem;
}

.featured-title {
    font-family: var(--fuente-display);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.featured-excerpt {
    color: var(--gris-medio);
    line-height: 1.8;
    font-size: 1.1rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.insight-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.insight-thumbnail {
    width: 150px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

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

.insight-title {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
}

/* CTA */
.cta {
    position: relative;
    padding: 8rem 3rem;
    text-align: center;
    overflow: hidden;
    background: #1a1a1a;
    color: var(--blanco);
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-bg video,
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.cta-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

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

.cta-title {
    font-family: var(--fuente-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--blanco);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cta .btn-primary {
    background: var(--acento);
    color: var(--blanco);
    border: 2px solid var(--acento);
}

.cta .btn-primary:hover {
    background: transparent;
    color: var(--acento);
    border-color: var(--acento);
}

.cta .btn-text {
    color: var(--blanco);
    border: 2px solid transparent;
}

.cta .btn-text:hover {
    color: var(--acento);
}

/* Footer */
.footer {
    padding: 6rem 3rem 3rem;
    background: var(--negro);
    color: var(--blanco);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

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

/* Responsive */
@media (max-width: 1200px) {
    .phases-overview {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .phase-overview-card {
        padding: 2.5rem 1.5rem 2rem;
    }
}

@media (max-width: 1024px) {
    .phases-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .phase-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .phases-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .phase-overview-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Otros media queries */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1.5rem 2rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .case-study {
        grid-template-columns: 1fr;
    }
    
    .case-content {
        padding: 4rem 3rem;
    }
    
    .insights-featured {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--blanco);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-burger {
        display: flex;
    }
    
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .case-content {
        padding: 3rem 2rem;
    }
    
    .case-results {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .insight-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo img {
        height: 30px;
    }
}

/* Weather Effects */
.weather-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
    z-index: 1;
}

.phase-overview-card:hover .weather-effect {
    opacity: 1;
}

/* Rain Effect - More visible rain drops */
.rain-effect {
    background-image: 
        linear-gradient(to bottom, transparent 0%, rgba(73, 161, 92, 0.9) 45%, rgba(73, 161, 92, 0.7) 55%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(73, 161, 92, 0.8) 40%, rgba(73, 161, 92, 0.6) 60%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(73, 161, 92, 0.85) 35%, rgba(73, 161, 92, 0.65) 50%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(73, 161, 92, 0.9) 50%, rgba(73, 161, 92, 0.7) 60%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(73, 161, 92, 0.8) 42%, rgba(73, 161, 92, 0.6) 58%, transparent 100%);
    background-size: 
        3px 20px,
        3px 16px,
        3px 22px,
        3px 14px,
        3px 18px;
    background-position: 
        10% -100px,
        30% -100px,
        50% -100px,
        70% -100px,
        90% -100px;
    background-repeat: no-repeat;
}

.phase-overview-card:hover .rain-effect {
    animation: rainFall 0.8s linear infinite;
}

@keyframes rainFall {
    to {
        background-position: 
            10% 110%,
            30% 110%,
            50% 110%,
            70% 110%,
            90% 110%;
    }
}

/* Create additional rain layers */
.rain-effect::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to bottom, transparent 0%, rgba(73, 161, 92, 0.75) 48%, rgba(73, 161, 92, 0.6) 52%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(73, 161, 92, 0.8) 43%, rgba(73, 161, 92, 0.65) 57%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(73, 161, 92, 0.85) 46%, rgba(73, 161, 92, 0.7) 54%, transparent 100%);
    background-size: 
        3px 17px,
        3px 20px,
        3px 15px;
    background-position: 
        20% -100px,
        60% -100px,
        80% -100px;
    background-repeat: no-repeat;
}

.phase-overview-card:hover .rain-effect::before {
    animation: rainFall 0.8s linear infinite 0.3s;
}

/* Growing Plants Effect for Cultivar */
.plant-effect {
    background: none;
    overflow: visible;
}

/* Organic plant stems using SVG */
.plant-effect::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 80px;
    height: 70%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 200' preserveAspectRatio='none'%3E%3Cpath d='M40,200 Q35,150 25,100 T30,0' stroke='rgba(255,139,45,0.7)' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 0%;
    background-repeat: no-repeat;
    background-position: bottom;
}

.phase-overview-card:hover .plant-effect::before {
    animation: plantGrowOrganic 3s ease-out infinite;
}

.plant-effect::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20%;
    width: 70px;
    height: 65%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 200' preserveAspectRatio='none'%3E%3Cpath d='M35,200 Q40,160 45,120 T35,0' stroke='rgba(255,139,45,0.8)' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 0%;
    background-repeat: no-repeat;
    background-position: bottom;
}

.phase-overview-card:hover .plant-effect::after {
    animation: plantGrowOrganic 3s ease-out infinite 0.5s;
}

/* Additional organic stems */
.plant-effect {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 200' preserveAspectRatio='none'%3E%3Cpath d='M30,200 Q25,170 35,140 T25,0' stroke='rgba(255,139,45,0.6)' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 200' preserveAspectRatio='none'%3E%3Cpath d='M25,200 Q30,180 20,130 T30,0' stroke='rgba(255,139,45,0.5)' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 200' preserveAspectRatio='none'%3E%3Cpath d='M35,200 Q30,160 40,110 T20,0' stroke='rgba(255,139,45,0.7)' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 
        60px 0%,
        50px 0%,
        70px 0%;
    background-position: 
        35% bottom,
        50% bottom,
        75% bottom;
    background-repeat: no-repeat;
}

.phase-overview-card:hover .plant-effect {
    animation: plantsGrowGroup 3s ease-out infinite 0.3s;
}

/* Leaves appearing - using CSS shapes instead of emoji */
.plant-effect .leaf {
    position: absolute;
    width: 15px;
    height: 20px;
    background: rgba(255, 139, 45, 0.7);
    border-radius: 0 100% 0 100%;
    opacity: 0;
    transform: scale(0) rotate(-45deg);
}

.plant-effect .leaf:nth-child(1) {
    top: 40%;
    left: 23%;
}

.plant-effect .leaf:nth-child(2) {
    top: 35%;
    left: 68%;
}

.plant-effect .leaf:nth-child(3) {
    top: 45%;
    left: 38%;
}

.phase-overview-card:hover .plant-effect .leaf:nth-child(1) {
    animation: leafAppear 3s ease-out infinite 1.5s;
}

.phase-overview-card:hover .plant-effect .leaf:nth-child(2) {
    animation: leafAppear 3s ease-out infinite 1.8s;
}

.phase-overview-card:hover .plant-effect .leaf:nth-child(3) {
    animation: leafAppear 3s ease-out infinite 2s;
}

@keyframes plantGrowOrganic {
    0% {
        background-size: 100% 0%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    60% {
        background-size: 100% 100%;
        opacity: 1;
    }
    80% {
        background-size: 100% 100%;
        opacity: 0.8;
    }
    100% {
        background-size: 100% 0%;
        opacity: 0;
    }
}

@keyframes plantsGrowGroup {
    0% {
        background-size: 
            60px 0%,
            50px 0%,
            70px 0%;
        opacity: 0;
    }
    20% {
        background-size: 
            60px 30%,
            50px 25%,
            70px 35%;
        opacity: 1;
    }
    60% {
        background-size: 
            60px 80%,
            50px 70%,
            70px 75%;
        opacity: 1;
    }
    80% {
        background-size: 
            60px 85%,
            50px 75%,
            70px 80%;
        opacity: 0.8;
    }
    100% {
        background-size: 
            60px 0%,
            50px 0%,
            70px 0%;
        opacity: 0;
    }
}

@keyframes leafAppear {
    0%, 50% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    70% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(15deg);
    }
}

/* Wind Effect - Bubble style similar to value cards but more prominent */
.wind-effect {
    background: none;
}

/* Blue bubbles for Cosechar */
.wind-effect::before,
.wind-effect::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.wind-effect::before {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.6), rgba(44, 126, 220, 0.6));
    bottom: -30px;
    left: 15%;
    box-shadow: 
        0 0 15px rgba(44, 126, 220, 0.4),
        inset -3px -3px 8px rgba(44, 126, 220, 0.3);
}

.phase-overview-card:hover .wind-effect::before {
    animation: windBubble1 8s ease-in-out infinite;
}

.wind-effect::after {
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.7), rgba(44, 126, 220, 0.6));
    bottom: -25px;
    right: 20%;
    box-shadow: 
        0 0 12px rgba(44, 126, 220, 0.4),
        inset -2px -2px 6px rgba(44, 126, 220, 0.3);
}

.phase-overview-card:hover .wind-effect::after {
    animation: windBubble2 10s ease-in-out infinite;
}

/* Additional bubbles - perfect circles */
.wind-effect {
    background-image: 
        radial-gradient(circle, rgba(44, 126, 220, 0.5) 30%, rgba(44, 126, 220, 0.2) 60%, transparent 70%),
        radial-gradient(circle, rgba(44, 126, 220, 0.4) 30%, rgba(44, 126, 220, 0.2) 60%, transparent 70%),
        radial-gradient(circle, rgba(44, 126, 220, 0.6) 30%, rgba(44, 126, 220, 0.2) 60%, transparent 70%),
        radial-gradient(circle, rgba(44, 126, 220, 0.5) 30%, rgba(44, 126, 220, 0.2) 60%, transparent 70%);
    background-size: 
        25px 25px,
        18px 18px,
        28px 28px,
        15px 15px;
    background-position: 
        30% 120%,
        60% 115%,
        80% 125%,
        45% 130%;
    background-repeat: no-repeat;
}

.phase-overview-card:hover .wind-effect {
    animation: windBubbleGroup 12s ease-in-out infinite;
}

@keyframes windBubble1 {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translateY(-20px) translateX(5px) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-150px) translateX(-10px) scale(1.2);
        opacity: 0.6;
    }
    90% {
        transform: translateY(-280px) translateX(15px) scale(0.8);
        opacity: 0;
    }
}

@keyframes windBubble2 {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
    15% {
        transform: translateY(-30px) translateX(-8px) scale(1);
        opacity: 0.7;
    }
    55% {
        transform: translateY(-180px) translateX(12px) scale(1.1);
        opacity: 0.5;
    }
    85% {
        transform: translateY(-300px) translateX(-20px) scale(0.7);
        opacity: 0;
    }
}

@keyframes windBubbleGroup {
    0%, 100% {
        background-position: 
            30% 120%,
            60% 115%,
            80% 125%,
            45% 130%;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        background-position: 
            25% -50%,
            65% -70%,
            75% -60%,
            50% -80%;
        opacity: 0.6;
    }
    90% {
        background-position: 
            20% -150%,
            70% -170%,
            70% -160%,
            55% -180%;
        opacity: 0;
    }
}

/* Scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.7;
}


/* Section Navigation Indicator */
.section-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.section-nav-dot.active {
    background-color: var(--acento);
    transform: scale(1.2);
}

.section-nav-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.section-nav-dot.active:hover {
    background-color: var(--acento);
    transform: scale(1.3);
}

.section-nav-dot::after {
    content: attr(data-section);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.section-nav-dot:hover::after {
    opacity: 1;
}

/* Para páginas con fondo claro */
.section-nav.light-bg .section-nav-dot {
    background-color: rgba(26, 26, 26, 0.3);
}

.section-nav.light-bg .section-nav-dot:hover {
    background-color: rgba(26, 26, 26, 0.5);
}

@media (max-width: 768px) {
    .section-nav {
        left: 1rem;
        gap: 0.75rem;
    }
    
    .section-nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .section-nav-dot::after {
        display: none;
    }
}


/* Services Detail Layout - New Format */
.services-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.services-detail-container:nth-child(even) {
    direction: rtl;
}

.services-detail-container:nth-child(even) > * {
    direction: ltr;
}

.services-detail-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 600px;
    background: var(--gris-claro);
}

.services-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.services-detail-container:hover .services-detail-image img {
    transform: scale(1.05);
}

.services-detail-content {
    padding: 2rem;
}

.services-detail-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.service-detail-item:hover {
    transform: translateX(10px);
}

.service-detail-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: var(--acento);
    color: var(--blanco);
    border-radius: 50%;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.service-detail-info {
    flex: 1;
}

.service-detail-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gris-oscuro);
    margin-bottom: 0.5rem;
}

.service-detail-description {
    color: var(--gris-medio);
    line-height: 1.6;
    font-size: 1rem;
}

/* Phase-specific colors */
.phase-section:nth-child(1) .service-detail-number {
    background: var(--acento);
}

.phase-section:nth-child(2) .service-detail-number {
    background: var(--naranja);
}

.phase-section:nth-child(3) .service-detail-number {
    background: var(--azul-oscuro);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .services-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-detail-container:nth-child(even) {
        direction: ltr;
    }
    
    .services-detail-image {
        height: 400px;
        order: -1;
    }
    
    .services-detail-content {
        padding: 1rem;
    }
    
    .service-detail-item:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .services-detail-list {
        gap: 2rem;
    }
    
    .service-detail-item {
        gap: 1rem;
    }
    
    .service-detail-number {
        min-width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .service-detail-title {
        font-size: 1.2rem;
    }
    
    .service-detail-description {
        font-size: 0.9rem;
    }
}

/* Insights Cards Fix */
.insight-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.insights-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Insights Layout Fix */
.insights-featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.featured-wrapper {
    width: 100%;
}

.insights-sidebar {
    width: 100%;
}

.featured-article {
    display: block;
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.insights-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.insight-card {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
}

.insight-thumbnail {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .insights-featured {
        grid-template-columns: 1fr;
    }
    
    .insights-sidebar {
        margin-top: 2rem;
    }
    
    .insights-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Sticky Service Header */
.sticky-service-header {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 0;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
    min-height: auto;
    overflow: visible;
}

.sticky-service-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Phase Stack */
.phase-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.phase-stack-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    min-height: 60px;
}

.phase-stack-item:hover {
    background: rgba(248, 248, 248, 1);
}

.phase-stack-item.sembrar {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.phase-stack-item.cultivar {
    background: rgba(255, 139, 45, 0.95);
    color: white;
}

.phase-stack-item.cosechar {
    background: rgba(44, 126, 220, 0.95);
    color: white;
}

.phase-stack-item-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.phase-stack-info {
    display: flex;
    align-items: center;
    gap: 0;
}

.phase-stack-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phase-stack-title {
    font-family: var(--fuente-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.phase-stack-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.phase-stack-image {
    width: 120px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.phase-stack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animations for stacking */
.phase-stack-item {
    transform-origin: top;
    animation: stackIn 0.5s ease-out forwards;
}

@keyframes stackIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phase-stack-item.stacked {
    height: auto;
    min-height: 60px;
    padding: 0.75rem 0;
}

.phase-stack-item.stacked .phase-stack-image {
    display: none;
}

.phase-stack-item.stacked .phase-stack-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
}

.phase-stack-item.active {
    height: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.sticky-service-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sticky-service-header {
        top: 60px;
    }
    
    .sticky-service-container {
        padding: 0 1.5rem;
    }
    
    .phase-stack-item {
        padding: 0.75rem 0;
    }
    
    .phase-stack-item-content {
        padding: 0 1.5rem;
    }
    
    .phase-stack-image {
        display: none;
    }
    
    .phase-stack-title {
        font-size: 1.2rem;
    }
    
    .phase-stack-subtitle {
        font-size: 0.8rem;
    }
    
    .phase-stack-item.stacked {
        min-height: 60px;
        padding: 0.5rem 0;
    }
    
    .phase-stack-item.stacked .phase-stack-subtitle {
        font-size: 0.75rem;
    }
}

/* Service item hover effect for tracking */
.service-detail-item {
    transition: background-color 0.3s ease;
}

.service-detail-item.in-view {
    background-color: var(--gris-claro);
}

/* Phase section tracking */
.phase-section {
    transition: all 0.3s ease;
    position: relative;
}

.phase-section.in-view::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--acento);
    opacity: 0.5;
}

/* Phase Headers - Inline with content */
.phase-header {
    padding: 3rem 3rem;
    margin-bottom: 3rem;
    background: var(--gris-claro);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.phase-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.phase-header-title {
    font-family: var(--fuente-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--negro);
}

/* Color específico para cada título de fase */
.sembrar-bg .phase-header-title {
    color: #49a15c; /* Verde */
}

.cultivar-bg .phase-header-title {
    color: #ff8b2d; /* Naranja */
}

.cosechar-bg .phase-header-title {
    color: #2c3e66; /* Azul */
}

.phase-header-subtitle {
    font-size: 1.2rem;
    color: var(--gris-oscuro);
    line-height: 1.6;
}


/* Phase backgrounds */
.sembrar-bg {
    background: linear-gradient(135deg, rgba(73, 161, 92, 0.1) 0%, rgba(73, 161, 92, 0.05) 100%);
}

.cultivar-bg {
    background: linear-gradient(135deg, rgba(255, 139, 45, 0.1) 0%, rgba(255, 139, 45, 0.05) 100%);
}

.cosechar-bg {
    background: linear-gradient(135deg, rgba(44, 62, 102, 0.1) 0%, rgba(44, 62, 102, 0.05) 100%);
}

/* Weather effects for phase headers */
.sembrar-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='1' fill='%2349a15c' opacity='0.3'%3E%3Canimate attributeName='r' from='0' to='3' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' from='0.5' to='0' dur='2s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") repeat;
    animation: float 20s infinite linear;
    opacity: 0.3;
    pointer-events: none;
}

.cultivar-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 139, 45, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
    pointer-events: none;
}

.cosechar-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(44, 62, 102, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(44, 62, 102, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Responsive phase headers */
@media (max-width: 768px) {
    .phase-header {
        padding: 2rem 1.5rem;
    }
    
    .phase-header-title {
        font-size: 2rem;
    }
    
    .phase-header-subtitle {
        font-size: 1rem;
    }
}

/* Blog Article Cards - CMS Ready */
.blog-article-card {
    display: block;
    padding: 0;
    background: var(--gris-claro);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-article-card:hover .article-image-wrapper img {
    transform: scale(1.05);
}

.article-content {
    padding: 2rem;
}

.article-excerpt {
    color: var(--gris-medio);
    line-height: 1.6;
    margin-top: 1rem;
}

.article-link {
    margin-top: 1rem;
}

/* CMS Integration Helpers */
[data-cms-field] {
    /* Helps identify CMS-managed content */
}

[data-cms-article],
[data-cms-featured],
[data-cms-recent] {
    /* Container markers for CMS content injection */
}

/* Loading states for CMS content */
.cms-loading {
    position: relative;
    min-height: 300px;
}

.cms-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--gris-medio);
    border-top-color: var(--acento);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
