/*
Theme Name:   Penca Oratorios
Theme URI:    https://pencadelosoratorios.com.uy
Description:  Child theme para Penca de los Oratorios — FIFA World Cup 2026. Basado en Hello Elementor.
Author:       BuzIT
Author URI:   https://buzit.com.uy
Template:     hello-elementor
Version:      1.0.0
Text Domain:  penca-oratorios
Tags:         custom-background, custom-logo, custom-menu, elementor
*/

/* ============================================================
   DESIGN TOKENS — FIFA WC26 IDENTITY
   Primary:   #C9A84C  (Dorado oficial)
   Secondary: #0A0A0A  (Negro profundo)
   Accent:    #E8C96A  (Dorado claro hover)
   Bg:        #111111  (Near-black body)
   Surface:   #1A1A1A  (Cards / secciones)
   Border:    #2A2A2A  (Bordes sutiles)
   Text:      #FFFFFF  (Texto principal)
   Muted:     #888888  (Texto secundario)
   ============================================================ */

/* ============================================================
   1. RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #111111;
    color: #FFFFFF;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   2. TIPOGRAFÍA GLOBAL
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1;
    color: #FFFFFF;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(48px, 8vw, 88px); }
h2 { font-size: clamp(36px, 5vw, 56px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: 24px; }
h5 { font-size: 20px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; }
h6 { font-size: 16px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; }

p {
    color: #CCCCCC;
    line-height: 1.7;
    margin-bottom: 1em;
}

a {
    color: #C9A84C;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #E8C96A;
}

strong, b {
    font-weight: 700;
    color: #FFFFFF;
}

/* ============================================================
   3. LAYOUT GLOBAL
   ============================================================ */
.site-wrapper,
.page-wrapper {
    background-color: #111111;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 900px;
}

/* ============================================================
   4. ELEMENTOR — OVERRIDES GENERALES
   ============================================================ */

/* Fondo de secciones por defecto */
.elementor-section {
    background-color: transparent;
}

/* Texto en widgets */
.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
    color: #CCCCCC;
    font-size: 15px;
    line-height: 1.7;
}

/* Headings en widgets */
.elementor-widget-heading .elementor-heading-title {
    line-height: 1;
    letter-spacing: 1.5px;
}

/* Dividers */
.elementor-widget-divider .elementor-divider-separator {
    border-color: #2A2A2A;
}

/* ============================================================
   5. BOTONES GLOBALES
   ============================================================ */
.elementor-button,
.elementor-button-wrapper .elementor-button,
button,
input[type="submit"],
input[type="button"] {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Botón primario (dorado) */
.elementor-button.elementor-size-md {
    font-size: 16px;
    padding: 13px 24px;
}

/* ============================================================
   6. FORMULARIOS WP / LOGIN OVERRIDE
   ============================================================ */

/* Página de login de WordPress */
body.login {
    background-color: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

body.login #login {
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

body.login h1 a {
    background-image: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #C9A84C;
    text-indent: 0;
    width: auto;
    height: auto;
    letter-spacing: 2px;
    text-decoration: none;
}

body.login h1 a::before {
    content: 'PENCA ORATORIOS';
}

body.login label {
    color: #888888;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Barlow', sans-serif;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    background: #0A0A0A;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    color: #FFFFFF;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    width: 100%;
    box-shadow: none;
    transition: border-color 0.2s;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
    border-color: #C9A84C;
    box-shadow: none;
    outline: none;
}

body.login input[type="submit"],
body.login .button-primary {
    background: #C9A84C;
    border: none;
    border-radius: 8px;
    color: #0A0A0A;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: none;
    text-shadow: none;
}

body.login input[type="submit"]:hover,
body.login .button-primary:hover {
    background: #E8C96A;
    color: #0A0A0A;
}

body.login .forgetmenot label {
    color: #888888;
    font-size: 12px;
}

body.login #nav a,
body.login #backtoblog a {
    color: #888888;
    font-size: 12px;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #C9A84C;
}

/* ============================================================
   7. SHORTCODES DEL PLUGIN penca-wc2026
   ============================================================ */

/* Contenedor general de shortcodes */
.penca-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tabla de ranking */
.penca-ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: #1A1A1A;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2A2A2A;
}

.penca-ranking-table th {
    background: #0A0A0A;
    color: #888888;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 16px;
    text-align: left;
}

