/* Configuración general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Rancho', cursive;
  font-size: 20px;
}

body {
  background: radial-gradient(
    circle at 101.01% 50%,
    #76706d 0,
    #4e5b63 25%,
    #1f4459 50%,
    #002e50 75%,
    #001b47 100%
  );
  min-height: 100vh;
  overflow-x: hidden;
  text-align: center;
}

/* Efectos de fondo */
.sec::before,
.sec::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: .1;
  z-index: 1;
}

.sec::before {
  background: linear-gradient(#f00, #f0f);
  clip-path: circle(30% at right 70%);
}
.sec::after {
  background: linear-gradient(#2196f3, #e91e63);
  clip-path: circle(20% at 10% 10%);
}

/* Cartas */
#contenido {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1;
}

#animacion #slogan {
  font-size: 80px;
}

.tarjeta {
  color: black;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.18);
  text-align: center;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin: 30px;
  overflow: hidden;              /* 🔹 evita que la imagen se salga del borde redondeado */
  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 20% cover 30%;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 200px 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

header .logo {
  width: 10vmax;
}

/* WhatsApp */
.wsp {
  list-style: none;
  text-decoration: none;
  color: black;
  font-family: sans-serif;
}

/* Menú */
nav.menu.active ul {
  position: relative;
  top: 50px;
  margin-left: -150px;
  display: flex;
  opacity: 1;
  visibility: visible;
}

nav ul li {
  list-style: none;
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  border-radius: 20px;
  color: black;
  background-color: white;
  opacity: 0.8;
}

nav ul li a:hover,
nav ul li a:active {
  background: blue;
  color: white;
}

/* Section */
section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

section img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* Animaciones */
@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 100px;
    scale: 0.4;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

img {
  border-radius: 15px;
}

/* Texto principal */
section #slogan {
  position: absolute;
  color: black;
  font-size: 7vmax;
  font-family: 'Rancho', sans-serif;
  line-height: 0.8em;
  text-align: center;
  white-space: nowrap;
  transform: translateY(-120px);
}

/* Botón principal */
section #btn {
  align-items: center;
  text-decoration: none;
  display: inline-block;
  background: black;
  color: white;
  padding: 8px 30px;
  border-radius: 20px;
  letter-spacing: 2px;
  font-size: 1.2em;
  font-weight: 500;
  transform: translate(60px, 20px);
  z-index: 1;
}

section #btn:hover {
  background: radial-gradient(
    circle at 101.01% 50%,
    #76706d 0,
    #4e5b63 25%,
    #1f4459 50%,
    #002e50 75%,
    #001b47 100%
  );
}

.map-box{
  width: 100%;
  max-width: 900px;     /* limita el ancho en pantallas grandes */
  aspect-ratio: 4 / 3;
  position:relative; 
  z-index:0;  /* móvil: más alto */
  margin-bottom: 2rem;
}

#mapa{ width:100%; height:100%; border:0; display:block; }

/* Secciones */
.sec {
  background: radial-gradient(
    circle at 101.01% 50%,
    #76706d 0,
    #4e5b63 25%,
    #1f4459 50%,
    #002e50 75%,
    #001b47 100%
  );
  position: relative;
}

/* =======================
   MEDIA QUERIES MODERNAS
   ======================= */

/* Desktop (≥1200px) */
@media (min-width: 1200px) {
  header a { font-size: clamp(1.2rem, 2.2vw, 2.2rem); }
  #principal { width: 70%; height: auto; }
  #mapa { width: 80%; height: 500px; }
  #animacion #slogan { font-size: clamp(3rem, 5vw, 6rem); margin-top: 10vh; }
  footer h4 { font-size: 1.8vw; }
  footer p { font-size: 1.2vw; }
}

/* Tablet (768px–1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  header { padding: 20px 40px; flex-direction: column; }
  header a { font-size: 1.5rem; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  #principal, #mapa { width: 90%; height: auto; }
  #animacion #slogan { font-size: 3rem; margin-top: 6rem; }
  p, h4, h5, a { font-size: 1.1rem; }
  #wsp img { width: 100px; }
  footer h4 { font-size: 1.2rem; }
  footer p { font-size: 1rem; }
  .tarjeta{
  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 20% cover 30%;
  }
}

/* Móvil (≤980px) */
@media (max-width: 767px) {
  header { flex-direction: column; align-items: center; padding: 10px; }
  nav ul { flex-direction: column; margin: 0; padding: 0; align-items: center; }
  header a { font-size: 1.2rem; }
  #principal, #mapa { width: 95%; height: auto; }
  #animacion #slogan { font-size: clamp(2rem, 8vw, 3rem); margin-top: 8rem; }
  p, h4, h5, a { font-size: clamp(0.9rem, 3vw, 1.1rem); }
  #wsp img { width: 60px; }
  footer h4 { font-size: 1rem; }
  footer p { font-size: 0.9rem; }
  #textowsp { display:none; }
  #wsp { padding: .5rem .6rem; }
  .map-box iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
  .tarjeta{
  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 20% cover 30%;
  }
}
