/* index.css - ESTILOS ESPECÍFICOS DE INDEX.HTML */
:root {
    --primary-green: #013836;
    --primary-brown: #8d4c2c;
    --light-brown: #a38570;
    --dark-text: #333;
    --light-text: #fff;
}

/* Carrusel */
.carousel-section {
    margin-top: 0;
}

.carousel-item {
    height: 100vh;
    position: relative;
}

.carousel-content {
    height: 100%;
    display: flex;
    align-items: center;
}

.text-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.image-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.full-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay-content {
    position: relative;
    z-index: 1;
    color: var(--light-text);
    padding: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-comprar {
    background-color: var(--primary-brown);
    color: var(--light-text);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.btn-comprar:hover {
    background-color: var(--primary-green);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-brown);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

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

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

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

/* Secciones para navegación por hash */
section[id] {
    scroll-margin-top: 80px;
}

/* Sección Legado de Origen */
.legado-section {
    padding: 100px 50px;
    background-color: #f8f9fa;
}

.legado-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-green);
    font-weight: 700;
}

.legado-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    line-height: 1.6;
}

.legado-images {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.legado-item {
    width: 30%;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.legado-item:hover {
    transform: translateY(-10px);
}

.legado-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.legado-item h3 {
    color: var(--primary-brown);
    margin-bottom: 10px;
}

.legado-item p {
    color: var(--dark-text);
    margin-bottom: 15px;
}

.legado-price {
    font-weight: 700;
    color: var(--primary-green);
}

/* Sección Artesanas y Comunidades */
.artesanas-section {
    display: flex;
    height: 100vh;
}

.artesanas-content {
    width: 33.33%;
    background-color: var(--primary-brown);
    color: var(--light-text);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artesanas-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.artesanas-list {
    list-style: none;
    margin-bottom: 40px;
}

.artesanas-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.artesanas-list span {
    font-size: 18px;
}

.circle-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #387b5c;
    border: 2px solid var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
}

.btn-productos {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-productos:hover {
    background-color: var(--light-text);
    color: var(--primary-brown);
    border-color: var(--light-text);
}

.artesanas-images {
    width: 66.67%;
    display: flex;
}

.images-column {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.images-column img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    cursor: pointer;
}

.single-image {
    width: 50%;
}

.single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Modal para imágenes */
.modal-content {
    background-color: transparent;
    border: none;
}

.modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-header {
    border: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.btn-close {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 1;
}

/* Sección Proceso */
.proceso-section {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    align-items: stretch;
    position: relative;
}

.proceso-content {
    width: 50%;
    background-color: var(--light-brown);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.proceso-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-brown);
    line-height: 1;
    margin-bottom: 10px;
}

.proceso-subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-brown);
    margin-bottom: 30px;
}

.proceso-text {
    font-size: 18px;
    line-height: 1.6;
    color: #013832;
    margin-bottom: 40px;
}

.video-container {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 315px;
    border-radius: 10px;
    background-color: #000;
    display: block;
}

.video-container:hover {
    cursor: pointer;
}

.video-container::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-container:hover::before {
    opacity: 1;
}

/* SECCIÓN BLOG */
.blog-content {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 100px;
    position: relative;
    z-index: 1;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.blog-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-conoce {
    background-color: var(--primary-brown);
    color: var(--light-text);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-conoce:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Pie de página */
.footer-section {
    background-color: var(--light-brown);
    padding: 100px 50px;
    color: var(--light-text);
    position: relative;
}

.proposito-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.proposito-text {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-style: italic;
}

.unete-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-brown);
    text-align: center;
    margin-bottom: 10px;
}

.unete-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.email-form {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.email-input {
    padding: 12px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    width: 300px;
    font-size: 16px;
}

.btn-unirme {
    background-color: var(--primary-brown);
    color: var(--light-text);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-unirme:hover {
    background-color: var(--primary-green);
}

.footer-links {
    text-align: center;
    margin-top: 50px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

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

/* Responsive específico para index.html */
@media (max-width: 992px) {
    .carousel-content {
        flex-direction: column;
    }
    
    .text-content, .overlay-content {
        padding: 30px;
    }
    
    .legado-item {
        width: 45%;
    }
    
    .artesanas-section {
        flex-direction: column;
        height: auto;
    }
    
    .artesanas-content, .artesanas-images {
        width: 100%;
    }
    
    .artesanas-content {
        padding: 30px;
    }
    
    .proceso-section {
        flex-direction: column;
        height: auto;
        align-items: stretch;
    }
    
    .proceso-content, .blog-content {
        width: 100%;
        padding: 30px;
        justify-content: flex-start;
    }
    
    .blog-content {
        padding-top: 50px;
    }
    
    .proceso-title {
        font-size: 3rem;
    }
    
    .proceso-subtitle {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .legado-item {
        width: 100%;
    }
    
    .artesanas-images {
        flex-direction: column;
    }
    
    .images-column, .single-image {
        width: 100%;
    }
    
    .images-column img {
        height: 300px;
    }
    
    .single-image img {
        height: 300px;
    }
    
    .proceso-title {
        font-size: 2.5rem;
    }
    
    .proceso-subtitle {
        font-size: 1.8rem;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
    
    .email-form {
        flex-direction: column;
        align-items: center;
    }
    
    .email-input {
        border-radius: 30px;
        margin-bottom: 10px;
        width: 100%;
        max-width: 300px;
    }
    
    .btn-unirme {
        border-radius: 30px;
        width: 100%;
        max-width: 300px;
    }
}