/* ===== ABOUT SECTION ===== */
.about {
    padding: 6rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.1);
}

.about-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.about-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* ===================================================================================== */
/*                                  ESTILOS DEL MODAL                                    */
/* ===================================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #0c0c0c;
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: rgba(233, 219, 219, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
    color: var(--primary-color);
}

.modal-header {
    background: linear-gradient(135deg, #212529, #343a40);
    padding: 3.5rem 2rem 2.5rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.modal-header h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.modal-location {
    color: var(--accent-color);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.modal-body {
    padding: 2.5rem 2rem;
}

.modal-section {
    margin-bottom: 3rem;
}

.modal-section h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.modal-section h3 i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.modal-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.modal-list li {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.65rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.modal-list li i {
    color: var(--accent-color);
    font-size: 1.1rem;
    min-width: 20px;
}

/* Grid de instalaciones */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.facility-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.facility-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.facility-card i {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.facility-card h4 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.facility-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Call to Action del modal */
.modal-cta {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.modal-cta h3 {
    color: #fff;
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Scrollbar personalizado para el modal */
.modal-container::-webkit-scrollbar {
    width: 10px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: #f4d03f;
}

/* ===================================================================================== */
/*                              RESPONSIVE ABOUT SECTION                                 */
/* ===================================================================================== */

/* Tablets grandes (1024px - 1280px) */
@media (max-width: 1280px) {
    .about {
        padding: 5rem 0;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .about-heading {
        font-size: 1.8rem;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .about {
        padding: 4rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        max-height: 400px;
    }
    
    .about-heading {
        font-size: 1.7rem;
    }
    
    .about-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets pequeñas (600px - 768px) */
@media (max-width: 768px) {
    .about {
        padding: 3rem 0;
    }
    
    .about-content {
        gap: 2.5rem;
    }
    
    .about-image {
        max-height: 350px;
    }
    
    .about-badge {
        top: 1.5rem;
        right: 1.5rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .about-heading {
        font-size: 1.6rem;
    }
    
    .about-description {
        font-size: 0.95rem;
    }
    
    .about-features {
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
}

/* Móviles grandes (480px - 600px) */
@media (max-width: 600px) {
    .about {
        padding: 2.5rem 0;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .about-image {
        max-height: 300px;
        border-radius: 15px;
    }
    
    .about-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        gap: 0.35rem;
    }
    
    .about-badge i {
        font-size: 0.9rem;
    }
    
    .about-heading {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .about-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1.25rem 0;
    }
    
    .feature-item {
        font-size: 0.95rem;
    }
    
    .feature-item i {
        font-size: 1.1rem;
    }
}

/* Móviles pequeños (320px - 480px) */
@media (max-width: 480px) {
    .about {
        padding: 2rem 0;
    }
    
    .about-image {
        max-height: 250px;
    }
    
    .about-heading {
        font-size: 1.4rem;
    }
    
    .about-description {
        font-size: 0.88rem;
        line-height: 1.6;
    }
    
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ===================================================================================== */
/*                              RESPONSIVE MODAL                                         */
/* ===================================================================================== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .modal-container {
        max-width: 750px;
    }
    
    .modal-header h2 {
        font-size: 2.2rem;
    }
    
    .modal-section h3 {
        font-size: 1.5rem;
    }
    
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Tablets pequeñas y móviles grandes (600px - 768px) */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .modal-container {
        max-height: 85vh;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        top: 1.25rem;
        right: 1.25rem;
        font-size: 1.2rem;
    }
    
    .modal-header {
        padding: 3rem 1.5rem 2rem;
    }
    
    .modal-header h2 {
        font-size: 1.9rem;
        margin-bottom: 0.65rem;
    }
    
    .modal-location {
        font-size: 1rem;
        flex-wrap: wrap;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .modal-section {
        margin-bottom: 2.5rem;
    }
    
    .modal-section h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .modal-section h3 i {
        font-size: 1.25rem;
    }
    
    .modal-section p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .modal-list li {
        font-size: 1rem;
        padding: 0.55rem 0;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .facility-card {
        padding: 1.75rem 1.25rem;
    }
    
    .facility-card i {
        font-size: 2.5rem;
    }
    
    .facility-card h4 {
        font-size: 1.1rem;
    }
    
    .facility-card p {
        font-size: 0.9rem;
    }
    
    .modal-cta {
        padding: 2rem 1.5rem;
    }
    
    .modal-cta h3 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }
}

/* Móviles grandes (480px - 600px) */
@media (max-width: 600px) {
    .modal-overlay {
        padding: 0.75rem;
        padding-top: 1.5rem;
    }
    
    .modal-container {
        border-radius: 15px;
        max-height: 88vh;
    }
    
    .modal-close {
        width: 38px;
        height: 38px;
        top: 1rem;
        right: 1rem;
        font-size: 1.1rem;
    }
    
    .modal-header {
        padding: 2.5rem 1.25rem 1.75rem;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.7rem;
    }
    
    .modal-location {
        font-size: 0.95rem;
    }
    
    .modal-body {
        padding: 1.75rem 1.25rem;
    }
    
    .modal-section {
        margin-bottom: 2.25rem;
    }
    
    .modal-section h3 {
        font-size: 1.3rem;
        gap: 0.6rem;
    }
    
    .modal-section h3 i {
        font-size: 1.15rem;
    }
    
    .modal-section p {
        font-size: 0.95rem;
        margin-bottom: 0.9rem;
    }
    
    .modal-list li {
        font-size: 0.95rem;
        gap: 0.85rem;
    }
    
    .modal-list li i {
        font-size: 1rem;
    }
    
    .facility-card {
        padding: 1.5rem 1rem;
    }
    
    .facility-card i {
        font-size: 2.3rem;
        margin-bottom: 0.85rem;
    }
    
    .facility-card h4 {
        font-size: 1.05rem;
        margin-bottom: 0.65rem;
    }
    
    .facility-card p {
        font-size: 0.88rem;
    }
    
    .modal-cta {
        padding: 1.75rem 1.25rem;
        margin-top: 1.75rem;
    }
    
    .modal-cta h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Móviles pequeños (320px - 480px) */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.5rem;
        padding-top: 1rem;
    }
    
    .modal-container {
        border-radius: 12px;
        max-height: 90vh;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1rem;
    }
    
    .modal-header {
        padding: 2.25rem 1rem 1.5rem;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-location {
        font-size: 0.9rem;
        gap: 0.4rem;
    }
    
    .modal-body {
        padding: 1.5rem 1rem;
    }
    
    .modal-section {
        margin-bottom: 2rem;
    }
    
    .modal-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.9rem;
        gap: 0.5rem;
    }
    
    .modal-section h3 i {
        font-size: 1.1rem;
    }
    
    .modal-section p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.85rem;
    }
    
    .modal-list {
        margin-top: 0.85rem;
    }
    
    .modal-list li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        gap: 0.75rem;
    }
    
    .modal-list li i {
        font-size: 0.95rem;
        min-width: 18px;
    }
    
    .facilities-grid {
        gap: 1rem;
        margin-top: 1.25rem;
    }
    
    .facility-card {
        padding: 1.25rem 0.85rem;
    }
    
    .facility-card i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .facility-card h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .facility-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .modal-cta {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
    }
    
    .modal-cta h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .modal-cta .btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .modal-container::-webkit-scrollbar {
        width: 6px;
    }
}

/* Móviles muy pequeños (menos de 375px) */
@media (max-width: 375px) {
    .modal-header h2 {
        font-size: 1.35rem;
    }
    
    .modal-location {
        font-size: 0.85rem;
    }
    
    .modal-section h3 {
        font-size: 1.15rem;
    }
    
    .modal-section p,
    .modal-list li {
        font-size: 0.88rem;
    }
    
    .facility-card h4 {
        font-size: 0.95rem;
    }
    
    .facility-card p {
        font-size: 0.82rem;
    }
    
    .modal-cta h3 {
        font-size: 1.25rem;
    }
}

/* Landscape mode en móviles */
@media (max-height: 600px) and (orientation: landscape) {
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-start;
    }
    
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-section {
        margin-bottom: 1.75rem;
    }
    
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}