/*
Theme Name: Ticket to Ride - Liquid Glass
Theme URI: https://tickettoride.com
Author: Custom Theme
Author URI: https://tickettoride.com
Description: Un tema moderno con efectos de vidrio líquido (liquid glass) inspirado en Ticket to Ride. Colores vibrantes amarillo dorado y rojo con efectos glassmorphism.
Version: 1.0
Requires at least: 5.9
Tested up to: 6.4
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: ticket-to-ride-liquid
Tags: elementor, liquid-glass, glassmorphism, modern, custom-colors
*/

/* ===================================
   VARIABLES CSS - COLORES DEL TEMA
   =================================== */
:root {
    /* Colores principales del logo */
    --ttr-yellow: #FFC107;
    --ttr-yellow-dark: #FFA000;
    --ttr-red: #E81F26;
    --ttr-red-dark: #C41E20;
    --ttr-white: #FFFFFF;
    
    /* Efectos liquid glass */
    --glass-bg: rgba(255, 193, 7, 0.1);
    --glass-bg-red: rgba(232, 31, 38, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Tipografía */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Poppins', 'Arial Black', sans-serif;
}

/* ===================================
   RESET Y ESTILOS BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--ttr-yellow) 0%, var(--ttr-yellow-dark) 100%);
    color: #333;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(232, 31, 38, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===================================
   LIQUID GLASS EFFECTS
   =================================== */
.liquid-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: liquid-float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquid-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5%, 5%) rotate(90deg);
    }
    50% {
        transform: translate(0, 10%) rotate(180deg);
    }
    75% {
        transform: translate(-5%, 5%) rotate(270deg);
    }
}

.liquid-glass-red {
    background: rgba(232, 31, 38, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.liquid-glass-yellow {
    background: rgba(255, 193, 7, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===================================
   HEADER STYLES
   =================================== */
.site-header {
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.site-header .liquid-glass {
    padding: 15px 30px;
    margin: 0 20px;
}

.site-logo img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* ===================================
   NAVIGATION
   =================================== */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--ttr-white);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    background: rgba(232, 31, 38, 0.2);
    backdrop-filter: blur(5px);
    transform: translateY(-2px);
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--ttr-red) 0%, var(--ttr-red-dark) 100%);
    color: var(--ttr-white);
    padding: 15px 40px;
    border-radius: 15px;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 31, 38, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 31, 38, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--ttr-yellow) 0%, var(--ttr-yellow-dark) 100%);
    color: #333;
    padding: 15px 40px;
    border-radius: 15px;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px;
    margin: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5);
}

/* ===================================
   CONTAINERS
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--ttr-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 3rem;
    margin-bottom: 18px;
}

h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ===================================
   ELEMENTOR CUSTOMIZATION
   =================================== */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-heading);
}

.elementor-section {
    position: relative;
}

.elementor-section.liquid-glass-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: var(--ttr-white);
    padding: 40px 0;
    margin-top: 80px;
}

.site-footer a {
    color: var(--ttr-yellow);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ttr-red);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Ocultar botón de menú móvil */
.mobile-menu-toggle {
    display: none !important;
}

/* Header responsive */
.site-header .main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-logo {
    flex: 0 0 auto;
}

.header-cta {
    flex: 0 0 auto;
    margin-left: auto;
}

/* ===================================
   TABLET - 1024px y menor
   =================================== */
@media (max-width: 1024px) {
    /* Header */
    .site-header .liquid-glass {
        padding: 15px 20px;
        margin: 0 10px;
    }
    
    .site-logo img {
        max-height: 60px;
    }
    
    /* Botones */
    .btn-primary, .btn-secondary {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    /* Contenedores */
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    /* Secciones */
    .section {
        padding: 60px 0;
    }
    
    /* Cards */
    .card, .depth-card, .glass-panel {
        padding: 25px;
        margin: 15px;
    }
}

/* ===================================
   MÓVIL - 768px y menor
   =================================== */
@media (max-width: 768px) {
    /* Tipografía */
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* Header */
    .site-header {
        padding: 15px 0;
    }
    
    .site-header .liquid-glass {
        padding: 12px 15px;
        margin: 0 5px;
        border-radius: 15px;
    }
    
    .site-header .main-navigation {
        gap: 15px;
    }
    
    .site-logo img {
        max-height: 50px;
    }
    
    /* Botones */
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .btn-primary::before, .btn-secondary::before {
        display: none;
    }
    
    /* Cards y contenedores */
    .card, .depth-card, .glass-panel {
        margin: 10px 5px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .liquid-glass {
        border-radius: 15px;
        padding: 20px;
    }
    
    /* Secciones */
    .section {
        padding: 40px 0;
    }
    
    /* Contenedores */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Footer */
    .site-footer {
        padding: 30px 0;
        margin-top: 50px;
    }
    
    .footer-widgets {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        width: 100%;
    }
    
    /* Animaciones más suaves en móvil */
    .liquid-glass::before,
    .glass-panel::before {
        animation-duration: 8s;
    }
}

/* ===================================
   MÓVIL PEQUEÑO - 480px y menor
   =================================== */
@media (max-width: 480px) {
    /* Tipografía extra pequeña */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 14px;
    }
    
    /* Header compacto */
    .site-header {
        padding: 10px 0;
    }
    
    .site-header .liquid-glass {
        padding: 10px;
        margin: 0;
        border-radius: 12px;
    }
    
    .site-header .main-navigation {
        gap: 10px;
    }
    
    .site-logo img {
        max-height: 40px;
    }
    
    /* Botones pequeños */
    .btn-primary, .btn-secondary {
        padding: 8px 16px;
        font-size: 12px;
        white-space: nowrap;
        border-radius: 8px;
    }
    
    .header-cta a {
        padding: 8px 16px !important;
    }
    
    /* Cards compactas */
    .card, .depth-card, .glass-panel {
        margin: 5px 0;
        padding: 15px;
        border-radius: 12px;
    }
    
    .liquid-glass {
        padding: 15px;
        border-radius: 12px;
    }
    
    /* Contenedor ajustado */
    .container {
        padding: 0 10px;
    }
    
    /* Secciones reducidas */
    .section {
        padding: 30px 0;
    }
    
    /* Footer compacto */
    .site-footer {
        padding: 20px 0;
        margin-top: 30px;
        font-size: 13px;
    }
    
    .footer-widgets {
        gap: 20px;
    }
    
    /* Desactivar efectos pesados en móviles pequeños */
    .bubble-background,
    .droplet-effect {
        display: none;
    }
    
    /* Reducir blur en móviles para mejor performance */
    .liquid-glass,
    .glass-panel,
    .frosted-glass {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

/* ===================================
   LANDSCAPE MÓVIL
   =================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .site-header .liquid-glass {
        padding: 8px 15px;
    }
    
    .site-logo img {
        max-height: 35px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 25px 0;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.text-red {
    color: var(--ttr-red);
}

.text-yellow {
    color: var(--ttr-yellow);
}

.bg-red {
    background: var(--ttr-red);
}

.bg-yellow {
    background: var(--ttr-yellow);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}
