/* ============================================================
   SECCIÓN: CONTACTO (datos, galería, formulario, redes)
   ============================================================ */

.contacto__inner {
  position: relative;
  overflow: hidden;
}

.contacto__inner::before {
  content: "";
  position: absolute;
  top: 0; /* desde el principio de contact-section */
  left: 0;
  width: 100%;
  height: 50%; /* altura aproximada de mar1, se puede ajustar */
  background-image: url("../../public/mar1.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  z-index: -1;
  pointer-events: none;
}

.contacto__inner::after {
  content: "";
  position: absolute;
  bottom: 0; /* pegado al fondo de local-business */
  left: 0;
  width: 100%;
  height: 50%; /* altura aproximada de mar2, se puede ajustar */
  background-image: url("../../public/mar2.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
  z-index: -1;
  pointer-events: none;
}

.contacto-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 32px 0px;
    position: relative;
    background: linear-gradient(
        0deg,
        rgba(4, 95, 107, 0.35) 0%,
        rgba(4, 95, 107, 0.35) 100%
    );
    background-image: url("../../public/contacto-header-background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contacto-header .contacto-header-text {
    position: relative;
    width: 900px;
    margin-top: -1.50px;
    font-family: var(--font-family-simonetta);
    font-weight: 400;
    color: #ffffff;
    font-size: 36.7px;
    text-align: center;
    letter-spacing: -0.40px;
    line-height: 55.1px;
}

/* CONTENEDOR PRINCIPAL */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 32px;
    padding: 32px 42px;
}

/* TEXTOS SUPERIORES */
.contact-intro {
    font-family: var(--font-family-figtree);
    font-size: 20px;
    color: #271c1a;
    text-align: left;
    /* relativa: los 36px clavados de cuando medía 28px dejaban el texto muy
       aireado al bajar de tamaño */
    line-height: 1.6;
}

.contact-title {
    font-family: var(--font-family-simonetta);
    font-size: 24px;
    font-weight: var(--font-weight-regular);
    text-align: left;
    color: #000;
}

/* LAYOUT DOS COLUMNAS */
.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

/* COLUMNA IZQUIERDA */
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* heredado de la antigua colisión con .quick-info: separa la columna
       del área de formulario en móvil */
    padding-bottom: 50px;
}

/* BLOQUES IZQUIERDA */
.info-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-family: var(--font-family-pangolin);
    font-size: 24px;
    font-weight: var(--font-weight-regular);
    color: var(--color-accent);
}

.info-text {
    font-family: var(--font-family-figtree);
    font-size: 20px;
    font-weight: var(--font-weight-regular);
    opacity: 0.7;
    line-height: 30px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn {
    padding: 16px 32px;
    border-radius: 32px;
    font-family: var(--font-family-pangolin);
    font-size: 20px;
    font-weight: var(--font-weight-regular);
    text-decoration: none;
    text-align: center;
}

.btn-primary-3 {
    background: var(--color-coral);
    color: #000;
}

.contact-btn-secondary {
    background: var(--color-cta);
    color: #000;
}

.gallery {
  width: 100%;
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 16px; /* algo más de aire respecto a los botones de arriba */
}

/* IMAGEN PRINCIPAL */
.gallery-main {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  display: block;
}

/* MINIATURAS */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Thumbnails */
.gallery-thumbs img {
  width: 100%;
  height: 165px;          /* altura fija horizontal */
  object-fit: cover;     /* recorta */
  object-position: center;
  border-radius: 24px;
  cursor: pointer;
}

.gallery-thumbs img:hover {
  opacity: 1;
  transform: scale(1.02);
}

/* COLUMNA DERECHA */
.contact-form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-title {
    font-family: var(--font-family-pangolin);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-accent);
}

/* FORMULARIO
   Padding lateral contenido: en móvil cada píxel cuenta para que el texto
   normativo (16px) no se rompa en demasiadas líneas */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 20px;
    border-radius: 24px;
    border: 1px solid var(--color-accent);
}

/* INPUTS COMUNES */
.input,
.input-textarea {
    background: #30cace12;
    border: 1.5px solid var(--color-cta);
    border-radius: 8px;
    padding: 12px;
    min-height: 44px;
    width: 100%;
}

.input-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.input-textarea {
    min-height: 120px;
}

.input input,
.input select,
.input textarea,
.input-textarea textarea {
  width: 100%;

  background: transparent;
  border: none;
  outline: none;

  resize: vertical;

  font-size: 16px;
  font-family: inherit;
}

/* Desplegable: sin el dibujo del navegador, para que se vea igual que el
   resto de campos, y con el chevrón de la marca. El hueco a la derecha
   evita que el texto largo se meta debajo de la flecha. */
.input--select {
  position: relative;
}

.input--select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  color: var(--color-paragraph);
  cursor: pointer;
}

