/* =====================================================================
   3 GARRAFAS NEVERÍA — PÁGINA CONTACTO (v2 rediseñado)
   Basado en Layout_3_Garrafas_V6.jpg
   ===================================================================== */

:root {
  --con-cream: #fcf1d8;
  --con-cream-deep: #f5e6c0;
  --con-yellow: #ffd400;
  --con-yellow-soft: #faf1cc;
  --con-purple: #5448dd;
  --con-purple-soft: #e8e0f5;
  --con-pink: #e95068;
  --con-pink-soft: #fbdde5;
  --con-brown: #6b4023;
  --con-brown-dark: #4a2a15;
  --con-red: #d62828;
}

main#main { padding: 0; }

/* ============================================
   HERO — 3 GARRAFAS ESTÁ SIEMPRE PARA TI
   ============================================ */
.con-hero {
  position: relative;
  padding: 160px 0 120px;
  background: var(--con-pink);
  overflow: hidden;
}
.con-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.con-hero-text {
  padding-left: 40px;
  position: relative;
  z-index: 3;
}
.con-hero-title {
  font-family: 'MidcentDisco', serif;
  font-weight: 400;
  font-size: clamp(44px, 4.6vw, 68px);
  line-height: 1.05;
  color: var(--con-cream);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.con-hero-sub {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--con-cream);
  opacity: 0.9;
  margin: 0;
  max-width: 40ch;
}
.con-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}
/* Disco coral oscuro detrás del producto */
.con-hero-disco {
  position: absolute;
  width: clamp(360px, 36vw, 528px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #c73f52;
  z-index: 1;
}
.con-hero-visual img {
  width: auto;
  max-height: 624px;
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  animation: conHeroFloat 6s ease-in-out infinite;
}
@keyframes conHeroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Goteo coral que baja del hero sobre el form cream */
.con-hero-goteo {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 32vh;
  display: block;
  z-index: 3;
  pointer-events: none;
}
@media (max-width: 900px) {
  .con-hero-goteo { height: 18vh; }
}

/* Círculos decorativos planos */
.con-hero-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.con-hero-circle--purple-right {
  width: clamp(120px, 13vw, 200px);
  aspect-ratio: 1/1;
  background: var(--con-purple);
  top: 10%;
  right: 6%;
}
.con-hero-circle--purple-left {
  width: clamp(70px, 8vw, 110px);
  aspect-ratio: 1/1;
  background: var(--con-purple);
  top: 40%;
  left: 40%;
}
.con-hero-circle--yellow-bottom {
  width: clamp(110px, 12vw, 180px);
  aspect-ratio: 1/1;
  background: var(--con-yellow);
  bottom: 22%;
  right: -40px;
}
.con-hero-circle--yellow-left {
  width: clamp(70px, 8vw, 110px);
  aspect-ratio: 1/1;
  background: var(--con-yellow);
  top: 55%;
  left: -30px;
}

@media (max-width: 900px) {
  .con-hero { padding: 120px 0 90px; }
  .con-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 24px;
  }
  .con-hero-text { padding-left: 0; }
  .con-hero-title { font-size: clamp(38px, 10vw, 52px); max-width: none; }
  .con-hero-visual { min-height: 340px; }
  .con-hero-visual img { max-height: 456px; }
  .con-hero-circle--purple-right { top: 4%; right: 4%; }
  .con-hero-circle--yellow-bottom { bottom: 6%; right: -30px; }
}


/* ============================================
   SECCIÓN FORMULARIO
   ============================================ */
.con-form-section {
  position: relative;
  background: var(--con-cream);
  padding: 320px 0 60px;
  overflow: hidden;
}

/* ============================================
   FORMULARIO — SELECTOR + 3 RUTAS
   ============================================ */

.con-form-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ---------- Intro ---------- */
.con-form-heading {
  font-family: 'MidcentDisco', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  color: var(--con-brown);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  text-align: center;
}
.con-form-lead {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--con-brown);
  opacity: 0.75;
  margin: 0 0 48px;
  text-align: center;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Selector: 3 tarjetas ---------- */
.con-form-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.con-card {
  background: transparent;
  border: 2px solid var(--con-cream-deep);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}
.con-card:hover {
  border-color: var(--con-pink);
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
.con-card:focus-visible {
  outline: none;
  border-color: var(--con-pink);
  box-shadow: 0 0 0 4px rgba(233, 80, 104, 0.15);
}
.con-card-title {
  font-family: 'MidcentDisco', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  color: var(--con-brown);
  letter-spacing: -0.01em;
}
.con-card-desc {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--con-brown);
  opacity: 0.65;
  margin-top: auto;
}

/* ---------- Container de forms ---------- */
.con-form-container {
  animation: conFormFadeIn 0.35s ease;
}
@keyframes conFormFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.con-form-back {
  background: transparent;
  border: none;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--con-brown);
  opacity: 0.7;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 24px;
  transition: opacity 0.2s ease;
}
.con-form-back:hover { opacity: 1; }

