/* ===============================================
   Procesos - Estilos Casa Morêt
   =============================================== */

/* Page Header */
.page-header {
    margin-top: 70px;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.page-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8);
}

.page-header-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 61, 47, 0.88) 0%, rgba(196, 107, 59, 0.75) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-header .page-title {
    color: var(--beige-claro);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.page-header .page-subtitle {
    color: var(--dorado);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 500;
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.4);
    font-family: var(--font-heading);
}

/* Process Intro Section */
.process-intro-section {
    padding: 80px 0;
    background-color: var(--beige-claro);
}

.intro-content-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content-centered .section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--verde-profundo);
    margin-bottom: 2rem;
    font-weight: 500;
}

.intro-content-centered .intro-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--gris-oscuro);
    max-width: 800px;
    margin: 0 auto;
}

/* Timeline Vertical */
.processes-timeline {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--blanco) 0%, var(--beige-claro) 50%, var(--blanco) 100%);
    position: relative;
}

.processes-timeline .container {
    max-width: 1200px;
    position: relative;
}

/* Línea central decorativa */
.processes-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--terracota) 10%, 
        var(--verde-profundo) 50%, 
        var(--terracota) 90%, 
        transparent 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 120px;
    z-index: 1;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--verde-profundo) 0%, var(--terracota) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--blanco);
    border: 4px solid var(--blanco);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.timeline-text {
    padding: 40px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-text h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--verde-profundo);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.timeline-text h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--terracota);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--gris-oscuro);
    margin-bottom: 1.2rem;
}

.timeline-text p:last-child {
    margin-bottom: 0;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.process-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
    padding-left: 30px;
    position: relative;
}

.process-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--terracota);
    font-size: 1.5rem;
    line-height: 1.8;
}

.process-list li strong {
    color: var(--verde-profundo);
    font-weight: 600;
}

.timeline-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    width: 100%;
    height: 500px;
}

.timeline-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.timeline-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Alternar dirección (reverse) */
.timeline-item.reverse .timeline-content {
    direction: rtl;
}

.timeline-item.reverse .timeline-text {
    direction: ltr;
}

/* Responsive Timeline */
@media (max-width: 968px) {
    .processes-timeline::before {
        left: 40px;
    }
    
    .timeline-number {
        left: 40px;
        top: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-left: 120px;
        align-items: start;
    }
    
    .timeline-item.reverse .timeline-content {
        direction: ltr;
    }
    
    /* Forzar orden: siempre texto primero, imagen después */
    .timeline-item .timeline-text {
        order: 1;
    }
    
    .timeline-item .timeline-image {
        order: 2;
    }
    
    .timeline-item.reverse .timeline-text {
        order: 1;
    }
    
    .timeline-item.reverse .timeline-image {
        order: 2;
    }
    
    .timeline-text {
        padding: 20px;
    }
    
    .timeline-text h3 {
        font-size: 1.8rem;
    }
    
    .timeline-image {
        height: 400px;
    }
    
    .timeline-image img {
        height: 400px;
    }
    
    .timeline-text {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .process-intro-section {
        padding: 60px 0;
    }
    
    .processes-timeline {
        padding: 60px 0;
    }
    
    .processes-timeline::before {
        left: 30px;
    }
    
    .timeline-number {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        top: 15px;
    }
    
    .timeline-content {
        padding-left: 100px;
        gap: 20px;
    }
    
    .timeline-text {
        padding: 15px;
        min-height: 0;
    }
    
    .timeline-text h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .timeline-text h4 {
        font-size: 1.3rem;
    }
    
    .timeline-text p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .process-list li {
        font-size: 0.95rem;
        padding-left: 25px;
    }
    
    .timeline-image {
        height: 350px;
    }
    
    .timeline-image img {
        height: 350px;
    }
    
    .timeline-item {
        margin-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .processes-timeline::before {
        left: 25px;
    }
    
    .timeline-number {
        left: 25px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding-left: 85px;
    }
    
    .timeline-text {
        min-height: 0;
    }
    
    .timeline-text h3 {
        font-size: 1.4rem;
    }
    
    .timeline-text h4 {
        font-size: 1.2rem;
    }
    
    .timeline-text p {
        font-size: 0.95rem;
    }
    
    .timeline-image {
        height: 300px;
    }
    
    .timeline-image img {
        height: 300px;
    }
}
    padding: 0 60px 80px;
    position: relative;
    text-align: center;
}

.processes-section .section-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--verde-profundo);
    text-align: center;
    margin: 0 auto 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    max-width: 900px;
    position: relative;
}

