/* Reset básico y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #1e2229;
    --bg-light: #f4f5f7;
    --accent: #ff9f1c;
    --text-dark: #333333;
    --text-light: #ffffff;
    --card-bg: #ffffff;
}

body {
    /*background-color: var(--bg-light);*/
    background-color: #b9deff;
    color: var(--text-dark);
    line-height: 1.6;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    text-transform: uppercase;
    color: var(--bg-dark);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 10px auto 0 auto;
}

/* Encabezado y Navegación */
.site-header{
    position:relative;
}

header {
    background-color: var(--bg-dark);
    width: 90%;
    margin: auto;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

main {
    width: 90%;
    margin: auto;
    background-color: #FFF;
}



.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.header-image{
    width:100%;
}

.header-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    max-height: 150px;
}

.header-logo {
    background-color: #e5e5e5;
    padding: 10px 20px 10px 20px;
}

.logo {

}

.logo span {

}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

.header-primary-container {
    display:flex;
    align-items:center;
    background-color: #e5e5e5;
}

.header-logo{
    flex-shrink:0;
}

.top-language-bar{
    flex:1;
}

.site-header{
    width:100%;
}

.header-logo{
    width:300px;
    flex-shrink:0;
}

.header-logo img{
    display:block;
    max-width:100%;
    height:auto;
}

.top-language-bar{
    flex:1;
}

.top-language-bar .container{
    display:flex;
    justify-content:flex-end;
}

/* Mobile */
@media (max-width: 768px){

    .site-header{

    }

    .header-primary-container{
        flex-direction:column;
    }

    .header-logo{
        width:100%;
        text-align:center;
    }

    .header-logo img{
        margin:0 auto;
    }

    .top-language-bar{
        width:100%;
    }

    .top-language-bar .container{
        justify-content:center;
    }

    .wz-language-switcher {
        padding: 20px 0px 20px 0px;
    }

}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent);
}


/* Secciones Generales */
section {
    padding: 30px 2rem 30px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}



/* Pie de página moderno con datos de contacto */
footer {
    background-color: var(--bg-dark);
    color: #b0b5c0;
    padding: 3rem 2rem 2rem 2rem;
    font-size: 0.95rem;
    border-top: 2px solid #2d323e;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    flex-wrap: wrap; /* Permite que baje si no hay espacio */
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Iconos vectoriales integrados y limpios */
.footer-icon {
    width: 16px;
    height: 16px;
    fill: var(--accent); /* Color amarillo/naranja industrial para resaltar */
    flex-shrink: 0;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    border-top: 1px solid #2d323e;
    padding-top: 1.5rem;
    color: #707784;
    font-size: 0.85rem;
}

/* Adaptabilidad para pantallas móviles */
@media (max-width: 768px) {
    footer {
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }
    .footer-info {
        flex-direction: column; /* Apila los datos uno abajo del otro */
        gap: 1.2rem;
        align-items: flex-start; /* Los alinea a la izquierda para mejor lectura */
        max-width: 320px; /* Centra el bloque de texto en la pantalla */
        margin: 0 auto;
    }
    .footer-container {
        gap: 1.5rem;
    }
}


/* Adaptabilidad (Responsive - Mobile) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    nav ul li {
        margin: 0.8rem 0;
    }

    h2 {
        font-size: 2rem;
    }
}


/* Botón Flotante de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

/* Configuración del vector interno */
.whatsapp-icon {
    width: 34px;
    height: 34px;
    fill: #ffffff; /* Color blanco absoluto */
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Animación de atención */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Adaptabilidad para pantallas de teléfonos */
@media (max-width: 480px) {
    .whatsapp-btn {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}


/* PAGE RESTAURANTES */

.cpts-page{
    padding:40px 0;
}

.categorias-grid,
.cpts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:24px;
}

.categoria-card,
.cpt-card{
    border:1px solid #ddd;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}

.categoria-card{
    padding:20px;
    text-decoration:none;
}

.cpt-card a{
    text-decoration:none;
    color:inherit;
    display:block;
}

.cpt-imagen img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.cpt-info{
    padding:15px;
}

.cpt-info h3{
    margin:0 0 10px;
}

.cpt-direccion{
    margin:0;
    color:#666;
    font-size:.9rem;
}


/* SINGLE RESTAURANTES */

.single-restaurante .hero-image{
    width:100%;
    height:500px;
    object-fit:cover;
}

.single-restaurante .container{
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

.badges{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.badge{
    padding:6px 12px;
    border-radius:999px;
    text-decoration:none;
}

.galeria-grid,
.relacionados-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
}

.galeria-grid img,
.relacionados-grid img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.horarios-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:15px;
}

.mapa iframe{
    border-radius:12px;
}

.card a{
    text-decoration:none;
    color:inherit;
}


/* SELECTOR DE IDIOMAS */

.top-language-bar{
    padding:8px 0;
}

.top-language-bar .container {
    width: 90%;
    margin: auto;
}

.wz-language-switcher{
    display:flex;
    justify-content:flex-end;
    gap:20px;
    flex-wrap: wrap;
}

.wz-language-switcher a{
    color:#fff;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:6px;
    font-size:14px;
    background-color: #d0d0d0;
}

.wz-language-switcher a:hover{
    opacity:.8;
}

.wz-language-switcher .flag{
    font-size:18px;
}

.wz-language-switcher a{
    color:#000;
    text-decoration:none;
    padding:6px 12px;
    border-radius:6px;
    transition:.2s ease;
}

.wz-language-switcher a.active{
    background:rgba(255,255,255,.25);
    backdrop-filter:blur(4px);
}

.wz-language-switcher a:hover{
    background:rgba(255,255,255,.15);
}


/* Terms icons */

.categoria-card{
    display:flex;
    align-items:center;
    gap:12px;
}

.categoria-card svg{
    width:48px;
    height:48px;
    /*fill:currentColor;*/
}

.categoria-card .icono{
    width:96px;
    height:96px;
    border-radius:50%;
    background:#f2f2f2;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.categoria-card .name {
    font-size: 2rem;
}


/* Taxonomy archive */

.taxonomy-hero{
    padding:60px 0;
    text-align:center;
}

.taxonomy-description{
    max-width:800px;
    margin:20px auto;
}

.taxonomy-count{
    margin-top:15px;
    font-weight:600;
}

.restaurant-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fill,minmax(280px,1fr));
    gap:30px;
}

.restaurant-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
}

