/* ══════════════════════════════════════════════════════════
   CONTACTO · CSS específico de página
   TaxisCastelldefels.es · Mayo 2026
   ══════════════════════════════════════════════════════════ */

/* ── 01. HERO ──────────────────────────────────────────── */
.ct-hero {
  background: var(--black);
  padding: var(--section-y) 0 calc(var(--section-y) + 1rem);
}

.ct-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.ct-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ct-hero-h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}

.ct-hero-h1 em {
  font-style: normal;
  color: var(--yellow);
}

.ct-hero-sub {
  font-size: 1.05rem;
  color: var(--gray-light);
  line-height: 1.65;
  max-width: 420px;
  margin: 0;
}

/* Trust pills */
.ct-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}

.ct-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: .02em;
}

.ct-trust-pill svg {
  color: var(--yellow);
}

.ct-trust-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(.85); }
}

/* ── Method cards ───────────────────────────────────────── */
.ct-methods-stack {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.ct-method {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.ct-method:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}

/* Primario: llamar */
.ct-method--primary {
  border-top: 3px solid var(--yellow);
}

.ct-method--primary:hover {
  box-shadow: 0 8px 28px rgba(245,197,24,.18);
}

/* Terciario: email (más discreto) */
.ct-method--tertiary {
  opacity: .88;
  padding: 1rem 1.5rem;
}

.ct-method--tertiary:hover {
  opacity: 1;
}

/* Icono */
.ct-method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--yellow);
  background: var(--yellow-soft);
}

.ct-method--primary .ct-method-icon {
  background: var(--yellow);
  color: var(--black);
}

.ct-method--tertiary .ct-method-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.06);
  color: var(--gray-light);
}

/* Texto */
.ct-method-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.ct-method-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray);
}

.ct-method-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-method--primary .ct-method-value {
  font-size: var(--text-lg);
  color: var(--yellow);
  letter-spacing: -0.01em;
}

.ct-method--tertiary .ct-method-value {
  font-size: .9rem;
  color: var(--gray-light);
}

.ct-method-sub {
  font-size: .72rem;
  color: var(--gray);
  margin-top: .05rem;
}

.ct-method-arrow {
  flex-shrink: 0;
  color: var(--gray-dark);
  transition: transform .2s;
}

.ct-method:hover .ct-method-arrow {
  color: var(--gray);
  transform: translateX(3px);
}

/* ── Hero mobile ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .ct-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ct-hero-sub {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .ct-method-value {
    font-size: var(--text-base);
  }
  .ct-method--primary .ct-method-value {
    font-size: 1.15rem;
  }
  .ct-method--tertiary .ct-method-value {
    font-size: .82rem;
  }
}


/* ── 02. SECCIÓN FORMULARIO ────────────────────────────── */
.ct-form-section {
  background: var(--dark);
}

.ct-form-wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* Contenedor del formulario */
.ct-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Cabecera del formulario */
.ct-form-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--card) 0%, var(--card-2) 100%);
}

.ct-form-head-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--yellow);
}

.ct-form-head-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 .2rem;
}

.ct-form-head-sub {
  font-size: .78rem;
  color: var(--gray);
  margin: 0;
}

/* Alerta de error / info */
.ct-form-alert {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 1.25rem 2rem 0;
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  line-height: 1.5;
}

.ct-form-alert--error {
  background: var(--red-soft);
  border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5;
}

.ct-form-alert--error svg {
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--red);
}

.ct-form-alert a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
}

/* Cuerpo del formulario */
.ct-form-body {
  padding: 1.75rem 2rem 0;
}

/* Grid del formulario */
.ct-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ct-field--full {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .ct-form-grid {
    grid-template-columns: 1fr;
  }
  .ct-field--full {
    grid-column: 1;
  }
}

/* Honeypot */
.ct-honeypot {
  display: none;
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Labels */
.ct-label {
  display: block;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray);
  margin-bottom: .45rem;
}

.ct-req {
  color: var(--yellow);
  margin-left: .1rem;
}

