/* styles.css - Versión Premium Completa */
:root {
  --primary-color: #beb237a6; /* Púrpura elegante */
  --secondary-color: #3949ab; /* Azul profundo */
  --accent-color: #ff4081; /* Rosa chic */
  --gold-accent: #d4af37; /* Toques dorados */
  --light-bg: #fafafa;
  --dark-text: #263238;
  --light-text: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* Efecto de textura de mármol sutil */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 70% 30%, rgba(94, 53, 177, 0.02) 0%, transparent 25%),
    radial-gradient(circle at 30% 70%, rgba(255, 64, 129, 0.02) 0%, transparent 25%);
  background-size: 300px 300px;
  z-index: -1;
  opacity: 0.5;
}

/* Header de lujo */
header {
  background: linear-gradient(rgba(166, 114, 9, 0.9), rgba(57, 73, 171, 0.9)), 
              url('https://d22fxaf9t8d39k.cloudfront.net/c044c42d9605020de725f9a5b5f9bb5e04f016d98da5dffa3d8ec45d00c7d75c32621.png') center/60% auto;
  /* El resto del código permanece igual */
  color: var(--light-text);
  text-align: center;
  padding: 8rem 2rem;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  margin-bottom: 5rem;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23fafafa" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23fafafa" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23fafafa"/></svg>') bottom center no-repeat;
  background-size: cover;
}

/* Tipografía premium */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark-text);
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-accent);
}

h2 {
  font-size: 2.8rem;
  margin: 4rem 0 2.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 3px;
  background: var(--gradient);
}

h3 {
  font-size: 2.2rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--primary-color);
}

h4 {
  font-size: 1.6rem;
  margin: 1.5rem 0;
  color: var(--secondary-color);
}

/* Contenedor principal con bordes dorados */
.container {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 3rem;
  position: relative;
}

.container::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--gold-accent), rgba(212, 175, 55, 0.3)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* Secciones premium */
.info-section {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 4rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gold-accent);
}

.info-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Galería de imágenes de lujo */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.img-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 16/9;
}

.img-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(94, 53, 177, 0.3), rgba(57, 73, 171, 0.3));
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.img-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.img-card:hover::before {
  opacity: 1;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.img-card:hover img {
  transform: scale(1.1);
}

.img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  font-size: 1.1rem;
  z-index: 2;
  transform: translateY(100%);
  transition: var(--transition);
}

.img-card:hover .img-caption {
  transform: translateY(0);
}

/* Botones premium */
.premium-button {
  background: var(--gradient);
  color: white;
  padding: 1.3rem 3.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 5px 20px rgba(94, 53, 177, 0.3);
  position: relative;
  overflow: hidden;
}

.premium-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(30deg);
  transition: var(--transition);
}

.premium-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(94, 53, 177, 0.4);
}

.premium-button:hover::after {
  left: 100%;
}

/* Línea de Tiempo Premium */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--gold-accent), var(--accent-color));
  border-radius: 10px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 80px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 80px;
}

.timeline-content {
  padding: 30px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
  border-left: 4px solid var(--gold-accent);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: white;
  border: 4px solid var(--gold-accent);
  border-radius: 50%;
  top: 20px;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.timeline-item:nth-child(odd)::after {
  right: -15px;
}

.timeline-item:nth-child(even)::after {
  left: -15px;
}

.timeline-date {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(94, 53, 177, 0.3);
}

.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.timeline-desc {
  color: var(--dark-text);
  line-height: 1.7;
}

/* Footer de lujo */
footer {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  text-align: center;
  padding: 6rem 2rem 4rem;
  margin-top: 8rem;
  position: relative;
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

footer::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%235e35b1" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%235e35b1" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%235e35b1"/></svg>') bottom center no-repeat;
  background-size: cover;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.social-links a {
  color: var(--light-text);
  font-size: 1.8rem;
  transition: var(--transition);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  color: var(--gold-accent);
  transform: translateY(-5px) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 3.2rem;
  }
  
  h2 {
    font-size: 2.4rem;
  }
  
  .info-section {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 1.5rem;
    margin: 3rem auto;
  }
  
  .img-gallery {
    grid-template-columns: 1fr;
  }
  
  header {
    padding: 6rem 1.5rem;
    min-height: 500px;
  }
  
  /* Responsive para línea de tiempo */
  .timeline::before {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 18px;
  }
  
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 18px;
  }
}

/* Animaciones sutiles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-section, .img-gallery, .timeline {
  animation: fadeInUp 0.8s ease-out forwards;
}

.info-section:nth-child(2) {
  animation-delay: 0.2s;
}

.img-gallery {
  animation-delay: 0.4s;
}

.timeline {
  animation-delay: 0.6s;
}
/* Controles TTS - Versión Premium */
#tts-controls {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

/* Botón principal */
#listen-btn {
  background: linear-gradient(135deg, #5e35b1, #3949ab);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(94, 53, 177, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#listen-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(94, 53, 177, 0.4);
}

#listen-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Estado activo */
#listen-btn.active {
  background: linear-gradient(135deg, #ff4081, #e91e63);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 64, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
  }
}

/* Controles secundarios */
#tts-controls > div {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

#tts-controls.active > div {
  opacity: 1;
  transform: translateY(0);
}

#tts-controls .audio-button {
  background: rgba(94, 53, 177, 0.1);
  color: #5e35b1;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(94, 53, 177, 0.2);
}

#tts-controls .audio-button:hover {
  background: #5e35b1;
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  #tts-controls {
    bottom: 20px;
    right: 20px;
  }
  
  #listen-btn {
    padding: 12px 22px;
    font-size: 1rem;
  }
  
  #tts-controls .audio-button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}