/**
 * Tlaxcala-Go - CSS Principal (Modo Offline)
 * Este archivo contiene los estilos base de Tailwind pre-compilados
 * y los estilos personalizados del proyecto
 */

/* ===================================
   PRELOADER - Ocultar contenido hasta que carguen las fuentes
   =================================== */

/* Las fuentes se cargan de forma natural, sin ocultar el contenido */
html body {
    visibility: visible;
}

/* Alternativa: Mostrar pantalla de carga */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-background, #FBFBFB);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    display: none !important;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-primary, #6A1B9A);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Dark mode preloader */
.dark .preloader {
    background: #1a1a2e;
}

/* ===================================
   TAILWIND CSS BASE (Reset y utilidades esenciales)
   =================================== */

*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

::before, ::after {
    --tw-content: '';
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    line-height: inherit;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

abbr:where([title]) {
    text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b, strong {
    font-weight: bolder;
}

code, kbd, samp, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, select {
    text-transform: none;
}

button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

ol, ul, menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

dialog {
    padding: 0;
}

textarea {
    resize: vertical;
}

input::placeholder, textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
}

button, [role="button"] {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
}

img, video {
    max-width: 100%;
    height: auto;
}

[hidden] {
    display: none;
}

/* ===================================
   VARIABLES CSS (Colores del tema)
   =================================== */

:root {
    --color-primary: #6A1B9A;
    --color-secondary: #009688;
    --color-accent: #CDDC39;
    --color-background: #FBFBFB;
    --color-text-main: #4A148C;
    --color-text-muted: #64748b;
    --color-white: #FFFFFF;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 10px -1px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 10px 30px -5px rgba(106, 27, 154, 0.1);
    --tlaxcala-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l15 30-15 30L15 30z' fill='%236A1B9A' fill-opacity='0.01' fill-rule='evenodd'/%3E%3Cpath d='M0 30l15-15 15 15-15 15z' fill='%23009688' fill-opacity='0.01' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Dark mode variables */
.dark {
    --color-background: #1a1a2e;
    --color-text-main: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-card-bg: #16213e;
    --color-border: #2d3748;
}

/* ===================================
   UTILIDADES DE LAYOUT
   =================================== */

.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0 { flex-shrink: 0; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Position */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-full { top: 100%; }
.top-1\/2 { top: 50%; }
.top-\[190px\] { top: 190px; }
.left-3 { left: 0.75rem; }
.-translate-y-1\/2 { --tw-translate-y: -50%; transform: translateY(var(--tw-translate-y)); }
.-translate-y-1 { --tw-translate-y: -0.25rem; transform: translateY(var(--tw-translate-y)); }

/* Z-Index */
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

/* ===================================
   ESPACIADO (Margin & Padding)
   =================================== */

/* Margin */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.ml-auto { margin-left: auto; }
.ml-64 { margin-left: 16rem; }

/* Padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-24 { padding-bottom: 6rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-4 { padding-right: 1rem; }
.pt-\[76px\] { padding-top: 76px; }

/* ===================================
   DIMENSIONES
   =================================== */

/* Width */
.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }

/* Height */
.h-4 { height: 1rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-44 { height: 11rem; }
.h-48 { height: 12rem; }
.h-24 { height: 6rem; }
.h-\[1px\] { height: 1px; }
.h-\[calc\(100vh-190px\)\] { height: calc(100vh - 190px); }

/* Min/Max */
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.min-w-full { min-width: 100%; }
.min-w-\[72px\] { min-width: 72px; }
.min-w-\[85vw\] { min-width: 85vw; }
.min-w-\[280px\] { min-width: 280px; }
.w-\[280px\] { width: 280px; }
.min-w-\[100px\] { min-width: 100px; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }

/* ===================================
   TIPOGRAFIA
   =================================== */

.font-display { font-family: 'Inter', sans-serif; }
.font-serif { font-family: 'Playfair Display', serif; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-\[10px\] { font-size: 10px; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-normal { white-space: normal; }
.align-middle { vertical-align: middle; }

/* ===================================
   COLORES DE TEXTO
   =================================== */

.text-white { color: #FFFFFF; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-text-main { color: var(--color-text-main); }
.text-text-muted { color: var(--color-text-muted); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-orange-500 { color: #f97316; }
.text-yellow-700 { color: #a16207; }
.text-blue-700 { color: #1d4ed8; }

/* ===================================
   COLORES DE FONDO
   =================================== */

.bg-white { background-color: #FFFFFF; }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500 { background-color: #22c55e; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-500 { background-color: #ef4444; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-purple-600 { background-color: #9333ea; }
.bg-slate-700 { background-color: #334155; }

/* Colores con opacidad */
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-white\/50 { background-color: rgba(255, 255, 255, 0.5); }
.bg-primary\/5 { background-color: rgba(106, 27, 154, 0.05); }
.bg-primary\/10 { background-color: rgba(106, 27, 154, 0.1); }
.bg-secondary\/10 { background-color: rgba(0, 150, 136, 0.1); }
.bg-accent\/20 { background-color: rgba(205, 220, 57, 0.2); }

/* ===================================
   BORDES
   =================================== */

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-r { border-right-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-green-200 { border-color: #bbf7d0; }
.border-green-300 { border-color: #86efac; }
.border-red-200 { border-color: #fecaca; }
.border-red-300 { border-color: #fca5a5; }
.border-yellow-300 { border-color: #fde047; }
.border-blue-300 { border-color: #93c5fd; }
.rounded { border-radius: 12px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ===================================
   SOMBRAS
   =================================== */

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-primary\/20 { box-shadow: 0 4px 6px -1px rgba(106, 27, 154, 0.2); }

/* ===================================
   EFECTOS Y TRANSICIONES
   =================================== */

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.opacity-0 { opacity: 0; }
.opacity-30 { opacity: 0.3; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Prevenir parpadeo de iconos */
.material-symbols-outlined {
    font-display: block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



/* ===================================
   OVERFLOW Y SCROLL
   =================================== */

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.scroll-smooth { scroll-behavior: smooth; }

/* ===================================
   INTERACTIVIDAD
   =================================== */

.cursor-pointer { cursor: pointer; }
.cursor-grab { cursor: grab; }
.cursor-grabbing { cursor: grabbing; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

/* ===================================
   RESPONSIVE
   =================================== */

@media (min-width: 640px) {
    .sm\:block { display: block; }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:gap-6 { gap: 1.5rem; }
    .md\:gap-12 { gap: 3rem; }
    .md\:min-w-\[280px\] { min-width: 280px; }
    .md\:pb-0 { padding-bottom: 0; }
    .md\:pt-\[190px\] { padding-top: 190px; }
    .md\:h-64 { height: 16rem; }
    .md\:p-6 { padding: 1.5rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:justify-end { justify-content: flex-end; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: hidden; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:p-10 { padding: 2.5rem; }
}

/* ===================================
   HOVER STATES
   =================================== */

.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-primary:hover { background-color: var(--color-primary); }
.hover\:bg-primary\/5:hover { background-color: rgba(106, 27, 154, 0.05); }
.hover\:bg-primary\/90:hover { background-color: rgba(106, 27, 154, 0.9); }
.hover\:bg-secondary:hover { background-color: var(--color-secondary); }
.hover\:bg-accent:hover { background-color: var(--color-accent); }
.hover\:bg-green-600:hover { background-color: #16a34a; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-purple-700:hover { background-color: #7e22ce; }
.hover\:bg-red-500:hover { background-color: #ef4444; }
.hover\:text-white:hover { color: #FFFFFF; }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:text-text-main:hover { color: var(--color-text-main); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.hover\:shadow-hover:hover { box-shadow: var(--shadow-hover); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:underline:hover { text-decoration: underline; }

/* ===================================
   FOCUS STATES
   =================================== */

.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--color-secondary); }
.focus\:ring-primary:focus { --tw-ring-color: var(--color-primary); }
.focus\:ring-secondary:focus { --tw-ring-color: var(--color-secondary); }
.focus\:border-primary:focus { border-color: var(--color-primary); }

/* ===================================
   GROUP HOVER
   =================================== */

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible { visibility: visible; }
.group:hover .group-hover\:bg-primary { background-color: var(--color-primary); }
.group:hover .group-hover\:bg-secondary { background-color: var(--color-secondary); }
.group:hover .group-hover\:bg-accent { background-color: var(--color-accent); }
.group:hover .group-hover\:text-white { color: #FFFFFF; }
.group:hover .group-hover\:text-primary { color: var(--color-primary); }
.group:hover .group-hover\:shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.group:hover .group-hover\:-translate-y-1 { transform: translateY(-0.25rem); }

.invisible { visibility: hidden; }

/* ===================================
   DIVIDE
   =================================== */

.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; }
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: #f3f4f6; }

/* ===================================
   SPACE
   =================================== */

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* ===================================
   ESTILOS PERSONALIZADOS TLAXCALA-GO
   =================================== */

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-main);
    -webkit-tap-highlight-color: transparent;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #F1F5F9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 10px;
}

/* No scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Drag scroll */
.drag-scroll {
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

.drag-scroll:active {
    cursor: grabbing;
}

/* Card white */
.card-white {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: var(--shadow-soft);
}

/* Editorial styles */
.editorial-separator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

@media (min-width: 768px) {
    .editorial-separator {
        scroll-margin-top: 210px;
    }
}

.editorial-line {
    flex: 1;
    height: 1px;
    /* Color configurable via inline style desde admin */
}

.editorial-title {
    /* Fuente, tamaño y color configurables via inline style desde admin */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* ===================================
   HERO CAROUSEL & CAPTION
   =================================== */

.carousel-caption {
    position: relative;
    z-index: 20;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    color: var(--color-white);
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.carousel-caption-content {
    max-width: 900px;
    width: 100%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tablet adaptive styling */
@media (max-width: 1024px) {
    .carousel-caption-content {
        max-width: 80%;
        padding: 2.5rem;
    }
}

/* Mobile adaptive styling */
@media (max-width: 640px) {
    .carousel-caption-content {
        max-width: 95%;
        padding: 1.5rem;
        border-radius: 1.5rem;
        background: rgba(0, 0, 0, 0.4); /* Solider background for readability on small screens */
    }
}

/* Sidebar */
#menu-lateral {
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#menu-lateral.collapsed {
    width: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    border-right: none;
}

/* Badge verified */
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
}

/* WhatsApp button */
.btn-whatsapp {
    background-color: #22c55e;
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 150ms;
}

.btn-whatsapp:hover {
    background-color: #16a34a;
}

/* ===================================
   DARK MODE
   =================================== */

.dark body {
    background-color: #1a1a2e;
    color: #e2e8f0;
}

.dark .card-white {
    background: #16213e;
    border-color: #2d3748;
}

.dark header,
.dark aside,
.dark nav#nav-footer {
    background: rgba(22, 33, 62, 0.95) !important;
    border-color: #2d3748 !important;
}

.dark .bg-white,
.dark .bg-white\/95 {
    background: rgba(22, 33, 62, 0.95) !important;
}

.dark .text-text-main,
.dark .text-primary {
    color: #e2e8f0;
}

.dark .text-text-muted {
    color: #94a3b8;
}

.dark input,
.dark select,
.dark textarea,
.dark .bg-gray-50 {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark .hover\:bg-gray-100:hover,
.dark .hover\:bg-gray-50:hover {
    background: #334155 !important;
}

.dark .border-gray-100,
.dark .border-gray-200 {
    border-color: #2d3748;
}

.dark .bg-primary\/10,
.dark .bg-secondary\/10,
.dark .bg-accent\/20 {
    background: rgba(106, 27, 154, 0.2);
}

.dark .editorial-line {
    background-color: #374151;
}

.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark .text-gray-900 {
    color: #e2e8f0 !important;
}

.dark .text-gray-600,
.dark .text-gray-500 {
    color: #94a3b8 !important;
}

.dark .text-gray-700 {
    color: #cbd5e1 !important;
}

.dark .text-gray-400 {
    color: #64748b !important;
}

/* Admin panel dark mode - cards y fondos */
.dark .bg-gray-100 {
    background-color: #334155 !important;
}

.dark .bg-gray-200 {
    background-color: #475569 !important;
}

/* Admin panel dark mode - sidebar */
.dark aside {
    background-color: #16213e !important;
}

.dark aside .text-gray-600 {
    color: #94a3b8 !important;
}

.dark aside .hover\:bg-gray-50:hover {
    background-color: #1e293b !important;
}

/* Admin panel dark mode - tablas */
.dark table thead {
    background-color: #1e293b !important;
}

.dark table tbody tr:hover {
    background-color: #1e293b !important;
}

.dark .divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: #334155;
}

/* Admin panel dark mode - formularios con mejor contraste */
.dark input::placeholder,
.dark textarea::placeholder {
    color: #64748b !important;
}

.dark label {
    color: #cbd5e1 !important;
}

.dark .border-gray-300 {
    border-color: #475569 !important;
}

/* Admin panel dark mode - file inputs */
.dark input[type="file"] {
    color: #94a3b8 !important;
}

.dark .file\:bg-primary\/10,
.dark .file\:bg-secondary\/10,
.dark .file\:bg-gray-100 {
    background-color: #334155 !important;
}

/* Admin panel dark mode - estados */
.dark .bg-green-100 {
    background-color: rgba(34, 197, 94, 0.2) !important;
}

.dark .bg-orange-100 {
    background-color: rgba(249, 115, 22, 0.2) !important;
}

.dark .bg-red-100 {
    background-color: rgba(239, 68, 68, 0.2) !important;
}

.dark .bg-yellow-100 {
    background-color: rgba(234, 179, 8, 0.2) !important;
}

.dark .bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.2) !important;
}

/* Admin panel dark mode - paginación y botones secundarios */
.dark .border-gray-300 {
    border-color: #475569 !important;
}

.dark .hover\:bg-gray-50:hover {
    background-color: #1e293b !important;
}

/* Admin panel dark mode - checkboxes */
.dark input[type="checkbox"] {
    background-color: #1e293b !important;
    border-color: #475569 !important;
}

.dark input[type="checkbox"]:checked {
    background-color: var(--color-primary) !important;
}

/* Admin panel dark mode - fondo principal */
.dark .bg-gray-50 {
    background-color: #0f172a !important;
}

/* Admin panel dark mode - espacios dentro de tarjetas */
.dark .space-y-6 > .bg-white {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Admin panel dark mode - select dentro de tablas (estados) */
.dark select.bg-green-100,
.dark select.bg-orange-100,
.dark select.bg-red-100 {
    background-color: transparent !important;
}

/* Admin panel dark mode - campos específicos generados dinámicamente */
.dark #campos-especificos-container {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.dark #campos-especificos input[type="text"],
.dark #campos-especificos input[type="number"],
.dark #campos-especificos input[type="date"],
.dark #campos-especificos input[type="time"],
.dark #campos-especificos input[type="url"],
.dark #campos-especificos select,
.dark #campos-especificos textarea {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

.dark #campos-especificos label {
    color: #cbd5e1 !important;
}

.dark #campos-especificos .bg-gray-100 {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* ===================================
   ZOOM CURSOR HANDLERS
   =================================== */

.cursor-zoom-in {
    cursor: zoom-in !important;
}

.cursor-zoom-out {
    cursor: zoom-out !important;
}

/* Efectos hover para botones de zoom */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Transición suave para opacidad */
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

/* FORZAR VISIBILIDAD DEL MODAL DE ZOOM */
#modal-zoom {
    z-index: 99999 !important;
}

#modal-zoom > div:first-child {
    z-index: 100000 !important;
}

#modal-zoom > div:last-child {
    z-index: 100000 !important;
}

#modal-zoom button {
    z-index: 100001 !important;
}

/* Modal de zoom animaciones */
#modal-zoom {
    transition: opacity 0.3s ease-in-out;
}

#modal-zoom img {
    transition: transform 0.3s ease;
}

/* ===================================
   DARK MODE - TARJETAS DE EVENTOS
   =================================== */

.cursor-zoom-in {
    cursor: zoom-in !important;
}

.cursor-zoom-out {
    cursor: zoom-out !important;
}

/* Efectos hover para botones de zoom */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Transición suave para opacidad */
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

/* Modal de zoom animaciones */
#modal-zoom {
    transition: opacity 0.3s ease-in-out;
}

#modal-zoom img {
    transition: transform 0.3s ease;
}

/* ===================================
   DARK MODE - TARJETAS DE EVENTOS
   =================================== */

/* Tarjetas de eventos (Hoy y Próximos) */
.dark .card-white span[style*="color: #1e293b"],
.dark .card-white span[style*="color:#1e293b"] {
    color: #e2e8f0 !important;
}

.dark .card-white span[style*="color: #64748b"],
.dark .card-white span[style*="color:#64748b"] {
    color: #94a3b8 !important;
}

/* Título del evento */
.dark .card-white .text-sm.font-bold.truncate[style*="color: #1e293b"] {
    color: #e2e8f0 !important;
}

/* Fecha y hora */
.dark .card-white .text-\[10px\].font-bold {
    color: #94a3b8 !important;
}

/* Lugar y camada */
.dark .card-white .text-xs.truncate[style*="color: #64748b"],
.dark .card-white .text-xs.font-medium[style*="color: #64748b"] {
    color: #94a3b8 !important;
}

/* Fix general para cualquier texto con color inline en tarjetas dark */
.dark .card-white [style*="color: #1e293b"] {
    color: #e2e8f0 !important;
}

.dark .card-white [style*="color: #64748b"] {
    color: #94a3b8 !important;
}

/* Badges de tipo de evento en dark mode */
.dark .card-white span[style*="background-color: #eff6ff"] {
    background-color: rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
}

.dark .card-white span[style*="background-color: #faf5ff"] {
    background-color: rgba(168, 85, 247, 0.2) !important;
    border-color: #a855f7 !important;
}

.dark .card-white span[style*="background-color: #f0fdfa"] {
    background-color: rgba(20, 184, 166, 0.2) !important;
    border-color: #14b8a6 !important;
}

.dark .card-white span[style*="background-color: #fffbeb"] {
    background-color: rgba(245, 158, 11, 0.2) !important;
    border-color: #f59e0b !important;
}

/* Iconos de tipo de evento */
.dark .card-white div[style*="background-color: #dbeafe"] {
    background-color: rgba(59, 130, 246, 0.2) !important;
}

.dark .card-white div[style*="background-color: #f3e8ff"] {
    background-color: rgba(168, 85, 247, 0.2) !important;
}

.dark .card-white div[style*="background-color: #ccfbf1"] {
    background-color: rgba(20, 184, 166, 0.2) !important;
}

.dark .card-white div[style*="background-color: #fef3c7"] {
    background-color: rgba(245, 158, 11, 0.2) !important;
}

/* Títulos de secciones de eventos - mantener colores originales en dark mode */
.dark .editorial-title[style*="color: #16a34a"] {
    color: #4ade80 !important; /* Verde más brillante para dark mode */
}

/* Border verde de eventos de hoy */
.dark .border-green-400 {
    border-color: #4ade80 !important;
}

/* Fondo de imagen de eventos */
.dark .bg-slate-700 {
    background-color: #334155 !important;
}

/* ===================================
   MODAL 95% PANTALLA
   =================================== */

/* Modal overlay - debe estar sobre TODO */
#modal-detalle {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    display: none;
}

#modal-detalle:not(.hidden) {
    display: block !important;
}

#modal-detalle .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

#modal-detalle .modal-container {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 95vw !important;
    height: 95vh !important;
    max-width: 95vw !important;
    max-height: 95vh !important;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dark #modal-detalle .modal-container {
    background: #16213e;
}

/* Modal body scrolleable */
#modal-detalle .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Imagen principal del modal - FORZAR tamaño máximo */
#modal-detalle #modal-imagen {
    width: 100%;
    height: 12rem !important; /* h-48 = 192px */
    max-height: 16rem !important;
    object-fit: cover;
    border-radius: 1rem;
}

@media (min-width: 768px) {
    #modal-detalle #modal-imagen {
        height: 16rem !important; /* h-64 = 256px */
        max-height: 20rem !important;
    }
}

/* Galería del modal - imágenes que llenan el contenedor */
#modal-detalle #modal-galeria img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 0.75rem;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Contenido del modal - asegurar que no desborde */
#modal-detalle #modal-content {
    max-width: 100%;
    overflow-x: hidden;
}

#modal-detalle #modal-content img {
    max-width: 100%;
}

/* Fix para el grid de galería */
#modal-detalle #modal-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (min-width: 768px) {
    #modal-detalle #modal-galeria {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Fix contacto - evitar que los elementos crezcan demasiado */
#modal-detalle #modal-contacto {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    #modal-detalle #modal-contacto {
        grid-template-columns: repeat(2, 1fr);
    }
}

#modal-detalle #modal-contacto a,
#modal-detalle #modal-contacto button {
    max-width: 100%;
    overflow: hidden;
}

/* Fix SVG dentro del modal - tamaño fijo */
#modal-detalle #modal-contacto svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    flex-shrink: 0;
}

/* Fix para la clase w-5 y h-5 */
.w-5 { width: 1.25rem !important; max-width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; max-height: 1.25rem !important; }

/* Galería contenedores */
#modal-detalle #modal-galeria > div {
    position: relative !important;
    height: 220px !important;
    width: 100% !important;
    background-color: #f3f4f6;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Imagen principal del modal - manejo de errores */
#modal-detalle #modal-imagen {
    background-color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 4rem;
}

/* Asegurar que el sm:col-span-2 funcione */
@media (min-width: 640px) {
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
}

/* ========================================
   TARJETAS DE CONTENIDO - IMÁGENES UNIFORMES
   ======================================== */

/* Contenedor de imagen en tarjetas - escalado uniforme centrado sin desbordamiento */
.card-white .h-44,
.card-white .h-32 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Imagen dentro de tarjetas - escalado uniforme preservando aspect ratio */
.card-white .h-44 > img,
.card-white .h-32 > img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.3s ease;
}

/* Hover effect - escalado uniforme ascendente */
.card-white:hover .h-44 > img,
.card-white:hover .h-32 > img,
.card-white.group:hover .h-44 > img,
.card-white.group:hover .h-32 > img {
    transform: scale(1.05);
}

/* Asegurar que el contenedor no permita desbordamiento */
.card-white .rounded-xl.overflow-hidden {
    overflow: hidden !important;
}

/* Imágenes dentro de tarjetas con clase específica */
.card-white img.object-contain {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

/* ========================================
   HERO LANDING SECTION
   ======================================== */

#hero-landing {
    background-attachment: fixed;
}

/* Animación bounce para scroll indicator */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%) translateX(-50%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0) translateX(-50%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Animación para elementos decorativos */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

#hero-landing .bg-accent\/20 {
    animation: float 6s ease-in-out infinite;
}

#hero-landing .bg-secondary\/30 {
    animation: float 8s ease-in-out infinite reverse;
}

