@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600&display=swap");

/* Estilos Generales */
* {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  transition: all 0.2s linear;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

html::-webkit-scrollbar {
  width: 1rem;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: #0eb582;
  border-radius: 5rem;
}

body {
  background: #f7f7f7;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  padding: 2rem 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.header .logo {
  font-size: 2.5rem;
  color: #444;
  font-weight: bolder;
}

.header .logo i {
  color: #0eb582;
  padding-right: 0.5rem;
}

.header .navbar {
  display: flex;
  gap: 2rem;
}

.header .navbar #close-navbar {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 3rem;
  color: #444;
  cursor: pointer;
}

.header .navbar #close-navbar:hover {
  color: #0eb582;
  transform: rotate(90deg);
}

.header .navbar a {
  font-size: 1.7rem;
  color: #444;
}

.header .navbar a:hover {
  color: #0eb582;
}

.header .icons div {
  font-size: 2.5rem;
  color: #444;
  margin-left: 1.5rem;
  cursor: pointer;
}

.header .icons div:hover {
  color: #0eb582;
}

#menu-btn {
  display: none;
}

/* Account Form */
.account-form {
  position: fixed;
  top: 0;
  right: -105%;
  width: 35rem;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1200;
  padding: 2rem;
  text-align: center;
}

.account-form.active {
  right: 0;
  box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.8);
}

.account-form #close-form {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  font-size: 4rem;
  color: #444;
  cursor: pointer;
}

.account-form #close-form:hover {
  transform: rotate(90deg);
}

.account-form form {
  border: 0.1rem solid #0eb582;
  padding: 2rem;
  display: none;
}

.account-form form.active {
  display: block;
}

.account-form form h3 {
  font-size: 2.5rem;
  color: #444;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
}

.account-form form .box {
  width: 100%;
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid #0eb582;
  font-size: 1.6rem;
  margin: 0.7rem 0;
}

.account-form form .flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.account-form form .flex label {
  font-size: 1.5rem;
  color: #777;
  cursor: pointer;
}

.account-form form .flex a {
  font-size: 1.5rem;
  color: #777;
  margin-left: auto;
}

.account-form form .flex a:hover {
  text-decoration: underline;
  color: #0eb582;
}

.account-form form .btn {
  width: 100%;
}

.account-form .buttons .btn {
  margin: 0 0.5rem;
}

.account-form .buttons .btn.active {
  background: #0eb582;
  color: #fff;
}

.heading {
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 3rem;
  font-size: 3.5rem;
  color: #444;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 3rem;
  font-size: 1.8rem;
  border: 0.1rem solid #0eb582;
  background: #f0fdfa;
  color: #0eb582;
  cursor: pointer;
  text-transform: capitalize;
  border-radius: 0.5rem;
}

.btn:hover {
  background: #0eb582;
  color: #fff;
}

/* HOME - Sección mejorada */
.home {
  padding: 0;
  position: relative;
}

.home .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60rem;
  background-size: cover !important;
  background-position: left !important;
}

.home .slide .content {
  width: 100rem;
  max-width: 90%;
  padding: 0 2rem;
  margin: 0 auto;
  text-align: left;
}

.home .slide .content h3 {
  font-size: 5.5rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.3);
}

.home .slide .content p {
  font-size: 1.6rem;
  color: #eee;
  margin-bottom: 2rem;
  line-height: 1.6;
  padding: 0 1rem;
}

.swiper-pagination-bullet-active {
  background: #0eb582;
}

/* SUBJECTS - Sección mejorada */
.subjects {
  padding: 5rem 9%;
}

.subjects .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
  justify-items: center;
}

