/* Estilos mejorados para las tarjetas de tarifas */

/* Mejoras en las tarjetas de tarifas */
#tarifas .card.card-secondary {
    border: none;
    box-shadow: 0 8px 25px rgba(22, 63, 144, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

#tarifas .card.card-secondary .card-body {
    padding-bottom: 1.5rem !important;
}

#tarifas .card.card-secondary:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(22, 63, 144, 0.15);
}

#tarifas .card.card-secondary.card-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border: 2px solid #1cc765;
}

#tarifas .card.card-secondary.card-gradient:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #077ce7 0%, #1cc765 100%);
    z-index: 1;
}

/* Mejoras en el diseño del precio */
.price-display {
    position: relative;
}

.price-display:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #077ce7 0%, #1cc765 100%);
    border-radius: 1px;
}

/* Mejoras en la sección de características */
.features-section {
    padding: 0 10px;
}

.features-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-section li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(22, 63, 144, 0.1);
    position: relative;
    padding-left: 25px;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.features-section li:last-child {
    border-bottom: none;
}

.features-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #1cc765;
    font-weight: bold;
    font-size: 16px;
}

/* Mejoras en los botones */
#tarifas .btn-primary {
    background: linear-gradient(135deg, #1cc765 0%, #17a557 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(28, 199, 101, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

#tarifas .btn-primary:hover {
    background: linear-gradient(135deg, #17a557 0%, #138a47 100%);
    box-shadow: 0 6px 20px rgba(28, 199, 101, 0.4);
    transform: translateY(-2px);
}

/* Espaciado específico para contenedores de botones */
#tarifas .card .text-center:last-child {
    padding-bottom: 1rem;
}

/* Forzar espaciado en móvil con mayor especificidad */
@media (max-width: 767.98px) {
    #tarifas .container .row .col-12.col-md-6.col-lg-4 {
        margin-bottom: 2rem !important;
        padding-bottom: 1rem !important;
    }

    #tarifas .container .row .col-12.col-md-6.col-lg-4:last-child {
        margin-bottom: 0 !important;
    }

    /* Espaciado del grid en móvil */
    #tarifas .row.g-4 {
        --bs-gutter-y: 2rem;
    }
}

/* Mejoras en la cabecera de la sección */
.block-heading h2.text-border {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.block-heading .lead {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    #tarifas .card.card-secondary {
        margin-bottom: 2rem !important;
    }

    .block-heading h2.text-border {
        font-size: 2rem;
    }

    .block-heading .lead {
        font-size: 1.1rem;
    }

    .price-display .h2 {
        font-size: 1.8rem;
    }

    /* Ajustar columnas en móvil para mejor visualización */
    .row.g-4 .col-12.col-md-6.col-lg-4 {
        max-width: 400px;
        margin: 0 auto;
        margin-bottom: 1.5rem;
    }

    /* Espaciado específico para móvil */
    #tarifas .row.g-4 {
        margin-bottom: 2rem;
    }

    /* Margen adicional entre tarjetas en móvil */
    #tarifas .col-12.col-md-6.col-lg-4:not(:last-child) {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .block-heading h2.text-border {
        font-size: 1.8rem;
    }

    .price-display .h2 {
        font-size: 1.6rem;
    }

    #tarifas .card.card-secondary .card-body {
        padding: 1.5rem 1rem;
    }

    /* Espaciado extra en móviles pequeños */
    #tarifas .col-12 {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-bottom: 2rem !important;
    }

    /* Margen del contenedor principal en móvil */
    #tarifas .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Espaciado vertical entre secciones */
    #tarifas .row.g-4 {
        row-gap: 2rem !important;
    }
}

/* Animación sutil al cargar */
#tarifas .card.card-secondary {
    animation: fadeInUp 0.6s ease-out;
}

#tarifas .card.card-secondary:nth-child(2) {
    animation-delay: 0.1s;
}

#tarifas .card.card-secondary:nth-child(3) {
    animation-delay: 0.2s;
}

#tarifas .card.card-secondary:nth-child(4) {
    animation-delay: 0.3s;
}

#tarifas .card.card-secondary:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras en el hover de las tarjetas destacadas */
#tarifas .card.card-secondary.card-gradient:hover {
    border-color: #077ce7;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

/* Iconos para diferentes categorías (opcional) */
.card-title:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Iconos específicos por categoría */
.card-title[data-category="oficinas"]:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23163f90' viewBox='0 0 24 24'%3E%3Cpath d='M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z'/%3E%3C/svg%3E");
}

.card-title[data-category="coworking"]:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23163f90' viewBox='0 0 24 24'%3E%3Cpath d='M16 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zM4 18v-6h3v-5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v5h3v6H4z'/%3E%3C/svg%3E");
}

.card-title[data-category="aulas"]:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23163f90' viewBox='0 0 24 24'%3E%3Cpath d='M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z'/%3E%3C/svg%3E");
}

.card-title[data-category="virtual"]:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23163f90' viewBox='0 0 24 24'%3E%3Cpath d='M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z'/%3E%3C/svg%3E");
}

.card-title[data-category="reuniones"]:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23163f90' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}
