/* ==========================================================================
   ESTILOS GENERALES Y CONTENEDOR
   ==========================================================================  #4893e3 */

:root { --primary: #4893e3; --secondary: #7ed982; --text: #334155; --bg: #f8fafc; }

body {
    /*
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    margin: 0;
    padding: 0;
    */
}

.web-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0em 3em;
    width: 90%;
    background-color: #ffffff;
}

.web-container{
    max-width: 1920px;
    margin: 1em auto;
    padding: 1em 4em;
    /* font-family: 'Helvetica Neue', Arial, sans-serif; */
    width: 90%;
    background-color: #fbfbfb;
    border-radius: 0.8em;
}

/* Breadcrumbs (Migas de pan) */
.breadcrumbs {
    font-size: 0.7em;
    color: #666;
    margin-bottom: 25px;
}
.breadcrumbs a {
    color: #4893e3;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   FASE 1: HOME - HERO Y BUSCADOR
   ========================================================================== */
.hero-convenios {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.hero-convenios h1 {
    font-size: 2em;
    margin: 0;
    font-weight: 700;
    color: #ffffff;
    padding: 1em 0 0 0;
}

.hero-convenios p {
    font-size: 18px;
    margin: 1em 0;
    opacity: 0.9;
    text-align: center;
    padding: 0 0 1em 0;
    /* line-height: 0.1em; */
}


.convenio-info-principal-box{
    width: 30%;
}




/* Buscador Form */
.buscador-convenios {
    max-width: 600px;
    margin: 0 auto;
}

.buscador-convenios .input-group {
    display: flex;
    background: #fff;
    padding: 6px;
    border-radius: 50px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.icon-search {
    color: #94a3b8;
    padding-left: 18px;
    font-size: 18px;
}

.buscador-convenios input[type="text"] {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 16px;
    outline: none;
    color: #334155;
    background: transparent;
}

.buscador-convenios button {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.buscador-convenios button:hover {
    background: #059669;
}

/* Grid de Categorías (Público) */
.grid-publico-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card-publica-cat {
    background: #fff;
    padding: 1em 3em;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    box-sizing: border-box;
}

.card-publica-cat:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}

.cat-icono-wrapper {
    width: 70px;
    height: 70px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: background 0.3s, color 0.3s;
}

.card-publica-cat:hover .cat-icono-wrapper {
    background: #3b82f6;
    color: #fff;
}

.card-publica-cat h3 {
    font-size: 20px;
    margin: 0 0 0px 0;
    color: #ffffff;
}

.card-publica-cat p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.0em;
    /* margin: 0 0 20px 0; */
    flex-grow: 1;
    text-align: center;
    margin: auto;
}


.btn-explorar {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: center;
    width: 100%;
    background-color: #3573df;
    padding: 0.6em 1em;
    box-sizing: border-box;
    margin: 1em auto;
    justify-content: center;
    border-radius: 0.8em;

}

/* ==========================================================================
   FASE 2: LISTADO - FICHAS DE CONVENIOS
   ========================================================================== */
.header-listado {
    margin-bottom: 35px;
}
.header-listado h2 {
    font-size: 32px;
    color: #1e293b;
    margin: 0 0 8px 0;
}
.header-listado p {
    color: #64748b;
    margin: 0;
    font-size: 16px;
}

.grid-fichas-convenios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 50px;
}

/* La Ficha Individual */
.ficha-convenio {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.ficha-banner {
    height: 30vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Contenedor flotante del logotipo */
.ficha-logo-container {
    position: absolute;
    bottom: -16px;
    left: 20px;
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 10px;
    padding: 0px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.ficha-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ficha-cuerpo {
    padding: 40px 40px 40px 40px; /* Margen superior amplio para no pisar el logo */
    flex-grow: 1;
}

.ficha-cuerpo h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #1e293b;
}

.ficha-resumen {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.ficha-footer {
    padding: 0 40px 40px 40px;
}

.btn-ver-ficha {
    display: block;
    text-align: center;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-ver-ficha:hover {
    background: #2563eb;
}

/* ==========================================================================
   FASE 3: DETALLE DINÁMICO (BLOQUES)
   ========================================================================== */
.detalle-convenio-dinamico {
    /* background: #d91818; */
    padding: 1em 0em 1em 0em;
    /* border-radius: 16px; */
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02); */
    
    
    /* border: 1px solid #e2e8f0;
}

.detalle-convenio-dinamico h1{
    background-color: #00bbff;
    margin: 0;
    padding: 1em;
    text-align: right;
    color: #fff;
    font-size: 2em;
    font-weight: 700;
}


.titulo-principal-convenio {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.titulo-principal-convenio h1 {
    font-size: 38px;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.bajada-resumen {
    font-size: 18px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Estilos de Bloques Dinámicos */
.bloque-dinamico-titulo {
    font-size: 26px;
    color: #1e293b;
    margin: 35px 0 15px 0;
}

.bloque-dinamico-parrafo {
    font-size: 16px;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Bloque Gestor de Documentos (.PDF) */
.bloque-dinamico-documentos {
    /*background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;*/
}
.bloque-dinamico-documentos h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1e293b;
}
.bloque-dinamico-documentos ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bloque-dinamico-documentos li {
    margin-bottom: 12px;
}
.bloque-dinamico-documentos li:last-child {
    margin-bottom: 0;
}
.bloque-dinamico-documentos a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff; /* Color rojo PDF */
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    background-color: #25d366;
    padding: 0.8em 1.8em;
    width: 100%;
    border-radius: 0.7em;
    text-transform: uppercase;
}
.bloque-dinamico-documentos a i {
    font-size: 18px;
}
.bloque-dinamico-documentos a:hover {
    text-decoration: underline;
}

/* Bloque Mapas */
.bloque-ubicacion-maps {
    /* margin-top: 40px; */
    /*border-top: 1px solid #e2e8f0;
    padding-top: 30px; */
    width: 100%;
    /* height: 40vh; */
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
    padding: 1em;
}
.bloque-ubicacion-maps h3 {
    /* font-size: 16px; */
    color: #4893e3;
    margin: 0 0 15px 0;
}
.map-responsive {
    overflow: hidden;
    padding-bottom: 70%; /* Proporción del mapa */
    position: relative;
    height: 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Mensajes de feedback */
.aviso-vacio, .aviso-sin-bloques {
    text-align: center;
    color: #94a3b8;
    padding: 30px;
    font-style: italic;
    grid-column: 1 / -1;
}


/*
.card-publica-cat {
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    color: #334155;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Importante para que la imagen respete las esquinas redondeadas */

}

*/

.cat-banner-bg {
    height: 14em;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-left: 20px;
    margin-bottom: 25px;
    width: 100%;
}

/* Oscurece un poco la imagen de fondo para que resalte más el ícono */
.cat-banner-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #07315d63 50%, #ffffff00 100%);
    display: flex;
    align-items: flex-end;
    /* padding-left: 20px; */
    /* margin-bottom: 25px; */
    width: 100%;
    padding: 0;
    margin: 0;
}

.cat-icono-wrapper {
    width: 60px;
    height: 60px;
    background: #fff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    /* bottom: -20px; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    margin: 1em auto 2em auto;
}

.card-publica-body {
    padding: 1em 0em 0em 0em;
    /* flex-grow: 1; */
    display: flex;
    flex-direction: column;
    width: 100%;
    /* background-color: red; */
    position: relative;
    box-sizing: border-box;
    margin: 1em 0em;
}



.convenio-publico-header {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3em;
}

.convenio-main-banner {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.convenio-publico-header h1 {
    background-color: #4893e3;
    margin: 0em 0em;
    padding: 1em;
    color: #fff;
    text-align: right;
}

.convenio-main-logo {
    position: absolute;
    bottom: -40px;
    left: 40px;
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    z-index: 3;
}

.convenio-main-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.convenio-info-principal {
    /* padding: 1em 1em 2em 2em; */ /* Margen superior amplio para compensar el logo flotante */
    display: flex;
    gap: 2%;
    /* background-color: #efefef59; */
}

.convenio-info-principal h1 {
    font-size: 32px;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.convenio-resumen-nativo {
    font-size: 0.9em;
    line-height: 1.7;
    color: #475569;
    background-color: #f1f5f9;
    padding: 2em;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    /* margin-bottom: 20px; */
    width: 70%;
}


.convenio-tags {
    font-size: 0.8em;
    font-weight: 700;
    color: #64748b;
    /* display: inline-flex; */
    align-items: center;
    gap: 6px;
    width: 100%;
    background-color: #ebebeb14;
    padding: 0.7em 0.8em;
    box-sizing: border-box;
    border-bottom: solid #4893e3 1px;
    margin-bottom: 3em;
    /* float: right; */
    text-align: right;
}

.convenio-tags span {
    font-weight:400;
    float: left;
}

.badge-cat-doc {
    font-size: 11px;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
}



/****/





.turismo-container{
            max-width: 1300px;
            margin: 1em auto;
            padding: 0em;
            /* font-family: 'Helvetica Neue', Arial, sans-serif; */
            width: 100%;
            background-color: #fbfbfb;
            border-radius: 0.8em;
        }


        
        /* Layout de dos columnas */
        .layout-v2 {display: flex;gap: 2%;margin-top: 20px;}
        .col-principal { width: 70%; display: flex; flex-direction: column; gap: 15px; }
        .col-lateral { width: 30%; }

        /* HEADER */
        .header-v2 h1 {
            /* font-size: 34px; */
            color: var(--primary);
            margin: 0 0 0.1em 0;
            line-height: 1.4em;
            background-color: #f7f7f7;
        }


        .meta-location { color: #64748b; font-size: 16px; margin-bottom: 25px; }

        /* ESTRUCTURA DEL ACORDEÓN (ESTILO LUXSTAR / TEMPLATEMONSTER) */
        .accordion-item { background: white; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.01); }
        
        .accordion-header { 
            width: 100%; background: white; padding: 18px 22px; text-align: left;
            font-size: 18px; font-weight: 600; color: var(--primary); border: none;
            display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.2s;
        }
        .accordion-header:hover { background: #f8fafc; }
        .accordion-header i { transition: transform 0.3s; color: var(--secondary); }
        
        /* Contenido colapsable animado */
        .accordion-content { max-height: 0;  transition: max-height 0.3s ease-out; background: white; }
        .accordion-body-inner { padding: 25px; border-top: 1px solid #f1f5f9; }
        
        .accordion-body-inner h1{
            
        }

        .accordion-body-inner h2{  
            /* background-color: red; */ 
            padding: 0.5em 1em 0.5em 0em; 
            font-size: 2.1em;  
            font-weight: 700;
            letter-spacing: -2px;
        }

        .accordion-body-inner h3{
            
        }

        .accordion-body-inner-boton1, .accordion-body-inner-boton2{
            display: flex;
            /* flex-wrap: wrap; */
            gap: 3%;
            justify-content: center;
            padding: 1em;
        }

        .subcontent-subtabs_tabs {
            line-height: 1.6em;
            text-align: justify;
        }

        .accordion-body-inner-boton1 a, .accordion-body-inner-boton2 a{
            background-color: #25d366;
            padding: 0em;
            margin: 0;
            width: 100%;
            text-align: center;
            padding: 1em;
            color: #fff;
            font-weight: 700;
            text-transform: uppercase;
            border-radius: 0.4em;
            transition: 250ms all ease-in-out;
        }

        .accordion-body-inner-boton2 a{
            background-color: #4893e3;
        }

        .accordion-body-inner-boton1 a:hover, .accordion-body-inner-boton2 a:hover{
            background-color: #4893e3;
        }


        /* Estado Abierto (Gestionado por JS) */
        .accordion-item.active .accordion-content { max-height: 2000px; transition: max-height 0.5s ease-in; }
        .accordion-item.active .accordion-header { background: #f1f5f9; }
        .accordion-item.active .accordion-header i { transform: rotate(180px); }

        /* RENDER DE BLOQUES INTERNOS */
        .block-parrafo { 
            line-height: 1.7em; 
            color: #475569; 
            padding: 0.8em; 
        }

        .block-servicios-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }

        .accordion-body-inner h3 {
            /* font-size: 34px; */
            color: var(--primary);
            margin: 0 0 0.6em 0;
            line-height: 1.4em;
            
        }


        p{
            line-height: 1.3em;
            text-align: justify;
        }

        .block-parrafo ul {
            /* font-size: 1.0em; */
            color: #475569;
            margin-left: 2em;
            line-height: 1.4em;
        }

        .block-parrafo li {
            /* font-size: 1.0em; */
            color: #475569;
        }
        





        .service-item { background: #f8fafc; padding: 12px; border-radius: 8px; text-align: center; border: 1px solid #e2e8f0; }
        .service-item i { display: block; font-size: 22px; color: var(--secondary); margin-bottom: 5px; }
        
        /* FORMULARIO DE TURISMO (ESTILO PREMIUM LUXSTAR) */
        .form-booking-container { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 30px; margin-top: 0px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
        .form-booking-container h3 { margin-top: 0; color: var(--primary); font-size: 22px; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; margin-bottom: 20px; }
        .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .form-group { display: flex; flex-direction: column; gap: 6px; }
        .form-group.full-width { grid-column: span 2; }
        .form-group label { font-size: 14px; font-weight: 600; color: #475569; }
        .form-group input, .form-group select, .form-group textarea { padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 15px; outline: none; transition: 0.2s; }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1); }
        .btn-submit-form { background: var(--primary); color: white; border: none; padding: 14px; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s; margin-top: 10px; width: 100%; }
        .btn-submit-form:hover { background: #172554; }

        /* SIDEBAR STICKY RESUMEN */
        /*.sticky-sidebar { position: sticky; top: 20px; background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border-left: 4px solid var(--secondary); }*/
        .sticky-sidebar { position: sticky; top: 20px; }
        

        .contact-card {background: white;padding: 2em;border-radius: 15px;box-shadow: 0 4px 20px rgba(0,0,0,0.05);border-top: 5px solid var(--secondary); font-size: 0.9em;}
        .contact-card h3 { margin-top: 0; color: var(--primary); line-height: 1.9em; }
        .btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 10px; background: #25d366; color: white; padding: 0.8em; border-radius: 8px; text-decoration: none; font-weight: bold; margin-top: 20px; transition: 0.3s; }
        .btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); }

        p{
            line-height: 1.6em;
            text-align: justify;
        }



        .subtab-btn-subtabs_tabs {
            
        }


        .subtab-btn-subtabs_tabs button{
            
        }

        @media(max-width: 768px){
            .layout-v2 { flex-direction: column; }
            .col-principal, .col-lateral { width: 100%; }
            .form-grid { grid-template-columns: 1fr; }
            .form-group.full-width { grid-column: span 1; }
        }