.subjects .box-container .box {
  width: 100%;
  max-width: 30rem;
  padding: 3rem 2rem;
  text-align: center;
  border: 0.1rem solid #0eb582;
  background: #3a5a40;
  cursor: pointer;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.subjects .box-container .box:hover {
  background: #3a5a40;
  transform: translateY(-0.5rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.subjects .box-container .box:hover h3 {
  color: #fff;
}

.subjects .box-container .box:hover p {
  color: #eee;
}

.subjects .box-container .box img {
  height: 10rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.subjects .box-container .box:hover img {
  transform: scale(1.1);
}

.subjects .box-container .box h3 {
  font-size: 1.8rem;
  color: #fff;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.subjects .box-container .box p {
  font-size: 1.4rem;
  color: #eee;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* ABOUT */
.container-about {
  width: 90%;  /* Ocupa el 90% del ancho disponible */
  max-width: 1800px;  /* Pero nunca más de 1200px */
  margin: 0 auto;  /* Centrado */
  padding: 0 1rem;  /* Pequeño padding para móviles */
}

.about {
  padding: 3rem 0;
}
/* Cambiar orden para contraste visual */
.about .row.reverse {
  flex-direction: row-reverse;
}

.about .row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  padding-bottom: 3rem;
}

.about .row .video-container {
  flex: 1 1 40rem;
  position: relative;
}

.about .row .video-container video {
  width: 100%;
  border: 1.5rem solid #0eb582;
  border-radius: .5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.about .row .content {
  flex: 1 1 40rem;
  padding: 0 2rem;
}

.about .row .content h3 {
  font-size: 3rem;
  color: #333;
}

.about .row .content p {
  font-size: 1.5rem;
  color: #999;
  padding: 1rem 0;
  line-height: 1.5;
}

/* Botón de toggle de audio */
.audio-toggle {
  position: absolute;
  bottom: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.audio-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.audio-toggle .icon {
  font-size: 18px;
  color: white;
  transition: all 0.3s ease;
}

.audio-toggle .tooltip {
  position: absolute;
  bottom: 50px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.audio-toggle:hover .tooltip {
  opacity: 1;
}

/* Estado cuando el audio está activo */
.audio-toggle.active .icon {
  content: "🔊";
}

/* FOOTER (MANTENIENDO EL ORIGINAL) */
footer {
  margin-top: 100px;
  background-color: #3a5a40;
  padding: 60px 0;
  color: #fff;
}

.section-footer {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-section-logo {
  width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 40px;
}

.footer-section-logo .img-logo {
  width: 120px;
  height: 100%;
  align-self: center;
}

.footer-section-logo p {
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
}

.footer-section-logo .social-links {
  display: flex;
  gap: 20px;
}

.footer-section-logo .social-links i {
  color: #fff;
  font-size: 16px;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 50px;
  flex: 1;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
}

.footer-column h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column ul li {
  cursor: pointer;
  font-size: 14px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-column.newsletter {
  flex: 2;
}

.footer-column.newsletter p {
  font-size: 14px;
  line-height: 1.6;
}

.newsletter-form {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
}

.newsletter-form input {
  border: none;
  padding: 15px 20px;
  outline: none;
  width: 70%;
  font-family: inherit;
  flex: 1;
}

.newsletter-form input::placeholder {
  color: #333;
  font-weight: 600;
}

.newsletter-form button {
  border: none;
  background: none;
  margin-right: 20px;
  color: #0eb582;
  cursor: pointer;
}

.credit {
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  margin-top: 6rem;
  margin-bottom: -60px;
}

/* User Info Styles */
.user-info {
  color: #fff;
  background: #333;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-link {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: bold;
}

.logout-link:hover {
  text-decoration: underline;
}



/* PAGINA DE CONTACTO */
#page-header {
    background-image: url(../images/BANNER1.jpg);
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 14px;
}

#page-header h2 {
    font-size: 46px;
    line-height: 54px;
    color: #fff;
}

#page-header p {
    font-size: 16px;
    margin: 15px 0 20px 0;
    color: #fff;
}

#contact-details {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#contact-details .details {
    width: 40%;
}

#contact-details .details span,
#form-details form span {
    font-size: 12px;
}

#contact-details .details h2,
#form-details form h2 {
    font-size: 24px;
    /* TamaÃ±o de letras */
    line-height: 35px;
    padding: 20px 0;
}

#contact-details .details h3 {
    font-size: 16px;
    /* TamaÃ±o de letras */
    padding-bottom: 15px;
}

#contact-details .details li {
    list-style: none;
    display: flex;
    padding: 10px 0;
}

#contact-details .details li i {
    font-size: 13px;
    padding-right: 22px;
}

#contact-details .details li p {
    margin: 0;
    font-size: 14px;
}

#contact-details .map {
    width: 55%;
    height: 400px;
}

#contact-details .map iframe {
    width: 100%;
    height: 100%;
}



/* NUEVO DISEÑO FORMULARIO DE CONTACTO (TONOS VERDES) */
#form-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px auto;
  padding: 40px 10px;
  border-radius: 32px;
  background: linear-gradient(135deg, #b7f8db 0%, #50c878 100%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  justify-content: center;
  align-items: flex-start;
  border: none;
  max-width: 1200px;
}

#form-details form {
  width: 380px;
  background: rgba(255,255,255,0.97);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  position: relative;
  z-index: 2;
  border: 2px solid #e0ffe7;
  transition: box-shadow 0.3s;
}

#form-details form:hover {
  box-shadow: 0 8px 32px rgba(80,200,120,0.18);
}

#form-details form span {
  color: #50c878;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

#form-details form h2 {
  color: #009e60;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
}

#form-details form input,
#form-details form textarea {
  border: none;
  border-radius: 12px;
  background: #e0ffe7;
  padding: 14px 18px;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(80,200,120,0.08);
  resize: none;
  transition: background 0.2s;
}

#form-details form input:focus,
#form-details form textarea:focus {
  background: #b7f8db;
  outline: 2px solid #009e60;
}

