@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@900&family=Bitter&display=swap");

:root {
  /* Light Mode - Refined High Contrast Palette */
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --text-muted: #4a4a4a;
  --hero-bg: #f8faff;
  --section-2-bg: #f0f4f8; /* Azul muy pálido */
  --section-3-bg: #ffffff; /* Blanco */
  --section-historia-bg: #f9f9f9; /* Gris casi blanco */
  --section-experiencia-bg: #e9ecef; /* Un gris un poco más oscuro para diferenciar */
  --card-bg: #ffffff;
  --card-text: #1a1a1a;
  --footer-bg: #0a192f;
  --footer-text: #ffffff;
}

body.dark-mode {
  --bg-color: #07072e;
  --text-color: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --hero-bg: #07072e;
  --section-2-bg: #07072ee8;
  --section-3-bg: rgb(16 16 48);
  --section-historia-bg: transparent; /* Mantiene el gradient original en dark */
  --section-experiencia-bg: transparent;
  --card-bg: #ffffff;
  --card-text: #2d3436;
  --footer-bg: #0a192f;
  --footer-text: #ffffff;
}

/* General styles */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hero Section */
.hero-section {
  background-color: var(--hero-bg);
  background-image: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url("imagenes/fondo.png");
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centramos el contenido */
  align-items: center;
  padding: 80px 0px 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

body:not(.dark-mode) .hero-section {
  background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url("imagenes/fondo.png");
}

.content {
  max-width: 1200px;
  width: 100%;
  padding: 0px 10px;
  position: relative;
  z-index: 10; /* Elevado para estar siempre por encima de las olas (z-index 1) */
}

.university-title {
  font-family: "Montserrat", sans-serif;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: center;
}

body.dark-mode .university-title {
  color: white;
}

.subtitle {
  font-family: "Google Sans", sans-serif;
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 30px;
  opacity: 0.9;
}

body.dark-mode .subtitle {
  color: white;
}

/* Forzar que los spans dentro de subtitle también hereden el color */
.subtitle span {
  color: inherit;
}

.futuristic-button {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  margin: 20px auto;
  width: 300px;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(45deg, #0066cc, #0099ff);
  border: none;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.7);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  z-index: 20; /* Asegurar que sea clickeable sobre cualquier capa visual */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Animation styles */
.animated-text {
  display: block;
  /* Titulo adaptable: Mínimo 28px, preferido 6vw, máximo 60px */
  font-size: clamp(28px, 6vw, 60px);
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
}

.animated-text span {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.animated-text span:hover {
  transform: scale(1.3) translateY(-4px);
  color: #0099ff;
}

.wave-animation {
  transform: scale(1.3) translateY(-4px);
  color: #0099ff;
}

.futuristic-button:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: 0.5s;
  z-index: -1;
}

.futuristic-button:hover {
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.9);
  transform: translateY(-3px);
  color: #ffffff;
}

.futuristic-button:hover:before {
  left: 100%;
}

.futuristic-button:active {
  transform: scale(0.98);
  animation: pulse 0.3s linear;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 30px rgba(0, 153, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 153, 255, 1);
  }
  100% {
    box-shadow: 0 0 30px rgba(0, 153, 255, 0.8);
  }
}

.content-two {
  width: 100%;
  line-height: 0;
  position: absolute;
  bottom: -2px;
  left: 0;
  z-index: 1; /* Al fondo absoluto del Hero */
  pointer-events: none;
}

.wave {
  display: block;
  width: 100%;
}

/* Offcanvas theme adaptability */
#menuLateral {
  background: var(--bg-color);
  color: var(--text-color);
  border-right: 1px solid rgba(115, 226, 254, 0.15);
  transition: all 0.3s ease;
}

body.dark-mode #menuLateral {
  background: linear-gradient(180deg, #07072e 0%, #0a192f 100%);
}

#menuLateral .nav-link {
  color: var(--text-color) !important;
  opacity: 0.8;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(115, 226, 254, 0.08);
  transition: color 0.2s ease, padding-left 0.25s ease;
}