.processes-section .section-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.processes-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 100%;
    padding: 0;
}

.process-item {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.process-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.process-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.process-item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.process-item:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.process-item:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.process-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.process-item:nth-child(1) {
    min-height: 700px;
}

.process-item:nth-child(2),
.process-item:nth-child(3),
.process-item:nth-child(4),
.process-item:nth-child(5) {
    min-height: 340px;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.process-item:hover .process-image img {
    transform: scale(1.05);
}

.process-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    background: linear-gradient(to top, rgba(30, 61, 47, 0.98) 0%, rgba(30, 61, 47, 0.85) 60%, transparent 100%);
    color: white;
    z-index: 2;
    transition: padding 0.3s ease;
}

.process-item:hover .process-content {
    padding-bottom: 60px;
}

.process-item:nth-child(1) .process-content {
    padding: 60px;
}

.process-num {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--dorado);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    position: relative;
    padding-left: 45px;
}

.process-num::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 1px;
    background: var(--dorado);
}

.process-item h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.process-item:hover h3 {
    transform: translateY(-5px);
}

.process-item:nth-child(1) h3 {
    font-size: 3.8rem;
    line-height: 1.15;
}

.process-item:not(:nth-child(1)) h3 {
    font-size: 2rem;
}

.process-item p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 90%;
}

.process-item:not(:nth-child(1)) p {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Video Section */
.video-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--verde-profundo) 0%, #1a2d23 100%);
    position: relative;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(196, 107, 59, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.video-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 1;
}

.video-section .section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--beige-claro);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}

.video-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--dorado), var(--terracota));
}

.video-section .section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(232, 215, 185, 0.9);
    text-align: center;
    margin-bottom: 70px;
    margin-top: 40px;
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(30, 61, 47, 0.15);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--dorado);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.video-wrapper:hover::before {
    opacity: 0.5;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-wrapper:hover video {
    transform: scale(1.02);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    text-align: center;
    color: white;
    position: relative;
    background-image: url('../images/casamoret02.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 500px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-primary {
    background-color: var(--dorado);
    color: var(--verde-profundo);
    padding: 15px 45px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-section .btn-primary:hover {
    background-color: #E8C952;
    transform: translateY(-2px);
}
 @media (max-height: 750px) {
    .coffee-hero-slider,
    .slider-container {
        height: auto;
        min-height: 100vh;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .processes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .process-item:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        min-height: 650px;
    }

    .process-item:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .process-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .process-item:nth-child(4) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .process-item:nth-child(5) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .processes-section .section-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 400px;
    }

    .processes-section {
        margin: 60px 0 80px;
    }

    .processes-header {
        padding: 0 30px 60px;
    }

    .processes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .process-item:nth-child(1),
    .process-item:nth-child(2),
    .process-item:nth-child(3),
    .process-item:nth-child(4),
    .process-item:nth-child(5) {
        grid-column: 1 / 2;
        grid-row: auto;
        min-height: 400px;
    }

    .processes-section .section-title {
        font-size: 2.8rem;
    }

    .intro-content.centered p {
        font-size: 1rem;
    }

    .process-content,
    .process-item:nth-child(1) .process-content {
        padding: 35px;
    }

    .process-item h3,
    .process-item:nth-child(1) h3 {
        font-size: 2.2rem;
    }

    .process-item:not(:nth-child(1)) h3 {
        font-size: 1.6rem;
    }

    .video-section {
        padding: 80px 0;
    }

    .video-section .container {
        padding: 0 30px;
    }

    .video-section .section-title {
        font-size: 2.8rem;
        margin-bottom: 50px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 350px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .processes-header {
        padding: 0 20px 40px;
    }

    .processes-section .section-title {
        font-size: 2rem;
    }

    .process-item:nth-child(1),
    .process-item:nth-child(2),
    .process-item:nth-child(3),
    .process-item:nth-child(4),
    .process-item:nth-child(5) {
        min-height: 350px;
    }

    .process-content,
    .process-item:nth-child(1) .process-content {
        padding: 25px;
    }

    .process-item h3,
    .process-item:nth-child(1) h3 {
        font-size: 1.8rem;
    }

    .process-item:not(:nth-child(1)) h3 {
        font-size: 1.4rem;
    }

    .video-section .section-title {
        font-size: 2rem;
    }

    .video-section .container {
        padding: 0 20px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .process-item p,
    .process-item:not(:nth-child(1)) p {
        font-size: 0.9rem;
    }
}