#form-details form textarea {
  min-height: 100px;
  max-height: 200px;
}

#form-details form button {
  background: linear-gradient(90deg, #009e60 0%, #50c878 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  padding: 14px 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(80,200,120,0.10);
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
}

#form-details form button:hover {
  background: linear-gradient(90deg, #50c878 0%, #009e60 100%);
  color: #e0ffe7;
}

/* NUEVO DISEÑO TESTIMONIOS (TONOS VERDES) */
#form-details .people {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 340px;
  z-index: 2;
}

#form-details .people div {
  background: linear-gradient(120deg, #e0ffe7 0%, #b7f8db 100%);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(80,200,120,0.13);
  padding: 22px 20px 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  max-width: 100%;
  border: 2px solid #b7f8db;
  position: relative;
  transition: box-shadow 0.3s;
}

#form-details .people div:hover {
  box-shadow: 0 8px 32px rgba(80,200,120,0.18);
}

#form-details .people div img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid #009e60;
  margin: 0;
  box-shadow: 0 2px 8px rgba(80,200,120,0.10);
}

#form-details .people div p {
  margin: 0;
  font-size: 1.25rem;
  color: #222;
  line-height: 1.7;
  text-align: left;
  font-weight: 500;
}

#form-details .people div p span {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: #009e60;
  margin-bottom: 2px;
}

/* RESPONSIVE NUEVO DISEÑO FORMULARIO Y TESTIMONIOS (TONOS VERDES) */
@media (max-width: 900px) {
  #form-details {
    flex-direction: column;
    align-items: center;
    padding: 30px 5px;
    gap: 32px;
  }
  #form-details form, #form-details .people {
    width: 95%;
    max-width: 500px;
  }
}

@media (max-width: 600px) {
  #form-details {
    padding: 10px 0;
    margin: 10px 0;
    border-radius: 0;
    box-shadow: none;
  }
  #form-details form, #form-details .people {
    width: 100%;
    max-width: 100%;
    padding: 18px 6px;
    border-radius: 0;
    box-shadow: none;
  }
  #form-details form {
    padding: 18px 6px;
  }
  #form-details .people div {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 8px;
    border-radius: 12px;
  }
  #form-details .people div img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
}



/* Media Queries */
@media (max-width: 1200px) {
  .header {
    padding: 2rem 5%;
  }
  
  .home .slide .content h3 {
    font-size: 4.5rem;
  }
  
  .subjects .box-container {
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  }
}

@media (max-width: 991px) {
  html {
    font-size: 55%;
  }
  
  .section-footer {
    flex-direction: column;
    gap: 30px;
  }

  .footer-section-logo {
    width: 100%;
    padding-right: 0;
  }

  .footer-section-logo .img-logo {
    align-self: center;
  }

  .footer-section-logo p {
    text-align: center;
  }

  .footer-section-logo .social-links {
    justify-content: center;
    margin-bottom: 20px;
  }

  .footer-links {
    align-items: center;
    margin-left: 150px;
    gap: 30px;
    width: 100%;
  }

  .footer-column.newsletter {
    margin-left: -300px;
    margin-right: 130px;
    flex: 1;
  }
}

@media (max-width: 768px) {
  #menu-btn {
    display: inline-block;
  }

  .header .navbar {
    position: fixed;
    top: 0;
    right: -105%;
    width: 30rem;
    background: #fff;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    padding-top: 15rem;
    z-index: 1200;
  }

  .header .navbar.active {
    right: 0;
    box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.8);
  }

  .header .navbar #close-navbar {
    display: block;
    margin-top: 15px;
    margin-right: 25px;
  }

  .header .navbar a {
    display: block;
    margin: 1rem 2rem;
    text-align: center;
    font-size: 3rem;
  }
  
  .home .slide {
    height: 50rem;
  }
  
  .home .slide .content h3 {
    font-size: 3.5rem;
  }
  
  .home .slide .content p {
    font-size: 1.6rem;
  }
  
  .subjects .box-container {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin: 0 auto;
  }

  .about .row .video-container h3 {
    font-size: 2rem;
  }
  
  .audio-toggle {
    width: 36px;
    height: 36px;
    bottom: 15px;
    right: 15px;
  }
  
  .footer-links {
    align-items: center;
    margin-left: 0px;
    gap: 30px;
    width: 90%;
  }

  .footer-column.newsletter {
    margin-top: 30px;
    margin-right: 0px;
    margin-left: -30px;
    flex: 1;
  }

  .newsletter-form input {
    width: 80%;
  }

  .credit {
    max-width: 100%;
    margin-bottom: -40px;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
  
  .heading {
    font-size: 3rem;
  }
  
  .home .slide .content h3 {
    font-size: 3rem;
  }
  
  .home .slide .content p {
    font-size: 1.4rem;
  }
  
  .account-form {
    width: 100%;
  }
}


