﻿/* 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;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 15px;
}

/* 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: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Marcellus', serif;
    text-align: center;
}

.card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

/* Introducción */
.intro-card {
    background: linear-gradient(135deg, rgba(224, 43, 77, 0.15) 0%, rgba(219, 10, 50, 0.1) 50%, rgba(51, 51, 51, 0.9) 100%);
}

    .intro-card .card-text {
        font-size: 1.1rem;
        color: var(--text-color);
    }

        .intro-card .card-text b {
            color: var(--primary-color);
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

/* Valores */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.valor-card {
    background: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

    .valor-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;
    }

    .valor-card:hover::before {
        left: 100%;
    }

    .valor-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(224, 43, 77, 0.3);
        background: rgba(51, 51, 51, 0.95);
    }

.valor-title {
    font-family: 'Marcellus', serif;
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.valor-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Heading */
.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);
}   

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .card-body {
        padding: 1.5rem 1rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .valores-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .valor-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-text {
        font-size: 0.9rem;
    }
}
