/*
Theme Name: GoTango
Theme URI: https://gotango.com.ar/
Author: GoTango
Description: Tema clásico, liviano y responsive para GoTango.com.ar. Desactiva Gutenberg para entradas, páginas y tipos de contenido personalizados.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: gotango
*/

:root {
    --gt-primary: #b3261e;
    --gt-primary-dark: #8f1e18;
    --gt-secondary: #171717;
    --gt-text: #222;
    --gt-muted: #667085;
    --gt-light: #f6f4f1;
    --gt-border: #e5e7eb;
    --gt-white: #fff;
    --gt-bg: #f7f8fa;
    --gt-max: 1180px;
    --gt-radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--gt-text); background: var(--gt-white); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--gt-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(calc(100% - 40px), var(--gt-max)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--gt-border); background: var(--gt-white); position: relative; z-index: 20; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-branding a { display: inline-flex; align-items: center; font-size: 28px; font-weight: 800; color: var(--gt-secondary); letter-spacing: -.5px; }
.site-branding a:hover { text-decoration: none; }
.main-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 0; }
.main-navigation a { color: var(--gt-secondary); font-weight: 600; font-size: 15px; }
.main-navigation a:hover { color: var(--gt-primary); text-decoration: none; }
.site-main { min-height: 60vh; }
.page-header, .entry-header { padding: 55px 0 25px; }
.page-title, .entry-title { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.entry-content { padding-bottom: 60px; }
.entry-content > * { max-width: 900px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height: 1.2; margin-top: 1.8em; }
.button, button, input[type="submit"] { display: inline-block; border: 0; border-radius: 7px; padding: 11px 18px; background: var(--gt-primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.button:hover, button:hover, input[type="submit"]:hover { background: var(--gt-primary-dark); text-decoration: none; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: var(--gt-text); font: inherit; }
.site-footer { margin-top: 50px; padding: 40px 0; background: #171717; color: #ddd; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.widget-area { padding: 45px 0; background: var(--gt-light); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 25px 20px 0; }
.alignright { float: right; margin: 0 0 20px 25px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gt-muted); }

/* Portal de hoteles: interfaz de trabajo, no de sitio público. */
body.gt-hotel-interface { background: var(--gt-bg); }
body.gt-hotel-interface .site-header { box-shadow: 0 1px 0 rgba(0,0,0,.04); }
body.gt-hotel-interface .site-main { min-height: calc(100vh - 77px); }
body.gt-hotel-interface .entry-header { display: none; }
body.gt-hotel-interface .entry-content { padding: 0; max-width: none; }
body.gt-hotel-interface .entry-content > * { max-width: none; }
body.gt-hotel-interface .site-footer { margin-top: 0; padding: 22px 0; }

/* El plugin usa estas clases en login y portal. */
body.gt-hotel-interface .gt-wrap { width: min(calc(100% - 32px), 1180px) !important; max-width: 1180px !important; margin: 0 auto !important; padding: 28px 0 44px !important; font-family: Arial, Helvetica, sans-serif !important; }
body.gt-hotel-interface .gt-card { background: #fff !important; border: 1px solid #e3e6ea !important; border-radius: 10px !important; padding: 22px !important; box-shadow: 0 2px 8px rgba(0,0,0,.035) !important; margin-bottom: 16px !important; }
body.gt-hotel-interface .gt-head { padding: 4px 0 20px !important; }
body.gt-hotel-interface .gt-head small { color: var(--gt-muted) !important; font-size: 12px !important; }
body.gt-hotel-interface .gt-head h1 { font-size: 28px !important; line-height: 1.15 !important; margin: 2px 0 2px !important; }
body.gt-hotel-interface .gt-head p { margin: 0 !important; color: var(--gt-muted) !important; }
body.gt-hotel-interface .gt-head > a { font-weight: 700 !important; font-size: 14px !important; }
body.gt-hotel-interface .gt-card h2 { font-size: 20px !important; line-height: 1.25 !important; margin: 0 0 18px !important; }
body.gt-hotel-interface .gt-card label { color: #34383d !important; font-size: 13px !important; margin: 12px 0 5px !important; }
body.gt-hotel-interface .gt-card input:not([type=checkbox]),
body.gt-hotel-interface .gt-card select,
body.gt-hotel-interface .gt-card textarea { min-height: 44px !important; padding: 10px 12px !important; border-color: #cfd5dc !important; border-radius: 7px !important; }
body.gt-hotel-interface .gt-card input:focus,
body.gt-hotel-interface .gt-card select:focus,
body.gt-hotel-interface .gt-card textarea:focus { outline: 2px solid rgba(179,38,30,.13) !important; border-color: var(--gt-primary) !important; }
body.gt-hotel-interface .gt-btn { min-height: 44px !important; padding: 10px 18px !important; border-radius: 7px !important; background: var(--gt-primary) !important; color: #fff !important; font-size: 15px !important; }
body.gt-hotel-interface .gt-btn:hover { background: var(--gt-primary-dark) !important; }
body.gt-hotel-interface .gt-stats { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 12px !important; margin-bottom: 16px !important; }
body.gt-hotel-interface .gt-stat { background: #fff !important; border: 1px solid #e3e6ea !important; padding: 16px !important; border-radius: 10px !important; }
body.gt-hotel-interface .gt-stat strong { font-size: 22px !important; line-height: 1.2 !important; margin-bottom: 4px !important; }
body.gt-hotel-interface .gt-stat span { color: var(--gt-muted) !important; font-size: 12px !important; }
body.gt-hotel-interface .gt-grid { grid-template-columns: minmax(300px,380px) minmax(0,1fr) !important; align-items: start !important; gap: 16px !important; }
body.gt-hotel-interface .gt-table-wrap { border: 1px solid #e3e6ea !important; border-radius: 8px !important; }
body.gt-hotel-interface .gt-table { font-size: 13px !important; background: #fff !important; }
body.gt-hotel-interface .gt-table th { background: #f7f8fa !important; color: #4b5563 !important; font-size: 11px !important; text-transform: uppercase !important; letter-spacing: .03em !important; font-weight: 700 !important; }
body.gt-hotel-interface .gt-table th, body.gt-hotel-interface .gt-table td { padding: 10px 9px !important; border-bottom: 1px solid #edf0f2 !important; }
body.gt-hotel-interface .gt-table tbody tr:last-child td { border-bottom: 0 !important; }
body.gt-hotel-interface .gt-status { font-size: 11px !important; padding: 3px 7px !important; }
body.gt-hotel-interface .gt-commission-paid { text-align: center !important; font-weight: 800 !important; font-size: 16px !important; color: #18733b !important; }
body.gt-hotel-interface .gt-success { background: #eef8f1 !important; border: 1px solid #cce7d4 !important; color: #176b36 !important; padding: 11px 13px !important; }
body.gt-hotel-interface .gt-error { background: #fff4f4 !important; border: 1px solid #f0caca !important; color: #9a2424 !important; padding: 11px 13px !important; }
body.gt-hotel-interface .gt-login { max-width: 420px !important; margin: 70px auto !important; }
body.gt-hotel-interface .gt-login h1 { font-size: 25px !important; margin-bottom: 7px !important; }
body.gt-hotel-interface .gt-login p { color: var(--gt-muted) !important; }

@media (max-width: 900px) {
    .gt-stats { grid-template-columns: 1fr 1fr !important; }
    body.gt-hotel-interface .gt-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 700px) {
    .container { width: min(calc(100% - 24px), var(--gt-max)); }
    .header-inner { min-height: 64px; align-items: center; }
    .main-navigation ul { gap: 6px 12px; }
    .main-navigation a { font-size: 14px; }
    .gt-stats { grid-template-columns: 1fr 1fr !important; }
    body.gt-hotel-interface .gt-wrap { width: calc(100% - 20px) !important; padding: 16px 0 28px !important; }
    body.gt-hotel-interface .gt-card { padding: 17px !important; }
    body.gt-hotel-interface .gt-head { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
}
@media (max-width: 500px) {
    body.gt-hotel-interface .gt-stats { grid-template-columns: 1fr 1fr !important; }
    body.gt-hotel-interface .gt-stat { padding: 13px !important; }
    body.gt-hotel-interface .gt-stat strong { font-size: 19px !important; }
    body.gt-hotel-interface .gt-table { min-width: 720px !important; }
}


/* =========================================
   SELECTOR DE IDIOMAS
   ========================================= */

.wz-language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wz-language-switcher a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 4px;
    transition: opacity .2s ease, background-color .2s ease;
}

/* Ocultamos el emoji original */
.wz-language-switcher .flag {
    font-size: 0;
    width: 22px;
    height: 16px;
    display: inline-block;
    background-size: 22px 16px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Argentina */
.wz-language-switcher a[href*="es.gotango.com.ar"] .flag {
    background-image: url("https://s.w.org/images/core/emoji/17.0.2/svg/1f1e6-1f1f7.svg");
}

/* Estados Unidos */
.wz-language-switcher a[href*="en.gotango.com.ar"] .flag {
    background-image: url("https://s.w.org/images/core/emoji/17.0.2/svg/1f1fa-1f1f8.svg");
}

/* Código del idioma */
.wz-language-switcher .code {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

/* Hover */
.wz-language-switcher a:hover {
    opacity: .75;
}

/* Idioma activo */
.wz-language-switcher a.active {
    opacity: 1;
}

/* =========================================
   BARRA SUPERIOR
   ========================================= */

.top-language-bar {
    display: flex;
    align-items: center;
}

.top-language-bar > .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

@media (max-width: 768px) {

    .wz-language-switcher {
        gap: 6px;
    }

    .wz-language-switcher a {
        padding: 2px 4px;
    }

    .wz-language-switcher .flag {
        width: 20px;
        height: 14px;
        background-size: 20px 14px;
    }

    .wz-language-switcher .code {
        font-size: 11px;
    }
}

.site-branding img {
    display: block;
    width: 250px;
    height: auto;
}


/* =========================================================
   GOTANGO - PORTADA
   ========================================================= */

.gotango-hero {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    padding: 70px 20px 90px;
    background:
        linear-gradient(
            rgba(255,255,255,.94),
            rgba(255,255,255,.94)
        );
}

.gotango-hero-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================================
   INTRO
   ========================================================= */

.gotango-intro {
    text-align: center;
    margin-bottom: 45px;
}

.gotango-intro h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
}

.gotango-intro p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    opacity: .75;
}


/* =========================================================
   OPCIONES
   ========================================================= */

.gotango-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}


/* =========================================================
   TARJETA
   ========================================================= */

.gotango-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;

    background: #fff;

    border-radius: 12px;

    box-shadow:
        0 8px 30px rgba(0,0,0,.10);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.gotango-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 16px 40px rgba(0,0,0,.16);
}


/* =========================================================
   IMAGEN
   ========================================================= */

.gotango-card-image {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
}

.gotango-card-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 55%,
            rgba(0,0,0,.20)
        );
}

.gotango-card-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.gotango-card:hover .gotango-card-image img {
    transform: scale(1.05);
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.gotango-card-content {
    padding: 27px 30px 30px;
}

.gotango-card-content h2 {
    margin: 0 0 10px;

    font-size: 26px;
    line-height: 1.2;
}

.gotango-card-content p {
    margin: 0 0 20px;

    font-size: 16px;
    line-height: 1.6;

    opacity: .75;
}

.gotango-card-link {
    display: inline-block;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .3px;
}


/* =========================================================
   CABECERA
   ========================================================= */

.site-header {
    position: relative;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.header-inner {
    min-height: 95px;
    display: flex;
    align-items: center;
    position: relative;
}

.site-branding img {
    display: block;
    width: 180px;
    height: auto;
}


/* =========================================================
   IDIOMAS
   ========================================================= */

.top-language-bar {
    margin-left: auto;
}

.top-language-bar > .container {
    padding: 0;
}

.wz-language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wz-language-switcher a {
    display: flex;
    align-items: center;

    padding: 3px;

    text-decoration: none;
    line-height: 1;
}

.wz-language-switcher .flag {
    display: inline-block;

    font-family:
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        sans-serif;

    font-size: 23px;
    line-height: 1;

    transition: transform .2s ease;
}

.wz-language-switcher .code {
    display: none;
}

.wz-language-switcher a:hover .flag {
    transform: scale(1.08);
}


/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.main-navigation {
    margin-left: 35px;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 25px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.main-navigation a {
    text-decoration: none;
    font-size: 15px;
}


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

@media (max-width: 768px) {

    .header-inner {
        min-height: 75px;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-branding img {
        width: 145px;
    }

    .top-language-bar {
        margin-left: auto;
    }

    .main-navigation {
        width: 100%;
        margin: 12px 0 0;
    }

    .main-navigation ul {
        justify-content: center;
        gap: 18px;
    }

    .gotango-hero {
        min-height: auto;
        padding: 50px 16px 65px;
    }

    .gotango-intro {
        margin-bottom: 30px;
    }

    .gotango-intro h1 {
        font-size: 34px;
    }

    .gotango-intro p {
        font-size: 16px;
    }

    .gotango-options {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gotango-card-image {
        height: 260px;
    }

    .gotango-card-content {
        padding: 22px 22px 25px;
    }

    .gotango-card-content h2 {
        font-size: 23px;
    }
}