.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: white;
    flex-wrap: wrap;
    max-width: 100%;
    padding-left: 10px;
}

.user-info i {
    color: white;
}

.user-email {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.logout-link {
    color: #ffdddd;
    font-size: 13px;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding-left: 0;
    }

    .user-email {
        max-width: 100%;
        font-size: 13px;
    }

    .logout-link {
        font-size: 12px;
    }
}




/* ------------------------------
   Contacto - Responsive (verde/ blanco / gris)
   Mobile-first: 1 col -> form 2 cols @600px -> grid 2 cols @960px
   ------------------------------ */

/* Colores */
:root{
  --green: #2e7d32;
  --green-dark: #256428;
  --muted: #6b7280;
  --bg-card: #ffffff;
  --gray-1: #f5f5f5;
  --gray-2: #e5e7eb;
  --border: #e0e0e0;
  --text: #222222;
}

/* Reset box model */
*,
*::before,
*::after { box-sizing: border-box; }

/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
}

/* Grid principal (secciones) - 1 columna por defecto */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

/* Tarjetas */
.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

/* Títulos */
.card h2,
.card h3 {
  color: var(--green);
  margin: 0 0 10px 0;
  line-height: 1.2;
}

/* --- Info contacto --- */
.contact-ways {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.way {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--gray-1);
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .18s;
}

.way:hover { background: var(--gray-2); }

.way i {
  font-size: 1.15rem;
  color: var(--green);
  width: 28px;
  text-align: center;
}

.way b { display:block; color:var(--text); font-size:14px; }
.way small { color: var(--muted); font-size:13px; }

/* Chips de horarios */
.chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.chip {
  background: var(--green);
  color: #fff;
  padding:6px 12px;
  border-radius: 999px;
  font-size: 13px;
}

/* --- Formulario --- */
/* Por defecto: 1 columna en fields */
form .fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field { display:flex; flex-direction:column; gap:6px; }
.field.full { grid-column: 1 / -1; } /* siempre ocupar ancho completo */

/* Etiquetas y campos */
label { font-size: 14px; color: var(--text); font-weight:600; }
input, select, textarea {
  width:100%;
  padding:10px 12px;
  border-radius: 9px;
  border:1px solid var(--border);
  font-size: 14px;
  background: #fff;
  transition: box-shadow .16s, border-color .16s;
}
textarea { min-height:120px; resize: vertical; }

/* Focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46,125,50,0.12);
}

/* Acciones / botones - por defecto columna (móvil) */
.actions {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
  align-items: stretch;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 9px;
  font-size: 15px;
  cursor:pointer;
  border:1px solid var(--border);
  background:#f7f7f8;
  color: var(--text);
}

/* boton primario */
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); }

/* ghost */
.btn-ghost { background: #fff; }
.btn-ghost:hover { background: var(--gray-1); }

/* Estado mensaje */
.status { font-size: 14px; min-height:1.4em; color: var(--muted); }
.status.ok { color: var(--green); }
.status.err { color: #d32f2f; }

/* Mapa */
.map-wrap { margin-top: 1rem; }
.map-wrap .map,
.map {
  width: 100%;
  aspect-ratio: 16/9; /* mantiene proporción */
  max-height: 520px;
  border: 0;
  border-radius: 12px;
  display:block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ===========================
   BREAKPOINTS
   =========================== */

/* Small tablets / landscape phones — se separa formulario en 2 columnas */
@media (min-width: 600px) {
  form .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Mantener la fila 'full' ocupando ambas columnas */
  .field.full { grid-column: 1 / -1; }

  /* Acciones: botones en fila cuando hay espacio */
  .actions { flex-direction: row; align-items: center; }
  .actions .btn { flex: 1 1 0; min-width: 140px; }
  .status { margin-left: 8px; }
}

/* Desktop small — dos columnas para la grid principal (info + form) */
@media (min-width: 960px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  /* Separar visualmente el bloque de información (si quieres) */
  .card.info { padding: 20px; }

  /* Si quieres que el mapa quede centrado y con max-width */
  .map-wrap { margin-top: 1.25rem; }
}

/* Desktop wide - aumentar espacios y tamaño de fuente */
@media (min-width: 1280px) {
  .container { padding: 28px; }
  .card { padding: 22px; border-radius: 14px; }
  .way i { font-size: 1.2rem; width: 32px; }
  .chip { font-size: 14px; padding:7px 14px; }
}

/* Ajustes móviles muy pequeños */
@media (max-width: 420px) {
  .container { padding: 12px; }
  .card { padding: 14px; border-radius: 12px; }
  label { font-size: 13px; }
  input, select, textarea { font-size: 13px; padding: 9px 10px; }
  .btn { padding: 10px 12px; font-size: 14px; }
}