.ct-opt {
  color: var(--gray-dark);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: .65rem;
  margin-left: .3rem;
}

/* Inputs, selects, textarea */
.ct-input,
.ct-select,
.ct-textarea {
  display: block;
  width: 100%;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-md);
  padding: .875rem 1rem;
  font-size: .95rem;
  color: var(--white);
  font-family: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  color-scheme: dark;
}

.ct-input::placeholder,
.ct-textarea::placeholder {
  color: var(--gray-dark);
}

.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,197,24,.1);
}

/* Error state */
.ct-input.is-error,
.ct-select.is-error,
.ct-textarea.is-error {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(239,68,68,.12);
}

/* Select chevron */
.ct-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.ct-select option {
  background: #181818;
}

/* Date/time inputs */
.ct-input--date,
.ct-input--time {
  cursor: pointer;
}

/* Textarea */
.ct-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

/* Mensajes de error de campo */
.ct-field-error {
  display: block;
  font-size: .73rem;
  color: #fca5a5;
  margin-top: .35rem;
}

/* Hint bajo el campo */
.ct-field-hint {
  display: block;
  font-size: .72rem;
  color: var(--gray-dark);
  margin-top: .35rem;
  line-height: 1.4;
}

/* Campo condicional (número de vuelo) */
.ct-field-conditional {
  /* Alpine x-show lo controla */
}

/* Checkbox de privacidad */
.ct-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  padding: .25rem 0;
}

.ct-checkbox-wrap.is-error .ct-checkbox-label {
  color: #fca5a5;
}

.ct-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--yellow);
  cursor: pointer;
  border-radius: var(--radius-xs);
}

.ct-checkbox-label {
  font-size: .84rem;
  color: var(--gray-light);
  line-height: 1.5;
}

.ct-checkbox-label a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
}

.ct-checkbox-label a:hover {
  text-decoration: underline;
}

/* Footer del formulario (submit) */
.ct-form-footer {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .75rem;
}

.ct-submit-btn {
  /* Extiende .btn-primary */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: var(--text-base);
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: var(--shadow-cta);
  transition: var(--transition);
  cursor: pointer;
  white-space: normal;
  text-align: center;
}

.ct-submit-btn:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(245,197,24,.4);
}

.ct-submit-btn:active {
  transform: translateY(0);
}

.ct-form-microcopy {
  text-align: center;
  font-size: .72rem;
  color: var(--gray-dark);
  margin: 0;
}

/* ── Estado de éxito ────────────────────────────────────── */
.ct-form-success {
  padding: 3.5rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ct-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.ct-success-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0;
}

.ct-success-sub {
  font-size: .95rem;
  color: var(--gray-light);
  line-height: 1.65;
  max-width: 480px;
  margin: 0;
}

.ct-success-note {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.5;
  max-width: 400px;
  margin: 0;
}

.ct-success-note a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
}

.ct-success-note a:hover {
  text-decoration: underline;
}

/* Mobile: form padding reducido */
@media (max-width: 600px) {
  .ct-form-head  { padding: 1.25rem 1.25rem 1rem; }
  .ct-form-body  { padding: 1.25rem 1.25rem 0; }
  .ct-form-footer{ padding: 1.25rem 1.25rem 1.5rem; }
  .ct-form-alert { margin: 1rem 1.25rem 0; }
  .ct-form-success { padding: 2.5rem 1.5rem; }
}


/* ── 03. LOCALIZACIÓN ──────────────────────────────────── */
.ct-location-section {
  background: var(--bg-light-alt);
}

.ct-location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* Tarjetas de contacto */
.ct-contact-cards {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.ct-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-on-light);
  transition: var(--transition);
}

.ct-contact-card:hover {
  border-color: rgba(212,168,0,.3);
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
}

.ct-contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(212,168,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--yellow-dark);
}

.ct-contact-card-content {
  flex: 1;
  min-width: 0;
}

.ct-contact-card-content h3 {
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-2-on-light);
  margin: 0 0 .3rem;
}

.ct-contact-card-content p,
.ct-contact-card-content address p {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-on-light);
  line-height: 1.4;
  margin: 0;
}