/* Dark mode para Hero */
.dark #hero-landing {
    background: linear-gradient(to bottom right, #1a1a2e, #16213e, #0f3460);
}

.dark #hero-landing .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #1a1a2e, #16213e, #0f3460);
}

/* Fondo de imagen desenfocada para galería */
.gallery-item-container {
    position: relative;
    min-height: 320px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.gallery-item-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(15px);
    transform: scale(1.1);
    opacity: 0.7;
    z-index: 0;
}

.gallery-item-container > img {
    position: relative;
    z-index: 1;
    max-width: 100% !important;
    max-height: calc(320px - 16px) !important;
    width: auto !important;
    height: auto !important;
}

/* Responsive para galería */
@media (max-width: 768px) {
    .gallery-item-container {
        min-height: 280px;
        height: auto;
    }
    
    .gallery-item-container::before {
        filter: blur(12px);
        transform: scale(1.05);
        opacity: 0.6;
    }
    
    .gallery-item-container > img {
        max-height: calc(280px - 16px) !important;
    }
}

@media (max-width: 480px) {
    .gallery-item-container {
        min-height: 240px;
    }
    
    .gallery-item-container > img {
        max-height: calc(240px - 16px) !important;
    }
}

/* Modo oscuro - reducir opacidad del fondo para mejor contraste */
.dark .gallery-item-container::before {
    opacity: 0.4;
    filter: blur(15px) brightness(0.8);
}

.dark .gallery-item-container,
.dark .gallery-item-container::before,
.dark .gallery-item-container::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Responsive ajustes - Hero móvil ocupa toda la pantalla */
@media (max-width: 768px) {
    #hero-landing {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: 100vh;
        height: 100dvh;
    }

    /* Imagen del hero cubre toda la pantalla sin distorsión */
    #hero-landing > img {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        min-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    /* Contenido del hero también ocupa toda la altura */
    #hero-landing > .relative.z-10 {
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }
}