.penca-ranking-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: #CCCCCC;
}

.penca-ranking-table tr:last-child td {
    border-bottom: none;
}

.penca-ranking-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.penca-ranking-table .current-user td {
    background: rgba(201,168,76,0.06);
}

/* Posiciones en ranking */
.penca-pos {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}
.penca-pos-1 { background: #C9A84C; color: #0A0A0A; }
.penca-pos-2 { background: #888888; color: #0A0A0A; }
.penca-pos-3 { background: #2A2A2A; color: #FFFFFF; }
.penca-pos-n { color: #888888; }

/* Cards de partido */
.penca-match-card {
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.penca-match-card.penca-closed {
    opacity: 0.55;
}

.penca-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.penca-team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
}

.penca-score-input {
    width: 44px;
    height: 44px;
    background: #0A0A0A;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #FFFFFF;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.penca-score-input:focus {
    border-color: #C9A84C;
    background: rgba(201,168,76,0.08);
}

/* Status pills */
.penca-status {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
}
.penca-status-open  { background: rgba(39,174,96,0.15);  color: #27AE60; }
.penca-status-closed{ background: rgba(136,136,136,0.1); color: #888888; }
.penca-status-live  { background: rgba(192,57,43,0.15);  color: #E74C3C; }

/* Puntos earned */
.penca-pts {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #C9A84C;
    background: rgba(201,168,76,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Formulario de registro */
.penca-register-form input[type="text"],
.penca-register-form input[type="email"],
.penca-register-form input[type="password"] {
    background: #0A0A0A;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    color: #FFFFFF;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    width: 100%;
    transition: border-color 0.2s;
}

.penca-register-form input:focus {
    border-color: #C9A84C;
    outline: none;
}

.penca-register-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-family: 'Barlow', sans-serif;
}

/* Save bar sticky (pronósticos) */
.penca-save-bar {
    position: sticky;
    bottom: 0;
    background: rgba(17,17,17,0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid #2A2A2A;
    padding: 12px 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

/* Badge "26" decorativo */
.penca-wc26-mark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 120px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(201,168,76,0.15);
    letter-spacing: -6px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* ============================================================
   8. NAVEGACIÓN
   ============================================================ */
.elementor-nav-menu .elementor-nav-menu--main .elementor-item {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #888888;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.15s, background-color 0.15s;
}

.elementor-nav-menu .elementor-nav-menu--main .elementor-item:hover,
.elementor-nav-menu .elementor-nav-menu--main .elementor-item.elementor-item-active {
    color: #C9A84C;
    background-color: rgba(255,255,255,0.05);
}

/* ============================================================
   9. ACCORDION / FAQ
   ============================================================ */
.elementor-accordion .elementor-accordion-item {
    background: #1A1A1A;
    border: 1px solid #2A2A2A !important;
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
}

.elementor-accordion .elementor-tab-title {
    background: #1A1A1A;
    color: #FFFFFF;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 18px;
    border: none !important;
    cursor: pointer;
}

.elementor-accordion .elementor-tab-title.elementor-active {
    color: #C9A84C;
}

.elementor-accordion .elementor-tab-content {
    background: #1A1A1A;
    color: #888888;
    font-size: 13px;
    line-height: 1.7;
    padding: 0 18px 14px;
    border-top: 1px solid #2A2A2A !important;
}

.elementor-accordion .elementor-accordion-icon {
    color: rgba(201,168,76,0.5);
}

.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon {
    color: #C9A84C;
}

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .penca-match-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }

    .penca-save-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    h1 { font-size: 52px; }
    h2 { font-size: 36px; }
}

@media (max-width: 480px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        padding: 0 16px;
    }
}

/* ============================================================
   11. UTILIDADES
   ============================================================ */
.text-gold  { color: #C9A84C !important; }
.text-muted { color: #888888 !important; }
.text-white { color: #FFFFFF !important; }
.bg-dark    { background-color: #1A1A1A !important; }
.bg-black   { background-color: #0A0A0A !important; }
.border-gold{ border-color: #C9A84C !important; }

.font-heading   { font-family: 'Bebas Neue', sans-serif !important; }
.font-condensed { font-family: 'Barlow Condensed', sans-serif !important; }

.label-upper {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #C9A84C;
}

.divider-gold {
    border: none;
    border-top: 1px solid rgba(201,168,76,0.25);
    margin: 32px 0;
}
