/* ======================
   RESET Y BASE
====================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f6f8fb;
  color: #222;
  line-height: 1.6;
}

:root {
  --azul-warriors: #1d428a;
  --dorado-warriors: #ffc72c;
}

/* ======================
   BANNER
====================== */
#banner {
  position: relative;
  background-image: url(./assets/Banner_real.png);
  background-position: center;
  background-size: cover;
  min-height: 30vh;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

#banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.17);
  z-index: 0;
}

#banner h1,
#banner p {
  position: relative;
  visibility: hidden;
  z-index: 1;
}

/* ======================
   HEADER
====================== */
header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  color: var(--dorado-warriors);
}

/* ======================
   NAV
====================== */
#main_nav {
  background: var(--azul-warriors);
  padding: 2px 4px;
  line-height: 1.2;
  text-align: center;
}

/* contenedor links */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* links */
#main_nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 2px 4px;
  line-height: 1.2;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  margin: clamp(12px, 2.5vw, 32px);
}

#main_nav a:hover {
  color: var(--dorado-warriors);
}

/* botón hamburguesa (desktop oculto) */
#menuToggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  font-size: 60px;
}

/* ======================
   SECCIONES
====================== */
section {
  padding: 70px 20px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--azul-warriors);
}

/* ======================
   GRIDS
====================== */
.subsection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.subsection2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

#foto_perfil {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ======================
   CARDS
====================== */
.about_me_card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about_me_card h3 {
  margin-top: 12px;
  font-size: 1.1rem;
}

.card {
  position: relative;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-top: 5px solid var(--dorado-warriors);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.price_tag {
  font-size: 36px;
  margin-top: 40px;
  margin-bottom: 5px;
}


.price_tag2 {
  font-size: 36px;
  margin-top: 20px;
  margin-bottom: 5px;
}
/* ======================
   ETIQUETAS FLOTANTES
====================== */
.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--azul-warriors);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: badgePulse 2.5s infinite;
}
.badge2 {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--azul-warriors);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: badgePulse 2.5s infinite;
}
@keyframes badgePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
}

/* ======================
   CONTACTO
====================== */
#contact {
  background: linear-gradient(120deg, var(--azul-warriors), #0f2e63);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.contact_title {
  color: white;
}

form {
  max-width: 500px;
  margin: auto;
  display: grid;
  gap: 15px;
}

input,
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  padding: 12px;
  background: var(--azul-warriors);
  color: var(--azul-warriors);
  font-style: oblique;
  font-weight: bolder;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: var(--dorado-warriors);
}

/* ======================
   FOOTER
====================== */
footer {
  background: #0f2e63;
  color: white;
  text-align: center;
  padding: 30px 15px;
  font-size: 0.9rem;
}

/* ======================
   WHATSAPP
====================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 100;
  text-decoration: none;
}

#whatsapp_link {
  font-style: normal;
  text-decoration: none;
  color: white;
  background-color: green;
  border-radius: 8px;
  border: none;
  padding: 6px;
  cursor: pointer;
}

/* ======================
   RESPONSIVE MÓVIL
====================== */
@media (max-width: 768px) {
  /* NAV */
  #menuToggle {
    display: block;
    font-size: 1.6rem;
    margin: 0 0 6px 0; /* quita centrado */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    width: 100%;
    align-items: flex-start; /* 👈 clave */
    text-align: left;
  }

  .nav-links.open {
    display: flex;
  }

  #main_nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 👈 clave */
    padding: 8px 12px;
  }

  #main_nav a {
    font-size: 0.9rem;
    padding: 6px 10px;
    margin: 0;
    line-height: 1.3;
    width: 100%;
    text-align: left;
    padding: 6px 12px;
  }

  #main_nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: white;
  }

  /* GENERAL */
  section {
    padding: 50px 15px;
  }

  h2 {
    font-size: 1.7rem;
    margin-bottom: 30px;
  }

  .subsection,
  .subsection2 {
    grid-template-columns: 1fr;
  }

  footer {
    font-size: 0.85rem;
  }
}