#menuLateral .nav-link:hover {
  color: rgb(0, 143, 245) !important;
  padding-left: 10px;
}

body.dark-mode #menuLateral .nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
}

body.dark-mode #menuLateral .nav-link:hover {
  color: rgb(115, 226, 254) !important;
}


#menuLateral .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(115, 226, 254, 0.35);
  color: white;
  border-radius: 8px;
}

#menuLateral .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#menuLateral .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgb(115, 226, 254);
  box-shadow: 0 0 8px rgba(115, 226, 254, 0.35);
  color: white;
}

#menuLateral .btn-outline-light {
  border-color: rgba(115, 226, 254, 0.5);
  color: rgb(115, 226, 254);
}

#menuLateral .btn-outline-light:hover {
  background: rgba(115, 226, 254, 0.15);
  color: white;
}

/* ── Navbar teléfonos/tablets ───────────────────────────────── */
#phoneNavbar {
  background: linear-gradient(90deg, #008ff5 0%, #005fcc 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  position: sticky;            /* para el overlay absoluto y para que se quede arriba */
  top: 0;
  z-index: 1030;
  overflow: hidden;            /* evita que el overlay desborde */
}


/* ── Overlay de búsqueda (lupa) ─────────────────────────────── */
.phone-search-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #005fcc 0%, #0074d9 100%);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  z-index: 10;
  /* Oculto por defecto */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone-search-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.phone-search-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(115, 226, 254, 0.6);
  border-radius: 24px;
  color: white;
  padding: 7px 18px;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.phone-search-input:focus {
  border-color: rgb(115, 226, 254);
  box-shadow: 0 0 14px rgba(115, 226, 254, 0.45);
}

.phone-search-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.phone-search-close:hover { opacity: 1; }

/* barra de busqueda  */
.search-bar {
  position: sticky;
  top: 0;
  z-index: 1000; /* Aumentado para estar por encima del contenido del hero */
}
.navbar {

  background-color: #008ff5;
}
.navbar-light .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: rgb(115, 226, 254) !important;
}

.texto {
  color: white !important;
}

.menu-button {
  padding: 10px;
  background-color: #009688;
  border: none;
  cursor: pointer;
  font-size: 3rem;
}

.menu-list {
  display: none;
  list-style-type: none;
  padding: 5%;
  margin: 0;
}
/* Estilo de la busqueda  */
.busqueda {
  background-color: #ffffff;
  max-width: 190px;
  height: 40px;
  padding: 10px;
  border: 2px solid white;
  border-radius: 10px;
}
.busqueda:focus {
  color: rgb(0, 255, 255);
  outline-color: rgb(0, 255, 255);
  box-shadow: -3px -3px 15px rgb(0, 255, 255);
  transition: 0.1s;
  transition-property: box-shadow;
}
.empezar-busqueda {
  background-color: #ffffff !important;
  color: #757575 !important;
  border-color: rgb(0, 255, 255) !important;
  border-radius: 10px !important;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  font-size: 18px;
  transition: all 0.3s ease;
}
.empezar-busqueda:hover {
  color: #ffffff !important;
  background-color: rgb(0, 255, 255) !important;
  box-shadow: 0 0 10px rgb(0, 255, 255);
}

/* Theme toggle button styling */
.nav-theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(115, 226, 254, 0.4);
  color: white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.nav-theme-toggle:hover {
  background: rgba(115, 226, 254, 0.2);
  border-color: rgb(115, 226, 254);
  transform: scale(1.05);
}

body:not(.dark-mode) .nav-theme-toggle {
  color: #f39c12;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

/* Second Section */
.second-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--section-2-bg);
  color: var(--text-color);
  padding: 60px 20px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.second-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 5vw, 45px);
  margin-bottom: 20px;
}

