﻿/* Estilos generales */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 100%;
    width:80%;
    margin: 0px;
    padding: 2rem;
    margin-left:7%;
}

.main-title {
    font-family: 'Montserrat', serif;
    text-align: center;
    color: #2c3e50;
    margin: 2% 0 3rem;
    font-size: 5.5rem;
    font-weight: 700;
    /* Efecto de gradiente moderno */
    background: linear-gradient(135deg, #333 0%, #7b7b7b 50%, #352e34 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Sombra de texto sutil */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    /* Espaciado entre letras */
    letter-spacing: -1.5px;
    /* Transición para efectos hover */
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 0 20px;
    width: 80% !important;
    text-align: center;
    margin-top: -11%;
}

    .main-title::after {
        content: '';
        position: absolute;
        width: 60%;
        height: 3px;
        bottom: -10px;
        left: 20%;
        background: linear-gradient(90deg, transparent, #333, transparent);
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    .main-title:hover {
        letter-spacing: -1px;
        transform: scale(1.02);
    }

        .main-title:hover::after {
            width: 80%;
            left: 10%;
            background: linear-gradient(90deg, transparent, #1C6E8C, transparent);
            height: 4px;
        }


.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
    margin-left:2%;
}

.card-wrapper {
    perspective: 1000px;
    text-align: center;
}

.card-description {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
}

/* Estilos de la tarjeta */
.card {
    position: relative;
    width: 100%;
    height: 550px;
    transform-style: preserve-3d;
    transition: all 0.6s ease;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

    .card:hover {
        transform: rotateY(180deg);
    }

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.card-front {
    color: white;
}

.card-back {
    background: white;
    transform: rotateY(180deg);
    overflow: hidden;
}

    .card-back img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Montserrat', serif;
    font-size: 3.0rem;
    margin: 0;
    font-weight: 700;
}

/* Efectos de hover adicionales */
.card:hover .card-front {
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .main-title {
        font-size: 2rem;
    }
}

/* Responsive para pantallas más pequeñas */
@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
        letter-spacing: -1px;
        margin: 5% 0 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
        padding: 0 10px;
    }

        .main-title::after {
            height: 2px;
            bottom: -5px;
        }
}
