﻿/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Utilidades */
.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.h-100 {
    height: 100%;
}

/* Contenedor */
.content-section {
    background: var(--gradient-dark);
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 15px;
}

/* Section */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Marcellus', serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-size: 1.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border: none;
    background: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    height: 100%;
    position: relative;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(224, 43, 77, 0.3);
        background: rgba(51, 51, 51, 0.95);
    }

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
        z-index: 1;
    }

    .card:hover::before {
        left: 100%;
    }

.card-body {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.card-title {
    color: var(--text-color);
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Marcellus', serif;
    position: relative;
}

    .card-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--gradient-primary);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

.card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

    .card-text:last-child {
        margin-bottom: 0;
    }

.card-text b {
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.05rem;
}

/* Productos */
.producto-layout {
    display: flex;
    align-items: stretch;
    min-height: 400px;
}

    .producto-layout.reverse {
        flex-direction: row-reverse;
    }

.producto-card {
    transition: all 0.3s ease;
    border: none;
    background: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

    .producto-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(224, 43, 77, 0.3);
        background: rgba(51, 51, 51, 0.95);
    }

    .producto-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
        z-index: 1;
    }

    .producto-card:hover::before {
        left: 100%;
    }

    .producto-card:hover .producto-imagen img {
        transform: scale(1.05);
    }

    .producto-card:hover .card-title::after {
        width: 100px;
    }

    .producto-card:hover .card-text {
        color: rgba(255, 255, 255, 1);
    }

    .producto-card:hover .producto-numero {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(224, 43, 77, 0.4);
    }

.producto-imagen {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.5rem 0 1.5rem;
}

    .producto-imagen img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        object-position: center;
        transition: all 0.3s ease;
        border-radius: 10px;
    }

.producto-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

    .producto-carousel .carousel-item img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        object-position: center;
    }

.producto-subtitulo {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 500;
}

.producto-contenido {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.producto-numero {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Marcellus', serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 3;
    transition: all 0.3s ease;
}

/* Animaciones */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animaciones con delay */
.producto-card:nth-child(1) {
    animation: fadeInLeft 0.8s ease-out;
}

.producto-card:nth-child(2) {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.producto-card:nth-child(3) {
    animation: fadeInLeft 0.8s ease-out 0.4s both;
}

.producto-card:nth-child(4) {
    animation: fadeInRight 0.8s ease-out 0.6s both;
}

/* Responsivo */
@media (max-width: 768px) {
    .producto-layout,
    .producto-layout.reverse {
        flex-direction: column;
    }

    .producto-imagen {
        flex: none;
        height: 300px;
        margin: 1rem;
    }

    .producto-carousel {
        height: 250px;
    }

    .producto-carousel .carousel-item img {
        height: 250px;
    }

    .producto-contenido {
        padding: 2rem;
    }

    .card-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .producto-numero {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1.6rem;
    }

    .card-text {
        font-size: 0.95rem;
    }

    .producto-contenido {
        padding: 1.5rem;
    }

    .producto-carousel {
        height: 220px;
    }

    .producto-carousel .carousel-item img {
        height: 220px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
