:root {
  --primary: #02b5a8;
  --primary-dark: #029a8f;
  --accent: #ff4d4f;
  --dark: #0e1a2b;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  color: var(--dark);
}

a { text-decoration: none; color: var(--primary); transition: all 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--dark);
  font-weight: 800;
  font-size: 1.4rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.5px;
}

.brand-logo { 
  height: 50px; 
  width: auto; 
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-logo {
  transform: scale(1.1) rotate(-3deg);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}

nav a {
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-primary { 
  background: var(--primary); 
  color: #fff; 
  box-shadow: 0 4px 14px 0 rgba(2, 181, 168, 0.4); 
}
.btn-primary:hover { 
  background: var(--primary-dark); 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(2, 181, 168, 0.6);
}

.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.btn-outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--dark); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--primary); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-white:hover { background: #f8fafc; transform: translateY(-2px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* --- Forms & Contacts --- */
.page-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--gray);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.info-card {
  background: var(--dark);
  color: #fff;
  padding: 40px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.info-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.info-content h4 { color: #fff; margin-bottom: 5px; font-size: 1.1rem; }
.info-content p, .info-content a { color: #cbd5e1; font-size: 0.95rem; margin: 0; }
.info-content a:hover { color: #fff; }

.form-card {
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 0.95rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  transition: color 0.3s;
}

.form-control {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8fafc;
  color: var(--dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(2, 181, 168, 0.1);
}

.form-control:focus + i, .input-with-icon:focus-within i {
  color: var(--primary);
}

textarea.form-control {
  padding: 20px;
  min-height: 150px;
  resize: vertical;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero .slider, .hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 26, 43, 0.9) 0%, rgba(14, 26, 43, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: inline-block;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Sections --- */
.section-padding { padding: 80px 0; }
.bg-light { background: var(--light); }
.text-center { text-align: center; }

.section-header { margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-tag {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}

.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--gray); }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-bottom-color: var(--primary);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: #e6fffa;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px;
}

.service-time {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-content h2 { font-size: 3rem; margin-bottom: 24px; }
.rich-text { margin-bottom: 32px; color: #475569; font-size: 1.1rem; }

.split-image { position: relative; }
.split-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}
.image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: 20px;
  z-index: 1;
}

/* News */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.news-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  color: inherit;
  border: 1px solid rgba(226, 232, 240, 0.8);
  height: 100%;
}

.news-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  border-color: var(--primary);
}

.news-image {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.news-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.6s ease; 
}

.news-card:hover .news-image img { transform: scale(1.1); }

.placeholder-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3rem;
}

.news-date {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-content { 
  padding: 30px; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
}

.news-content h3 { 
  font-size: 1.4rem; 
  margin-bottom: 16px; 
  line-height: 1.3;
  color: var(--dark);
  transition: color 0.2s;
}

.news-card:hover .news-content h3 { color: var(--primary); }

.news-content p { 
  color: #64748b; 
  font-size: 1rem; 
  line-height: 1.7;
  margin-bottom: 24px; 
  flex: 1; 
}

.read-more { 
  font-weight: 700; 
  color: var(--primary); 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 0.95rem;
  margin-top: auto;
}

.read-more i { transition: transform 0.3s; }
.news-card:hover .read-more i { transform: translateX(5px); }

/* Media Section */
.dark-section { background: var(--dark); color: #fff; }
.dark-section h2 { color: #fff; }
.media-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }

.featured-video {
  background: #1e293b;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.video-info { padding: 24px; }
.live-badge { color: #ef4444; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.live-badge i { animation: pulse 1.5s infinite; }

.video-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 12px;
  align-items: center;
}

.video-thumb {
  width: 100px;
  height: 60px;
  background: #000;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.video-thumb iframe { opacity: 0.5; pointer-events: none; width: 100%; height: 100%; }
.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  z-index: 2;
}

.video-details h4 { color: #fff; font-size: 0.95rem; margin-bottom: 4px; font-weight: 600; }
.watch-now { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* Ticker */
.ticker-section { background: var(--primary); color: #fff; padding: 12px 0; }
.ticker-content { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.95rem; }
.ticker-label { font-weight: 700; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 4px; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 80px 0 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-col { max-width: 300px; }
.brand-footer { color: #fff; font-size: 1.5rem; font-weight: 800; display: flex; flex-direction: column; align-items: flex-start; }

.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s;
}
.socials a:hover { background: var(--primary); transform: translateY(-3px); }

.site-footer h4 { color: #fff; margin-bottom: 24px; font-size: 1.1rem; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-links i { font-size: 0.7rem; color: var(--primary); }

.footer-card {
  background: rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.copyright { padding: 30px 0; font-size: 0.9rem; }

/* Floating Elements */
.floating-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: var(--dark);
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(255,255,255,0.1);
}
.floating-btn:hover { background: #000; color: #fff; transform: translateY(-2px); }

/* WhatsApp Floating Button - UPDATED */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #20bd5a;
  color: #fff;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Audio Player */
.audio-player {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  background: rgba(14, 26, 43, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
  z-index: 95;
  width: 90%;
  max-width: 400px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-content {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.min-label {
  display: none;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.min-label i {
  color: var(--primary);
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

/* Minimized State */
.audio-player.min {
  width: auto;
  min-width: 220px; /* Ancho suficiente para el texto */
  padding: 10px 24px;
  justify-content: space-between;
  border-radius: 50px;
  background: rgba(14, 26, 43, 1);
  border: 1px solid var(--primary);
  box-shadow: 0 0 15px rgba(2, 181, 168, 0.3); /* Glow effect */
}

.audio-player.min .player-content,
.audio-player.min .min-note {
  display: none;
}

.audio-player.min .min-label {
  display: flex;
}

.audio-player.min .toggle i {
  transform: rotate(180deg);
}

.toggle {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.toggle:hover { color: #fff; }

.min-note {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .split-layout { grid-template-columns: 1fr; gap: 40px; }
  .split-image { order: -1; }
  .media-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }
  
  .nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }
  
  .nav a {
    font-size: 0.85rem;
    padding: 5px 0;
  }

  .hero-title { font-size: 2.5rem; }
  .cards, .services-grid, .news-grid { grid-template-columns: 1fr; }
  .section-header-flex { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .floating-btn { padding: 12px; border-radius: 50%; }
}
