* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #0f172a;
  --white: #ffffff;
  --gray: #f1f5f9;
  --whatsapp: #25d366;
  --back-home: #1e3a8a;
}

html,
body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Partículas */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: float 25s infinite;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-duration: 25s;
}

.particle:nth-child(2) {
  width: 120px;
  height: 120px;
  left: 30%;
  animation-duration: 30s;
  animation-delay: 5s;
}

.particle:nth-child(3) {
  width: 60px;
  height: 60px;
  left: 50%;
  animation-duration: 22s;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  width: 100px;
  height: 100px;
  left: 70%;
  animation-duration: 28s;
  animation-delay: 8s;
}

.particle:nth-child(5) {
  width: 40px;
  height: 40px;
  left: 90%;
  animation-duration: 20s;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10%,
  90% {
    opacity: 0.2;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Wrapper principal */
.main-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header: Logo centrado arriba */
.header-section {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-container {
  display: inline-block;
  margin-bottom: 1.5rem;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.logo-container img {
  max-width: 350px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

.header-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contenido principal: 2 columnas */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  flex: 1;
  align-items: center;
  margin-bottom: 2rem;
}

/* Panel de contacto (izquierda) */
.contact-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  animation: fadeInLeft 1s ease 0.3s both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-panel h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-panel h3 i {
  color: var(--accent);
}

.contact-panel>p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.contact-btn i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* WhatsApp */
.contact-btn.whatsapp i {
  background: var(--whatsapp);
}

/* BOTÓN VOLVER AL INDEX - NUEVO ESTILO */
.contact-btn.back-home i {
  background: var(--back-home);
  color: var(--primary-dark);
}

.contact-btn.back-home:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--back-home);
}

/* Ubicación */
.contact-btn.location i {
  background: rgba(255, 255, 255, 0.2);
}

.contact-btn div strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-btn div span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Panel de contador (derecha) */
.countdown-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  animation: fadeInRight 1s ease 0.5s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.countdown-panel h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.countdown-panel h3 i {
  color: var(--accent);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 1.5rem 0.5rem;
  transition: transform 0.3s;
}

.countdown-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.countdown-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.progress-section {
  margin-top: 1.5rem;
}

.progress-section>p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, var(--white), var(--primary-light));
  border-radius: 10px;
  animation: progressPulse 2s ease-in-out infinite;
  position: relative;
}

@keyframes progressPulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

.progress-text {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--white);
  font-weight: 600;
}

/* Footer */
.footer-section {
  text-align: center;
  padding-top: 1rem;
  animation: fadeInUp 1s ease 0.7s both;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-section>p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 968px) {
  .main-wrapper {
    padding: 1.5rem;
  }

  .header-text h1 {
    font-size: 2rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  .logo-container img {
    max-width: 250px;
  }

  /* En mobile: apilar verticalmente */
  .content-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-panel,
  .countdown-panel {
    padding: 1.5rem;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .countdown-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .header-text h1 {
    font-size: 1.6rem;
  }

  .contact-btn {
    padding: 0.875rem 1rem;
  }

  .contact-btn i {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-item {
    padding: 1rem 0.25rem;
  }

  .countdown-number {
    font-size: 1.5rem;
  }
}