.restaurant-thumb img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.restaurant-card h2{
    padding:15px;
    font-size:1.1rem;
}

.pagination{
    margin-top:40px;
    text-align:center;
}

.taxonomy-content .container {
    text-align: center;
}

.taxonomy-title {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
}

.taxonomy-icon{
    width:96px;
    height:96px;
    border-radius:50%;
    background:#f5f7fa;
    border:1px solid #e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.taxonomy-icon svg{
    width:48px;
    height:48px;
}



/* ==========================
   MOBILE OPTIMIZATIONS
   ========================== */

@media (max-width: 768px) {

    body{
        font-size:16px;
    }

    header,
    main{
        width:100%;
    }

    nav{
        z-index:9999;
    }

    section{
        padding:25px 15px;
    }

    .header-container{
        padding:15px;
        position:relative;
    }

    .header-image{
        height:180px;
        overflow:hidden;
    }

    .header-image img{
        height:100%;
        object-fit:cover;
    }

    .logo{
        font-size:1.3rem;
    }

    h1{
        font-size:2rem;
        line-height:1.2;
    }

    h2{
        font-size:1.6rem;
        margin-bottom:1.5rem;
    }

    .cpts-post-content .content{
        font-size:1rem;
    }

    /* Categorías */

    .categorias-grid{
        grid-template-columns:1fr;
        gap:15px;
    }

    .categoria-card{
        padding:15px;
        gap:15px;
    }

    .categoria-card .icono{
        width:64px;
        height:64px;
    }

    .categoria-card svg{
        width:34px;
        height:34px;
    }

    .categoria-card .name{
        font-size:1.2rem;
        line-height:1.3;
    }

    .categorias-grid p{
        margin-top:-5px;
        margin-bottom:10px;
        font-size:.9rem;
    }

    /* Restaurantes */

    .cpts-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .cpt-imagen img{
        height:220px;
    }

    .cpt-info{
        padding:15px;
    }

    .cpt-info h3{
        font-size:1.15rem;
        line-height:1.3;
    }

    .cpt-direccion{
        font-size:.9rem;
    }

    /* Taxonomías */

    .taxonomy-title{
        flex-direction:column;
        gap:12px;
    }

    .taxonomy-icon{
        width:72px;
        height:72px;
    }

    .taxonomy-icon svg{
        width:36px;
        height:36px;
    }

    .restaurant-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .restaurant-thumb img{
        height:220px;
    }

    /* Idiomas */

    .wz-language-switcher{
        justify-content:center;
        gap:10px;
        flex-wrap:wrap;
    }

    .wz-language-switcher a{
        font-size:13px;
        padding:5px 10px;
    }
}

/* Teléfonos pequeños */

@media (max-width: 480px){

    .header-image{
        height:140px;
    }

    h1{
        font-size:1.7rem;
    }

    h2{
        font-size:1.4rem;
    }

    .categoria-card .name{
        font-size:1.05rem;
    }

    .cpt-imagen img,
    .restaurant-thumb img{
        height:190px;
    }
}