.con-form-title {
  font-family: 'MidcentDisco', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  color: var(--con-brown);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

/* ---------- Form base ---------- */
.con-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Grift', 'Manrope', sans-serif;
}
.con-form[hidden] { display: none; }

.con-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- Field (label + input) ---------- */
.con-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.con-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--con-brown);
  opacity: 0.9;
}
.con-field input[type="text"],
.con-field input[type="email"],
.con-field input[type="tel"],
.con-field input[type="date"],
.con-field select,
.con-field textarea {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--con-brown);
  background: #ffffff;
  border: 1.5px solid var(--con-cream-deep);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.con-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
.con-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b4023' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.con-field input:focus,
.con-field select:focus,
.con-field textarea:focus {
  outline: none;
  border-color: var(--con-pink);
  box-shadow: 0 0 0 3px rgba(233, 80, 104, 0.12);
}
.con-field input::placeholder,
.con-field textarea::placeholder {
  color: var(--con-brown);
  opacity: 0.4;
}

.con-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.con-field-counter {
  font-size: 12px;
  color: var(--con-brown);
  opacity: 0.5;
  align-self: flex-end;
  margin-top: -2px;
}
.con-field-counter.is-near-limit { color: var(--con-pink); opacity: 0.9; }
.con-field-counter.is-over-limit { color: var(--con-red); opacity: 1; font-weight: 500; }

.con-field-hint {
  font-size: 12px;
  color: var(--con-brown);
  opacity: 0.55;
  line-height: 1.4;
}

/* ---------- File input ---------- */
.con-field input[type="file"] {
  font-family: inherit;
  font-size: 14px;
  color: var(--con-brown);
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px dashed var(--con-cream-deep);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.con-field input[type="file"]:hover {
  border-color: var(--con-pink);
  background: rgba(255, 255, 255, 0.6);
}
.con-field input[type="file"]::-webkit-file-upload-button {
  font-family: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  background: var(--con-brown);
  color: var(--con-cream);
  cursor: pointer;
  margin-right: 12px;
}

/* ---------- Fieldset (checkbox group) ---------- */
.con-field-group {
  border: 1.5px solid var(--con-cream-deep);
  border-radius: 12px;
  padding: 16px 20px 20px;
  background: #ffffff;
  margin: 0;
}
.con-field-group legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--con-brown);
  opacity: 0.9;
  padding: 0 6px;
}
.con-field-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin-top: 6px;
}
.con-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--con-brown);
  cursor: pointer;
  user-select: none;
}
.con-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--con-pink);
  cursor: pointer;
  margin: 0;
}

/* ---------- Checkbox de privacidad (single) ---------- */
.con-field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}
.con-field-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--con-pink);
  cursor: pointer;
  flex-shrink: 0;
}
.con-field-check label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--con-brown);
  opacity: 0.85;
  cursor: pointer;
}
.con-field-check a {
  color: var(--con-pink);
  text-decoration: underline;
}

/* ---------- Estado error por campo ---------- */
.con-field.has-error input,
.con-field.has-error select,
.con-field.has-error textarea,
.con-field-group.has-error {
  border-color: var(--con-red);
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.10);
}
.con-field-error {
  font-size: 13px;
  color: var(--con-red);
  margin-top: 2px;
}

/* ---------- Botón submit ---------- */
.con-form-submit {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--con-cream);
  background: var(--con-pink);
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  cursor: pointer;
  margin-top: 12px;
  align-self: flex-start;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-width: 200px;
}
.con-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 80, 104, 0.25);
}
.con-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Mensaje de error global del form ---------- */
.con-form-msg {
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 16px;
  line-height: 1.5;
}
.con-form-msg--err {
  background: rgba(214, 40, 40, 0.08);
  color: var(--con-red);
  border: 1px solid rgba(214, 40, 40, 0.2);
}

/* ---------- Vista de éxito ---------- */
.con-form-success {
  text-align: center;
  padding: 40px 20px;
  animation: conFormFadeIn 0.4s ease;
}
.con-form-success-title {
  font-family: 'MidcentDisco', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--con-brown);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.con-form-success-msg {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--con-brown);
  opacity: 0.8;
  margin: 0 auto 32px;
  max-width: 48ch;
}
.con-form-success .con-form-back {
  display: inline-block;
  padding: 14px 28px;
  background: var(--con-pink);
  color: var(--con-cream);
  border-radius: 999px;
  font-size: 15px;
  opacity: 1;
  margin: 0;
}
.con-form-success .con-form-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 80, 104, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .con-form-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .con-card { min-height: auto; padding: 24px 20px; }
  .con-field-row { grid-template-columns: 1fr; }
  .con-field-checks { grid-template-columns: 1fr; }
  .con-form-submit { width: 100%; }
  .con-form-heading { font-size: clamp(28px, 8vw, 40px); }
  .con-form-lead { font-size: 16px; margin-bottom: 32px; }
}

/* ============================================
   SECCIÓN VISÍTANOS (SUCURSALES)
   ============================================ */
