@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/*
Theme Name: Theme TTC v3
Theme URI: https://tenerifeturboclub.com
Description: Tema profesional modular para Tenerife Turbo Club - Dark mode, responsive, optimizado (funcionalidades en plugins independientes)
Author: Tenerife Turbo Club
Author URI: https://tenerifeturboclub.com
Version: 3.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: themettcv3
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, automotive, dark-theme, club, events
*/

/* ============================================
   VARIABLES CSS - TEMA TENERIFE TURBO CLUB
   ============================================ */

:root {
    /* Colores base */
    --background: #1a1a1a;        /* Fondo general más oscuro */
    --foreground: #ededed;
    
    /* Header colors - para combinar con el logo */
    --header-bg: #030706;         /* Color de fondo del logo (coincide con logo-ttc2.jpg) */
    --header-logo-bg: #030706;    /* Color de fondo del logo */

    /* footer colors */
    --footer-bg: #100f10;         /* Color de fondo del footer */
    
    /* Paleta de marca */
    --brand: #e11d2f;        /* Rojo principal */
    --brand-600: #c8102e;    /* Rojo hover */
    --brand-700: #a50e27;    /* Rojo activo */
    --blue-ttc: #2563eb;     /* Azul del logo R5 */
    
    /* Colores de interfaz */
    --ink: #0a0a0a;          /* Negro */
    --muted: #6b7280;        /* Gris texto secundario */
    --surface: #121212;      /* Fondo cards */
    --border: #1f2937;       /* Bordes */
    --ring: #374151;         /* Anillos de foco */
    
    /* Colores de estado */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Bordes redondeados */
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    /* Gradientes */
    --gradient-dark: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(10,10,10,0.9));
    --gradient-card: linear-gradient(to right, rgba(17,24,39,0.5), rgba(31,41,55,0.5));
    --gradient-header: linear-gradient(to bottom, #030706, #1a1a1a);

    --font-heading: 'Bebas Neue', sans-serif;
    --font-subheading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* ============================================
   TIPOGRAFÍAS
   ============================================ */

/* Importar fuentes de Google */


/* ============================================
   RESET Y ESTILOS GLOBALES
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background) !important;
    color: var(--foreground) !important;
    font-family: var(--font-body), serif !important;
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
}

/* Headings con Bebas Neue */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading), serif !important;
    letter-spacing: 0.05em;
    font-weight: 400;
    color: var(--foreground);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Enlaces */
a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand);
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   LAYOUT
   ============================================ */

.site-content {
    min-height: calc(100vh - 200px);
}

/* Contenedor principal */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    background: var(--header-bg);
    border-bottom: 3px solid var(--brand);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

.site-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.site-logo a {
    display: block;
}

.main-navigation {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Menú UL base generado por WordPress */
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.main-menu li {
    display: inline-block;
}

.main-navigation a {
    font-family: var(--font-subheading), serif;
    color: var(--foreground);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a.active,
.main-navigation .current-menu-item > a {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--footer-bg);
    border-top: 3px solid var(--brand);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-logo img {
    height: 80px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-info {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-info p {
    margin: 0.5rem 0;
}

.footer-info a {
    color: var(--muted);
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: var(--brand);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.footer-social a {
    color: var(--muted);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--brand);
}

/* ============================================
   COMPONENTES REUTILIZABLES
   ============================================ */

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-family: var(--font-subheading), serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--brand);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-600);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(225, 29, 47, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--foreground);
    border: 2px solid var(--muted);
}

.btn-secondary:hover {
    border-color: var(--brand);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--brand);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

/* Alertas */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: var(--success);
    color: white;
}

.alert-warning {
    background: var(--warning);
    color: white;
}

.alert-danger {
    background: var(--danger);
    color: white;
}

.alert-info {
    background: var(--info);
    color: white;
}

/* ============================================
   UTILIDADES
   ============================================ */

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   RESPONSIVE - MEJORADO PARA TABLETS E IPAD
   ============================================ */

/* Tablets en landscape y iPad Air (820px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .main-navigation {
        gap: 1rem;
    }
    
    .main-navigation a {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* iPad Air específico (820px x 1180px) */
@media (max-width: 820px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .site-logo img {
        height: 50px;
    }
    
    .main-navigation {
        gap: 0.75rem;
    }
    
    .main-navigation a {
        font-size: 0.8rem;
        padding: 0.5rem 0.5rem;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
}

/* Tablets pequeñas y móviles grandes (hasta 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        gap: 0;
    }
    
    .main-navigation.active {
        display: flex;
    }
    
    /* Estilos para el menú UL generado por WordPress */
    .main-navigation .main-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .main-navigation .main-menu li {
        display: block;
        width: 100%;
    }
    
    .main-navigation a {
        display: block;
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        font-size: 0.9rem;
    }
    
    .site-logo img {
        height: 45px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .footer-logos {
        gap: 1.5rem;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Móviles (hasta 480px) */
@media (max-width: 480px) {
    .site-logo img {
        height: 40px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    
    .footer-logo img {
        height: 50px;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   WORDPRESS CORE
   ============================================ */

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* ============================================
   PAGELAYER OVERRIDES
   ============================================ */

.pagelayer-row {
    max-width: 100% !important;
}

/* Asegurar que los elementos de PageLayer respetan el tema oscuro */
.pagelayer-ele {
    color: inherit;
}

/* Fix para PageLayer en tablets */
@media (max-width: 1024px) {
    .pagelayer-col-12 {
        width: 100% !important;
    }
}

/* ============================================
   ROW TWO BUTTONS - Mantener botones en línea
   ============================================ */

.row-two-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px;
    align-items: stretch;
    max-width: 800px;
    margin: 0 auto;
}

.row-two-buttons .pagelayer-col-6 {
    flex: 1 1 50% !important;
    min-width: 0 !important;
}

.row-two-buttons .pagelayer-col-holder {
    display: flex;
    align-items: center;
    height: 100%;
}

.row-two-buttons .pagelayer-btn {
    width: 100%;
}

.row-two-buttons .pagelayer-btn-holder {
    width: 100%;
    display: block;
    text-align: center !important;
    padding: 16px 24px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.row-two-buttons .pagelayer-btn-text {
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .row-two-buttons {
        gap: 10px;
        max-width: 100%;
    }
    
    .row-two-buttons .pagelayer-btn-holder {
        padding: 14px 16px !important;
        font-size: 16px !important;
        white-space: nowrap;
    }
    
    .row-two-buttons .pagelayer-btn-text {
        font-size: 16px !important;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .row-two-buttons {
        gap: 8px;
    }
    
    .row-two-buttons .pagelayer-btn-holder {
        padding: 12px 12px !important;
        font-size: 14px !important;
    }
    
    .row-two-buttons .pagelayer-btn-text {
        font-size: 14px !important;
    }
}

/* ============================================
   CUADRO DE INSCRIPCIONES - Márgenes
   ============================================ */

.ttc-status-box {
    margin: 20px !important;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .ttc-status-box {
        margin: 15px !important;
    }
}

@media (max-width: 480px) {
    .ttc-status-box {
        margin: 10px !important;
    }
}
