/*
Theme Name: Canarias en Salsa
Theme URI: https://canariasensalsa.com
Author: Social Event Canarias
Author URI: https://canariasensalsa.com
Description: Tema oficial y nativo para el festival Canarias en Salsa. Diseño profesional Geometric Balance, ultra rápido, optimizado para SEO, multiidioma y 100% responsivo sin necesidad de Elementor ni plugins pesados.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.7
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: canarias-en-salsa
Tags: festival, event, responsive-layout, custom-colors, custom-logo, translation-ready
*/

:root {
  --ces-primary: #fe964d;
  --ces-secondary: #ffda58;
  --ces-dark: #111827;
  --ces-gray-bg: #f9fafb;
  --ces-text: #1f2937;
  --ces-muted: #6b7280;
  --ces-border: #e5e7eb;
}

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

body {
  font-family: 'Berthold Block', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ces-text);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .ces-brand-font {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ces-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .ces-container {
    padding: 0 2.5rem;
  }
}

/* Header */
.ces-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ces-border);
  height: 72px;
  display: flex;
  align-items: center;
}

.ces-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ces-custom-logo-container img {
  max-height: 52px;
  width: auto;
  display: block;
}

.ces-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ces-primary), var(--ces-secondary));
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(254, 150, 77, 0.25);
}

.ces-lang-pills {
  display: flex;
  background: #f3f4f6;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
}

.ces-lang-btn {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #4b5563;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.2s;
}

.ces-lang-btn:hover {
  color: #111827;
}

.ces-lang-btn.active {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ces-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.ces-social-icon:hover {
  background: #111827;
  color: #ffffff;
}

/* Hero Section (100% Imagen, sin vídeo) */
.ces-hero {
  color: #ffffff;
  padding: 5.5rem 0 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.ces-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ces-hero-slogan {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.ces-hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  max-width: 680px;
  margin: 0 auto 2rem auto;
  opacity: 0.95;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.ces-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ces-btn {
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.ces-btn-primary {
  background-color: #ffffff;
  color: #111827;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.ces-btn-primary:hover {
  background-color: #f9fafb;
  transform: translateY(-1px);
}

.ces-btn-outline {
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 2px solid #ffffff;
  backdrop-filter: blur(4px);
}

.ces-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
.ces-section {
  padding: 4.5rem 0;
}

.ces-section-title {
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.ces-section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 45px;
  height: 4px;
  background-color: var(--ces-primary);
}

.ces-section-title.yellow-accent::after {
  background-color: var(--ces-secondary);
}

/* About Grid */
.ces-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .ces-about-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.ces-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.ces-card {
  background: #ffffff;
  border: 1px solid var(--ces-border);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid var(--ces-primary);
}

.ces-metrics {
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
}

.ces-metric-number {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--ces-primary);
}

/* Events List */
.ces-event-card {
  background: #ffffff;
  border: 1px solid var(--ces-border);
  border-left: 4px solid var(--ces-primary);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ces-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.ces-event-card.alt-accent {
  border-left-color: var(--ces-secondary);
}

.ces-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.ces-badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.ces-badge-success {
  background: #dcfce7;
  color: #15803d;
}

.ces-btn-gradient {
  background: linear-gradient(135deg, var(--ces-primary), var(--ces-secondary));
  color: #111827;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.ces-btn-gradient:hover {
  opacity: 0.92;
}

/* Punto Violeta & Sustainability */
.ces-banner-box {
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--ces-border);
  margin-bottom: 1.5rem;
}

.ces-violeta-box {
  background: #faf5ff;
  border-color: #f3e8ff;
}

.ces-sustainability-box {
  background: #f0fdf4;
  border-color: #dcfce7;
}

/* Sponsors */
.ces-sponsors-section {
  text-align: center;
  margin-bottom: 2rem;
}

.ces-sponsors-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.ces-sponsor-logo-item img {
  max-height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.ces-sponsor-logo-item img:hover {
  opacity: 1;
}

.ces-sponsor-text-item {
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  color: #e5e7eb;
  letter-spacing: 0.05em;
}

/* Footer */
.ces-footer {
  background: #111827;
  color: #d1d5db;
  padding: 3rem 0 1.5rem 0;
  border-top: 1px solid #1f2937;
  font-size: 0.8rem;
}

.ces-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1f2937;
}

@media (min-width: 768px) {
  .ces-footer-grid {
    grid-template-columns: 5fr 4fr 3fr;
  }
}

.ces-footer-links {
  list-style: none;
}

.ces-footer-links li {
  margin-bottom: 0.5rem;
}

.ces-footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.ces-footer-links a:hover {
  color: #ffffff;
}