.second-description {
  max-width: 800px;
  margin: 20px auto;
  font-size: 18px;
}
.card {
  background-color: var(--card-bg) !important;
  color: var(--card-text) !important;
}
.card :hover{
  scale: 1.03;
  transition: 0.3s ease;
}
/* Estilos para los enlaces de los cursos */
.course-link {
  display: inline-block;
  color: var(--card-text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.course-link i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.course-link:hover {
  color: #008ff5;
  transform: translateX(6px);
  text-decoration: none;
}

.course-link:hover i {
  transform: scale(1.2);
}

/* Third Section (Quiénes somos) */
.third-section {
  min-height: 100vh;
  background-color: var(--section-3-bg);
  background-image: url(imagenes/image.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  color: var(--text-color) !important;
  transition: all 0.3s ease;
}

body:not(.dark-mode) .third-section {
    background-image: none;
    color: #000000 !important;
}

body:not(.dark-mode) .third-section .third-title {
    color: #000000 !important;
}

body:not(.dark-mode) .third-section .third-description {
    color: #000000 !important;
}

.third-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 5vw, 45px);
  margin-bottom: 20px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #00ffa9;
  color: #1a1a2e;
  border-radius: 50%;
  font-size: 28px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 169, 0.4);
  margin: 20px auto;
}

.back-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 255, 169, 0.6);
  color: #1a1a2e;
}

/* Media Queries */
@media screen and (min-width: 2500px) {
  .wave {
    height: 700px !important;
  }
}
@media screen and (min-width: 1200px) {
  .wave {
    height: 40vh;
  }
}

@media screen and (max-width: 768px) {
  .hero-section, .third-section, .historia, .experiencia {
    background-attachment: scroll !important;
  }
  
  .hero-section {
    padding: 60px 0px 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .wave {
    height: 100px !important;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  #unimana {
    font-size: 24px !important;
  }

  .futuristic-button {
    width: 250px;
    font-size: 16px;
    padding: 12px 25px;
  }
}
/*subir el tamaño de unimana-title en tablets y telefonos*/
@media screen and (min-width: 350px) {
  .unimana-title {
    font-size: 30px !important;
  }
}
/*bajar el tamaño de unimana-title en pantallas muy pequeñas*/
@media screen and (max-width: 290px) {
  .unimana-title {
    display: none !important;
  }
}

/* Historia Section */
.historia {
  min-height: 70vh;
  background: linear-gradient(135deg, rgba(7, 7, 46, 0.97) 0%, rgba(16, 16, 48, 0.98) 50%, rgba(0, 25, 60, 0.97) 100%), url('imagenes/fondo.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  transition: background 0.3s ease;
}

body:not(.dark-mode) .historia {
  background: var(--section-historia-bg);
}

body:not(.dark-mode) .historia .third-title {
    color: #000000 !important; /* Forzar negro en modo claro */
}

body:not(.dark-mode) .historia-subtitle {
  color: var(--text-muted);
}

body:not(.dark-mode) .historia-card p {
    color: var(--text-color) !important;
}

.historia-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  color: rgb(115, 226, 254);
  margin-top: 12px;
  letter-spacing: 0.5px;
}

.historia-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 143, 245, 0.3);
  border-left: 4px solid #008ff5;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 143, 245, 0.1);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.3s ease;
}

.historia-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 153, 255, 0.2);
}

.historia-icon {
  color: rgb(115, 226, 254);
}

.historia-icon-success {
  color: #00ffa9;
}

.historia-divider {
  border-color: rgba(0, 143, 245, 0.3);
  margin: 1.5rem 0;
}

.historia-strong {
  color: rgb(115, 226, 254);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Experiencia Section */
.experiencia {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(10, 25, 47, 0.95) 100%), url('imagenes/fondo.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  transition: background 0.3s ease;
}

body:not(.dark-mode) .experiencia {
  background: #80b5eb61;
}

body:not(.dark-mode) .experiencia .third-title {
    color: #000000 !important;
}

body:not(.dark-mode) .experiencia p {
    color: #333333 !important; /* Texto oscuro para el subtítulo */
    opacity: 1 !important;
}

.experiencia-header {
  z-index: 2;
}

/* Año del carrusel */
.carousel-year-wrapper {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 1100px;
}

.year-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 12px 0;
  gap: 0;
  flex-shrink: 0;
}

.year-line-top,
.year-line-bottom {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(0, 143, 245, 0.4));
  border-radius: 2px;
}

