/* Contacto (T014): arriba, cómo hablar con la escuela (tres botones grandes) y su mapa redondo con la dirección;
   debajo, cómo llegar y las redes. Las fichas de cristal son las de la web de Joel. Lo común está en web.css. */

.co-arriba { padding-top: clamp(40px, 6vw, 72px); }
.co-fila { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(36px, 6vw, 80px); }
.co-texto { display: flex; flex-direction: column; align-items: flex-start; animation: entra 0.9s var(--curva) both; }
.co-texto .texto { margin-bottom: 26px; }
.co-icono { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 197, 118, 0.16); color: var(--naranja-oscuro); }
.co-icono svg { width: 22px; height: 22px; }

/* ---------- Llamar, escribir y cuándo atienden ---------- */
.co-vias { list-style: none; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 520px; margin: 0; padding: 0; }
.co-via {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 13px 18px 13px 14px; border-radius: 20px; color: inherit; text-decoration: none;
  background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 10px 28px rgba(84, 89, 95, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
a.co-via:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(84, 89, 95, 0.09); }
.co-via-texto { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.co-via-texto small, .co-direccion small { font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--texto-tenue); }
.co-via-texto b { font-size: 17.5px; font-weight: 700; line-height: 1.3; color: var(--gris); }
.co-via-accion { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--melocoton); font-size: 14px; font-weight: 600; color: var(--gris-boton); transition: background 0.3s; }
.co-via-accion svg { width: 15px; height: 15px; transition: transform 0.3s; }
a.co-via:hover .co-via-accion { background: var(--naranja); color: var(--gris); }
a.co-via:hover .co-via-accion svg { transform: translateX(3px); }

/* ---------- El mapa redondo y la dirección ---------- */
.co-donde { display: flex; flex-direction: column; align-items: center; animation: entra 0.9s 0.1s var(--curva) both; }
.co-mapa { position: relative; display: block; width: min(100%, 400px); aspect-ratio: 1; overflow: hidden; border: 8px solid var(--blanco); border-radius: 50%; box-shadow: 0 20px 48px rgba(84, 89, 95, 0.15); transition: transform 0.4s ease; }
.co-mapa:hover { transform: scale(1.03); }
.co-mapa img { width: 100%; height: 100%; object-fit: cover; }
.co-direccion {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; width: min(100%, 440px); margin-top: -46px; padding: 16px 18px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(84, 89, 95, 0.12);
}
.co-direccion p { display: flex; flex-direction: column; margin-right: auto; font-size: 14.5px; line-height: 1.4; color: var(--texto-suave); }
.co-direccion b { font-size: 16.5px; font-weight: 700; color: var(--gris); }
.co-direccion .boton { flex: 1 1 100%; }

/* ---------- Cómo llegar ---------- */
.co-transportes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin-inline: auto; }
.co-transporte {
  display: flex; flex-direction: column; align-items: center; padding: 28px 18px; border-radius: 22px; text-align: center;
  background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 10px 28px rgba(84, 89, 95, 0.05);
}
.co-transporte .co-icono { margin-bottom: 14px; }
.co-transporte h3 { margin-bottom: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.co-transporte p { font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--gris); }
.co-transportes .aparece:nth-child(2) { transition-delay: 0.07s; }
.co-transportes .aparece:nth-child(3) { transition-delay: 0.14s; }

/* ---------- Redes ---------- */
.co-redes-seccion { padding-top: 0; }
.co-redes .botones { flex: none; flex-wrap: nowrap; }
.co-redes { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; max-width: 900px; margin-inline: auto; padding-block: clamp(24px, 3vw, 34px); }
.co-redes .titulo { margin: 0; font-size: clamp(22px, 2.4vw, 28px); }

/* ---------- Tableta y móvil ---------- */
@media (max-width: 900px) {
  .co-fila { grid-template-columns: 1fr; gap: 40px; }
  .co-texto { align-items: center; text-align: center; }
  .co-vias { text-align: left; }
  .co-redes { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .co-via { gap: 12px; padding: 12px 12px 12px 12px; }
  .co-via-texto b { font-size: 15.5px; letter-spacing: -0.2px; }
  /* En el móvil toda la ficha se toca: el botoncito sobra y así el correo cabe en una línea */
  .co-via-accion { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 0; gap: 0; border-radius: 50%; }
  .co-mapa { width: min(100%, 300px); border-width: 6px; }
  .co-transportes { grid-template-columns: 1fr; gap: 12px; }
  /* En el móvil, cada transporte en una línea: el icono a la izquierda y el texto al lado */
  .co-transporte { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 2px 14px; padding: 14px 16px; text-align: left; }
  .co-transporte .co-icono { grid-row: 1 / span 2; margin: 0; }
  .co-transporte h3 { margin: 0; align-self: end; }
  .co-transporte p { align-self: start; }
  .co-redes .botones { flex-direction: column; align-self: stretch; }
  .co-redes .boton { width: 100%; }
}