.input--select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none; /* el clic tiene que llegar al <select> */
  background: url("../../public/chevron-down.svg") no-repeat center / contain;
}

/* La opción vacía hace de etiqueta: se ve como el placeholder de los demás
   campos, pero las opciones reales van en el color normal del texto */
.input--select select:has(option[value=""]:checked) {
  color: var(--color-text-muted);
}

.input-textarea textarea {
  min-height: 120px;
}

.input-label {
    font-family: "Figtree";
}

/* OPCIONES ICONOS */
.contact-options {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.option {
    background: #30cace33;
    border: 1.5px solid var(--color-cta);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
}

.option img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

/* hover */
.option:hover {
    transform: translateY(-1px);
    background: #30cace44;
}

/* seleccionado */
.option.active {
    transform: scale(1.2);
    background: var(--color-cta);
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(48, 202, 206, 0.2);
}

/* icono activo */
.option.active img {
    filter: brightness(0) saturate(100%)
            invert(19%) sepia(23%)
            saturate(1087%)
            hue-rotate(169deg)
            brightness(95%)
            contrast(91%);
}


/* BOTÓN ENVIAR */
.submit-button {
    background: var(--color-cta);
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-family: "Inter";
    font-size: 20px;
    color: var(--color-primary);
    cursor: pointer;
}

/* Honeypot anti-spam: fuera de pantalla (los bots lo rellenan igual) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Estado del envio del formulario (lo gestiona form-validation.js) */
.form-status {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-family: var(--font-family-figtree);
    font-size: 16px;
    text-align: center;
    background: rgba(48, 202, 206, 0.15);
    color: rgba(0, 0, 0, 0.75);
}

.form-status--error {
    background: rgba(254, 113, 83, 0.18);
    color: #8c2f1b;
}

/* La imagen mide 824px y hasta ~1855px de ventana llena la columna. A partir
   de ahí la columna es más ancha que el archivo y, sin centrar, el mapa se
   quedaba pegado a la izquierda, descuadrado respecto al botón de enviar
   (16px a 1920, 176px a 2560). No se estira para no reescalar hacia arriba. */
.contact-map {
  display: flex;
  justify-content: center;
}

.contact-map img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/*Seguimiento Redes Sociales*/
.local-business {
    flex-direction: column;
    padding: 16px 0px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
}

.local-business .nos-seguimos {
    position: relative;
    align-self: stretch;
    margin-top: -1.00px;
    font-family: "Pangolin", Helvetica;
    font-weight: 400;
    color: var(--color-accent);
    font-size: 32px;
    text-align: center;
    letter-spacing: 0;
    line-height: 44px;
}

.local-business .socials {
    width: 186px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
}

.local-business .img {
    position: relative;
    width: 44px;
    height: 44px;
}

/* =========================
   UX + RGPD + SEGURIDAD
========================= */
.form-warning {
    font-family: var(--font-family-figtree);
    font-size: 16px;
    color: rgba(0,0,0,0.6);
    background: rgba(48, 202, 206, 0.08);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-family-figtree);
    font-size: 16px;
    color: rgba(30, 30, 30, 0.85);
    line-height: 24px;
}

/* Tamaño explícito en vez de escalar la casilla del navegador (que mide
   distinto en cada uno): así el margen que la centra en la primera línea es
   exacto, (24px de interlineado - 16px de casilla) / 2 */
.privacy-checkbox input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 4px;
    accent-color: var(--color-cta);
    cursor: pointer;
}

.privacy-checkbox a {
    color: var(--color-accent);
    text-decoration: underline;
}

.privacy-checkbox a:hover {
    opacity: 0.8;
}

.legal-text {
    font-family: var(--font-family-figtree);
    font-size: 16px;
    line-height: 24px;
    color: rgba(30, 30, 30, 0.6);
    margin-top: -6px;
}

/* botón estado desactivado */
.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (min-width: 768px) {

  .contact-buttons {
    flex-direction: row;
  }

  .form-title {
    font-size:32px;
  }
}

@media (min-width: 1030px) {

  /* =====================
    FORMULARIO / CONTACTO
  ===================== */

  .contact-section {
    padding: 48px 80px;
  } 

  .contact-layout {
    flex-direction: row;
  }

  .contact-form {
    padding: 0;
    border: none;
  }

  /* La entradilla arranca a la altura del aviso del formulario, no de su
     título: se descuelga el alto de línea de "Formulario de Contacto"
     (32px de Pangolin) más el hueco de 24px del formulario */
  .contact-intro {
    margin-top: 68px;
  }

  /* Con la columna ancha, el marco quedaba más apaisado que las propias fotos
     y las recortaba por arriba y por abajo. Más alto = proporción más cercana
     a la de una foto apaisada normal (4:3 o 3:2) y menos recorte. */
  .gallery-main {
    height: 576px;
  }

  .gallery-thumbs img {
    height: 198px;
  }
}