.year-line-bottom {
  background: linear-gradient(to top, transparent, rgba(0, 143, 245, 0.4));
}

.year-number {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3.5vw, 52px);
  color: #008ff5;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 6px;
  text-shadow: 0 0 10px rgba(0, 143, 245, 0.2);
  transition: all 0.3s ease;
  user-select: none;
  padding: 16px 0;
}

body.dark-mode .year-number {
  color: rgb(115, 226, 254);
  text-shadow: 0 0 18px rgba(115, 226, 254, 0.7), 0 0 40px rgba(0, 153, 255, 0.4);
}

.year-number.fading {
  opacity: 0;
  transform: rotate(180deg) translateY(12px);
}

@media screen and (max-width: 768px) {
  .carousel-year-wrapper {
    flex-direction: column-reverse;
    align-items: center;
  }
  .year-panel {
    flex-direction: row;
    min-width: unset;
    width: 100%;
    justify-content: center;
    padding: 12px 0 0 0;
    gap: 12px;
  }
  .year-line-top,
  .year-line-bottom {
    width: 40px;
    min-height: 2px;
    height: 2px;
    flex: 1;
    background: linear-gradient(to right, transparent, rgba(0, 143, 245, 0.4));
  }
  .year-line-bottom {
    background: linear-gradient(to left, transparent, rgba(0, 143, 245, 0.4));
  }
  .year-number {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 4px;
    font-size: clamp(22px, 6vw, 36px);
    padding: 0 12px;
  }
  .year-number.fading {
    transform: translateY(-8px);
  }
}

.imagenes {
  position: relative;
  width: 100%;
  max-width: 1000px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .imagenes {
  box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 30px rgba(0, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.imagenes img {
  object-fit: cover;
  height: 500px;
  border-radius: 20px;
}

/* Contacto / Footer */
.contacto {
  min-height: 100vh;
  background-color: var(--footer-bg);
  color: #ffffff !important; /* Siempre blanco porque el fondo del footer es oscuro */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.contacto h3, .contacto p, .contacto li, .contacto span, .contacto a:not(.futuristic-button) {
    color: #ffffff !important; /* Forzar blanco en el footer oscuro */
}

.contacto .back-link {
    color: #1a1a2e !important; /* El cohete mantiene su color oscuro original */
}


.contacto h3 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(24px, 4vw, 32px);
}

.back-link i {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.hola {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hola span {
  font-size: 4em;
  /* font-family: "Courier New", Courier, monospace; */
  animation: jump 2s infinite;
  transform: translateY(O);
  color: #ffffff;
}
@keyframes jump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
span:nth-child(1) {
  animation-delay: 0.1s;
}
span:nth-child(2) {
  animation-delay: 0.2s;
}
span:nth-child(3) {
  animation-delay: 0.3s;
}
span:nth-child(4) {
  animation-delay: 0.4s;
}
.hola span:hover {
  color: red;
  font-size: 5em;
}
.hola p {
  align-self: flex-end;
}
.facebook, .youtube, .whatsapp, .pdf {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}
.facebook:hover {
  color: #1877F2 !important;
  transform: translateY(-5px) scale(1.2);
  text-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}
.youtube:hover {
  color: #FF0000 !important;
  transform: translateY(-5px) scale(1.2);
  text-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}
.whatsapp:hover {
  color: #25D366 !important;
  transform: translateY(-5px) scale(1.2);
  text-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}
.pdf:hover {
  color: #fdf800 !important;
  transform: translateY(-5px) scale(1.2);
  text-shadow: 0 5px 15px rgba(253, 248, 0, 0.4);
}

@media screen and (max-width: 768px) {
  .imagenes img {
    height: 300px;
  }
}
/* WhatsApp Coin Animation */
.whatsapp-coin-container {
  perspective: 1000px;
  border-radius: 50%;
  display: block;
  animation: coin-glow 3s infinite alternate;
}

@keyframes coin-glow {
  0% {
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.4), 0 0 20px rgba(37, 211, 102, 0.2);
  }
  100% {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.8), 0 0 40px rgba(37, 211, 102, 0.6);
  }
}

.whatsapp-coin {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  animation: flip-coin 6s infinite ease-in-out;
}

.coin-front, .coin-back {
  background: linear-gradient(44deg, #25D366 0%, #128C7E 100%) !important;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden;
}

/* Efecto de brillo (shine) */
.coin-front::after, .coin-back::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg) translateX(-100%);
  animation: shine 3s infinite ease-in-out;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  20%, 100% {
    transform: rotate(45deg) translateX(100%);
  }
}

.coin-back {
  transform: rotateY(180deg);
}

@keyframes flip-coin {
  0%, 41.66% {
    transform: rotateY(0deg);
  }
  50%, 91.66% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Stars Animation */
.star {
  position: fixed;
  background-color: white;
  border-radius: 50%;
  opacity: 0;
  bottom: -10px; /* Start just below the screen */
  pointer-events: none;
  z-index: 9999; /* Cover everything */
}

.star.fly-up {
  animation: flyUpAnimation ease-in forwards;
}

@keyframes flyUpAnimation {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-120vh) scale(0.2);
  }
}
.link-tachado { text-decoration: line-through; }