.con-sucursales {
  background: var(--con-cream);
  padding: 40px 0 70px;
  position: relative;
  overflow: hidden;
}
.con-sucursales-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.con-sucursales-header {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 32px;
}
.con-sucursales-title {
  font-family: 'MidcentDisco', serif;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--con-brown);
  margin: 0 0 4px;
  letter-spacing: -1px;
  text-transform: none;
}
.con-sucursales-underline {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: 14px;
}
.con-sucursales-sub {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 14.5px;
  color: var(--con-brown);
  opacity: 0.85;
  margin: 0;
  max-width: 240px;
}
.con-sucursales-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.con-sucursal-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px -14px rgba(107, 64, 35, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.con-sucursal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(107, 64, 35, 0.3);
}
.con-sucursal-image {
  width: 100%;
  height: 130px;
  background: var(--con-cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.con-sucursal-image svg {
  width: 100%;
  height: 100%;
}
.con-sucursal-body { padding: 18px 20px 22px; }
.con-sucursal-name {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--con-brown);
  margin: 0 0 6px;
}
.con-sucursal-address {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 12.5px;
  color: var(--con-brown);
  opacity: 0.75;
  line-height: 1.45;
  margin: 0 0 12px;
}
.con-sucursal-link {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--con-pink);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.con-sucursal-link:hover { text-decoration: underline; }

.con-sucursales-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.con-sucursales-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: var(--con-purple);
  color: white;
  border-radius: 50px;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .3s ease;
}
.con-sucursales-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(84, 72, 221, 0.5);
}

/* Círculos decorativos de sucursales */
.con-sucursales-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.con-sucursales-blob--pink {
  width: 60px; height: 60px;
  background: var(--con-pink);
  left: -20px; top: 40%;
  opacity: 0.9;
}
.con-sucursales-blob--pink::before {
  content: "✦";
  position: absolute;
  top: 30%; left: 30%;
  color: white;
  font-size: 16px;
}
.con-sucursales-blob--yellow-sm {
  width: 20px; height: 20px;
  background: var(--con-yellow);
  left: 8%; top: 15%;
}
.con-sucursales-blob--pink-sm {
  width: 14px; height: 14px;
  background: var(--con-pink);
  left: 16%; bottom: 30%;
}

/* ============================================
   BANDA CTA MORADA
   ============================================ */
.con-cta {
  background: var(--con-purple);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}
.con-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.con-cta-text {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}
.con-cta-title {
  font-family: 'MidcentDisco', serif;
  font-weight: 400;
  font-size: clamp(30px, 3.5vw, 46px);
  color: white;
  margin: 0 0 12px;
  letter-spacing: -0.8px;
  text-transform: none;
}
.con-cta-sub {
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 15px;
  color: white;
  opacity: 0.85;
  margin: 0 0 24px;
}
.con-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 14px 15px 30px;
  background: var(--con-yellow);
  color: var(--con-brown);
  border-radius: 50px;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .3s ease;
}
.con-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255, 212, 0, 0.55);
}
.con-cta-btn-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: white;
  color: #25d366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Cono de helado a la derecha */
.con-cta-cone {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: auto;
  z-index: 2;
}

/* Blobs decorativos del CTA */
.con-cta-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.con-cta-blob--pink { width: 40px; height: 40px; background: var(--con-pink); top: 22%; left: 8%; }
.con-cta-blob--pink::before { content: "✦"; position: absolute; top: 20%; left: 25%; color: white; font-size: 18px; }
.con-cta-blob--yellow { width: 100px; height: 100px; background: var(--con-yellow); left: -30px; bottom: 10%; opacity: 0.9; }
.con-cta-blob--plus { width: 30px; height: 30px; background: var(--con-pink); right: 20%; top: 20%; display: flex; align-items: center; justify-content: center; }
.con-cta-blob--plus::before { content: "+"; color: white; font-weight: 900; font-size: 22px; }

/* ============================================
   FEEDBACK — mensajes de éxito/error del form
   ============================================ */
.con-form-msg {
  padding: 16px 20px;
  border-radius: 12px;
  font-family: 'Grift', 'Manrope', sans-serif;
  font-size: 14px;
  margin-top: 12px;
  display: none;
}
.con-form-msg.is-visible { display: block; }
.con-form-msg--ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.con-form-msg--err {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .con-sucursales-header { grid-template-columns: 1fr; gap: 20px; }
  .con-sucursales-cards { grid-template-columns: repeat(2, 1fr); }
  .con-cta-cone { width: 160px; opacity: 0.7; }
}

@media (max-width: 900px) {
  .con-form-section { padding: 180px 0 50px; }
}

@media (max-width: 640px) {
  .con-sucursales-cards { grid-template-columns: 1fr; }
  .con-cta-inner { grid-template-columns: 1fr; }
  .con-cta-cone { display: none; }
  .con-cta-text { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .con-form-submit,
  .con-sucursal-card {
    animation: none !important;
    transition: none !important;
  }
}