.ct-contact-card-content a {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-on-light);
  text-decoration: none;
  transition: color .18s;
}

.ct-contact-card-content a:hover {
  color: var(--yellow-dark);
}

.ct-contact-card-content small {
  display: block;
  font-size: .73rem;
  color: var(--text-2-on-light);
  margin-top: .25rem;
  line-height: 1.4;
}

/* Mapa */
.ct-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 400px;
  min-height: 260px;
  box-shadow: var(--shadow-on-light);
  border: 1px solid var(--border-light);
}

.ct-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Zonas de cobertura */
.ct-zones {
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.ct-zones-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-2-on-light);
  margin-bottom: 1rem;
}

.ct-zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ct-zones-list li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2-on-light);
  padding: .3rem .75rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
}

.ct-zones-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-dark);
  flex-shrink: 0;
}

/* Location responsive */
@media (max-width: 900px) {
  .ct-location-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ct-map {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .ct-map {
    height: 260px;
    border-radius: var(--radius-lg);
  }
}


/* ── 04. FAQ RESERVAS ──────────────────────────────────── */
.ct-faq-section {
  background: var(--dark);
}

.ct-faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.ct-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s;
}

.ct-faq-item:has(.ct-faq-a:not([style*="display: none"])) {
  border-color: rgba(245,197,24,.2);
}

.ct-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: .97rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s, color .18s;
  line-height: 1.4;
}

.ct-faq-q:hover {
  background: rgba(255,255,255,.03);
  color: var(--yellow);
}

.ct-faq-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .25s;
}

.ct-faq-icon svg {
  width: 13px;
  height: 13px;
  transition: transform .25s;
}

.ct-faq-icon.is-open {
  background: var(--yellow-soft);
}

.ct-faq-icon.is-open svg {
  transform: rotate(45deg);
  color: var(--yellow);
}

/* Animación FAQ body */
.ct-faq-a {
  overflow: hidden;
}

[x-cloak] { display: none !important; }

.ct-faq-enter        { transition: max-height .25s ease, opacity .2s ease; }
.ct-faq-enter-start  { max-height: 0; opacity: 0; }
.ct-faq-enter-end    { max-height: 500px; opacity: 1; }
.ct-faq-leave        { transition: max-height .2s ease, opacity .15s ease; }
.ct-faq-leave-start  { max-height: 500px; opacity: 1; }
.ct-faq-leave-end    { max-height: 0; opacity: 0; }

.ct-faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
}

.ct-faq-a-inner p {
  font-size: .9rem;
  color: var(--gray-light);
  line-height: 1.7;
  margin: .85rem 0 0;
}

/* Footer del FAQ */
.ct-faq-footer {
  max-width: 780px;
  margin: 2.5rem auto 0;
  padding: 1.75rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ct-faq-footer p {
  font-size: .95rem;
  color: var(--gray-light);
  margin: 0;
}

@media (max-width: 600px) {
  .ct-faq-footer {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
}


/* ── 05. CTA FINAL ─────────────────────────────────────── */
.ct-cta-section {
  background: var(--black);
  text-align: center;
}

.ct-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ct-cta-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

.ct-cta-title em {
  font-style: normal;
  color: var(--yellow);
}

.ct-cta-sub {
  font-size: var(--text-base);
  color: var(--gray-light);
  line-height: 1.6;
  max-width: 420px;
  margin: 0;
}

/* Número de teléfono grande y clicable */
.ct-cta-phone {
  display: block;
  font-size: clamp(2.8rem, 9vw, 4.5rem);
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  margin: .5rem 0;
  transition: color .2s, transform .2s;
}

.ct-cta-phone:hover {
  color: var(--yellow-dark);
  transform: scale(1.02);
}

/* Microcopy bajo el teléfono */
.ct-cta-micro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ct-cta-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: .25rem;
  vertical-align: middle;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@media (max-width: 480px) {
  .ct-cta-micro {
    flex-direction: column;
    gap: .5rem;
  }
}