/* Contact Section Scroll Reveal */
.contacto > .container,
.contacto > .container > .row,
.contacto > .container > .row > .col-md-6,
.contacto > .container > .row > .col-md-6 > h3,
.contacto > .container > .row > .col-md-6 > p,
.contacto > .container > .row > .col-md-6 > ul,
.contacto > .container > .row > .col-md-6 > ul > li,
.contacto > .container > .row > .col-md-6 > .mt-4,
.contacto > .container > .mt-5,
.contacto > .text-center,
.contacto > .text-center > p {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contacto.revealed > .container,
.contacto.revealed > .container > .row,
.contacto.revealed > .container > .row > .col-md-6,
.contacto.revealed > .container > .row > .col-md-6 > h3,
.contacto.revealed > .container > .row > .col-md-6 > p,
.contacto.revealed > .container > .row > .col-md-6 > ul,
.contacto.revealed > .container > .row > .col-md-6 > ul > li,
.contacto.revealed > .container > .row > .col-md-6 > .mt-4,
.contacto.revealed > .container > .mt-5,
.contacto.revealed > .text-center,
.contacto.revealed > .text-center > p {
  opacity: 1;
  transform: translateY(0);
}

.contacto.revealed > .container { transition-delay: 0.0s; }
.contacto.revealed > .container > .row { transition-delay: 0.1s; }
.contacto.revealed > .container > .row > .col-md-6:nth-child(1) { transition-delay: 0.2s; }
.contacto.revealed > .container > .row > .col-md-6:nth-child(2) { transition-delay: 0.25s; }
.contacto.revealed > .container > .row > .col-md-6 > h3 { transition-delay: 0.3s; }
.contacto.revealed > .container > .row > .col-md-6 > p { transition-delay: 0.4s; }
.contacto.revealed > .container > .row > .col-md-6 > ul { transition-delay: 0.5s; }
.contacto.revealed > .container > .row > .col-md-6 > ul > li:nth-child(1) { transition-delay: 0.55s; }
.contacto.revealed > .container > .row > .col-md-6 > ul > li:nth-child(2) { transition-delay: 0.6s; }
.contacto.revealed > .container > .row > .col-md-6 > ul > li:nth-child(3) { transition-delay: 0.65s; }
.contacto.revealed > .container > .row > .col-md-6 > ul > li:nth-child(4) { transition-delay: 0.7s; }
.contacto.revealed > .container > .row > .col-md-6 > ul > li:nth-child(5) { transition-delay: 0.75s; }
.contacto.revealed > .container > .row > .col-md-6 > ul > li:nth-child(6) { transition-delay: 0.8s; }
.contacto.revealed > .container > .row > .col-md-6 > .mt-4 { transition-delay: 0.85s; }
.contacto.revealed > .container > .mt-5 { transition-delay: 0.9s; }
.contacto.revealed > .text-center { transition-delay: 0.95s; }
.contacto.revealed > .text-center > p { transition-delay: 1.0s; }
