:root {
    --primary: #005f73;
    --secondary: #0a9396;
    --accent: #ee9b00;
    --light: #e9d8a6;
    --dark: #001219;
    --card-bg: rgba(255, 255, 255, 0.95);
    --modal-bg: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    touch-action: manipulation;
}

html, body {
    background: url('https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    color: var(--dark);
   
    
}
/********idiomas**************/
.language-selector {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.lang-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--accent);
    transform: scale(1.1);
}

/*********************************/
/*********************************/
/*************modales iframe********************/
/*********************************/
/*********************************/



.modal-close-btn {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f6be00;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* Modal full-screen personalizado */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2147483647;
    justify-content: center;
    align-items: center;
}

.custom-modal-inner {
    background: #fff;
    width: 90%;
    height: 90vh;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.custom-modal-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Scroll vertical solo en móvil */
@media (max-width: 768px) {
    .custom-modal-inner {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-close-btn {
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
        line-height: 48px;
    }
}




/****************************/
/********************************/
/************************************/


.kiosk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(0, 95, 115, 0.9);
    padding: 25px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}



/************************************/
/*************MODAL***********************/
/************************************/
/************************************/


.nav-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    backdrop-filter: blur(5px);
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.nav-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.nav-card:hover i {
    transform: scale(1.1);
    color: var(--accent);
}

.nav-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-card p {
    font-size: 0.9rem;
    color: #555;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    z-index: 2000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.modal-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: var(--accent);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    transform: rotate(90deg);
    background: #d68a00;
}

.back-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.back-button:hover {
    background: #088389;
}

.modal-body {
    padding: 10px 0;
}


/****************************************************/
/*************Servicios***********************/
/************************************/
/************************************/


.table-container {
    max-width: 100%;
    overflow-x: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
    /* quitamos el min-width para adaptarse */
    /* min-width: 600px; */
    table-layout: auto;
    /* para que se adapte al contenido */
}

.service-table th,
.service-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    /* más centrado vertical */
    font-size: 0.95rem;
    white-space: nowrap;
    /* evitar saltos de línea */
}

.service-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
}

.service-table tr:nth-child(even) {
    background-color: rgba(0, 95, 115, 0.05);
}

.service-table tr:hover {
    background-color: rgba(0, 95, 115, 0.1);
}

/* Para la última columna si quieres que permita salto */
.service-table td:last-child,
.service-table th:last-child {
    white-space: normal;
    word-break: break-word;
    min-width: 200px;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {

    .service-table th,
    .service-table td {
        font-size: 0.8rem;
        padding: 6px 6px;
        white-space: nowrap;
    }
}

/**************************************/
/***************EVENTOS*********************/
/************************************/





.event-card {

    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.event-date {
    background: var(--primary);
    color: white;
    min-width: 70px;
    height: 70px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.event-day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 3px;
}

.event-info h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.event-info p {
    color: #555;
    margin-bottom: 5px;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary);
    font-weight: 500;
}

/**************************************/
/********Informacion/contacto****/
/************************************/

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card i {
    font-size: 1.2rem;
    color: var(--secondary);
}

.contact-item {
    margin-bottom: 15px;
}

.emergency-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    margin-top: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.emergency-btn:hover {
    background: #d68a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 155, 0, 0.3);
}

@media (max-width: 768px) {
    .nav-card {
        padding: 10px;
        /* menos espacio interno */
        font-size: 0.9rem;
        /* texto más pequeño */
        max-width: 200px;
        /* opcional, para limitar ancho */
        margin: 0 auto;
        /* centrar en columna */
    }
}

@media (max-width: 480px) {
    .nav-card {
        padding: 8px;
        font-size: 0.85rem;
        max-width: 180px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header h1 {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }

    .event-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }

    .language-selector {
        top: 10px;
        right: 10px;
    }

    .lang-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }
}


/********pwa descarga******/

#pwaInstallBanner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
    animation: slideDown 0.3s ease-out;
    max-width: 90%;
}

#pwaInstallBanner span {
    font-size: 15px;
    color: #333;
    flex: 1;
}

#pwaInstallBanner button {
    background-color: #f04d4e;
    border: none;
    color: white;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

#pwaInstallBanner button:hover {
    background-color: #d13c3d;
}

#pwaInstallBanner #closePwaBanner {
    background-color: #e0e0e0;
    color: #333;
}

#pwaInstallBanner #closePwaBanner:hover {
    background-color: #cfcfcf;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 📱 Diseño adaptado a móviles */
@media (max-width: 576px) {
    #pwaInstallBanner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    #pwaInstallBanner span {
        font-size: 14px;
    }

    #pwaInstallBanner button {
        width: 100%;
        padding: 10px;
    }
}


/****************************************/
/*****************************************/
/****************************************/
/*****************************************/

/****************************************/
/*****************************************/

.spa-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    min-width: 600px;
    /* Ancho mínimo para evitar que se comprima */
}

.spa-table th,
.spa-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    /* Evita que el texto se parta */
}

.spa-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
}

.spa-table tr:nth-child(even) {
    background-color: rgba(0, 95, 115, 0.05);
}

.spa-table tr:hover {
    background-color: rgba(0, 95, 115, 0.1);
}

/* Contenedor para el scroll horizontal */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* scroll suave iOS */
}

/* Ajustes para móviles */
@media (max-width: 768px) {

    .spa-table th,
    .spa-table td {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
}





