/* ============================================
   CONTACTO PAGE — Ferrat Design System
   ============================================ */

/* === HERO === */
.ct-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ct-hero-bg { position: absolute; inset: 0; }
.ct-hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.ct-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 56, 78, 0.85) 0%, rgba(0, 56, 78, 0.4) 60%, rgba(0,0,0,0) 100%);
}

.ct-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
}

.ct-hero-content h1 {
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: white;
  text-transform: capitalize;
  letter-spacing: 2px;
}

.ct-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.ct-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.ct-breadcrumb a:hover { color: var(--green-light); }
.ct-breadcrumb span:last-child { color: white; }

/* === FRANJA VERDE === */
.ct-green {
  background: var(--green-light);
  padding: 64px 105px;
}

.ct-green-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.ct-green-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: white;
}

.ct-green-line { width: 48px; height: 2px; background: white; }

.ct-green-inner h2 {
  font-weight: 700;
  font-size: 44px;
  line-height: 1.15;
  color: white;
  margin-bottom: 20px;
}

.ct-green-inner p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
}

/* === CANALES DE CONTACTO (cards con imagen bg) === */
.ct-channels {
  padding: 120px 105px;
  background: white;
}

.ct-channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

.ct-channels-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 320px));
}

.ct-channels-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 320px));
}

.ct-channels-grid--1 {
  grid-template-columns: minmax(0, 320px);
}

.ct-ch-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s;
}

.ct-ch-card:hover {
  transform: translateY(-6px);
}

.ct-ch-card-bg {
  position: absolute;
  inset: 0;
}

.ct-ch-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ct-ch-card:hover .ct-ch-card-bg img {
  transform: scale(1.06);
}

.ct-ch-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 56, 78, 0.95) 0%, rgba(0, 56, 78, 0.6) 50%, rgba(0,0,0,0.15) 100%);
}

.ct-ch-card-content {
  position: relative;
  z-index: 2;
  padding: 32px 28px;
  width: 100%;
}

.ct-ch-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--dark-blue);
  margin-bottom: 18px;
}

.ct-ch-card-content h3 {
  font-weight: 700;
  font-size: 20px;
  color: white;
  margin-bottom: 8px;
}

.ct-ch-card-content p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.ct-ch-card-content a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.ct-ch-card-content a:hover {
  color: var(--green-light);
}

/* === FORMULARIO + IMAGEN === */
.ct-form-section {
  padding: 0;
  background: var(--bg-light);
}

.ct-form-wrapper {
  display: flex;
  max-width: 100%;
}

/* Imagen izquierda */
.ct-form-image {
  position: relative;
  flex: 0 0 45%;
  min-height: 800px;
  overflow: hidden;
}

.ct-form-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-form-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 56, 78, 0.95) 0%, rgba(0, 56, 78, 0.6) 40%, rgba(0, 56, 78, 0.3) 100%);
}

.ct-form-image-content {
  position: absolute;
  bottom: 60px;
  left: 60px;
  right: 60px;
  z-index: 2;
}

.ct-form-image-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
}

.ct-form-image-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ct-form-image-content h3 {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  color: white;
  margin-bottom: 28px;
}

.ct-form-image-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ct-form-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 10px 20px;
  transition: background 0.3s;
}

.ct-form-badge:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ct-form-badge i {
  font-size: 18px;
  color: var(--green-light);
}

.ct-form-badge span {
  font-weight: 600;
  font-size: 13px;
  color: white;
  white-space: nowrap;
}

/* Formulario derecha */
.ct-form-card {
  flex: 1;
  padding: 72px 64px;
  background: var(--bg-light);
}

.ct-form-card h3 {
  font-weight: 700;
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.ct-form-card > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-slate);
  margin-bottom: 40px;
}

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

.ct-form-group {
  margin-bottom: 24px;
}

.ct-form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.ct-form-group input,
.ct-form-group select,
.ct-form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
}

.ct-form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.ct-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.ct-form-group input:focus,
.ct-form-group select:focus,
.ct-form-group textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px rgba(164, 181, 47, 0.12);
}

.ct-btn-submit {
  width: 100%;
  text-align: center;
  padding: 18px 32px;
  font-size: 16px;
  margin-top: 8px;
}

/* === PREGUNTAS FRECUENTES === */
.ct-faq {
  padding: 120px 105px;
  background: var(--dark-blue);
}

.ct-faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.ct-faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.ct-faq-header .gc-section-label {
  justify-content: center;
}

.ct-faq-header h2 {
  font-weight: 700;
  font-size: 36px;
  color: white;
  margin-bottom: 12px;
}

.ct-faq-header p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.ct-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ct-faq-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

.ct-faq-item:hover {
  background: rgba(255, 255, 255, 0.09);
}

.ct-faq-item--open {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--green-light);
}

.ct-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.ct-faq-question span {
  font-weight: 600;
  font-size: 17px;
  color: white;
  line-height: 1.4;
}

.ct-faq-question i {
  font-size: 20px;
  color: var(--green-light);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.ct-faq-item--open .ct-faq-question i {
  transform: rotate(45deg);
}

.ct-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 28px;
}

.ct-faq-item--open .ct-faq-answer {
  max-height: 360px;
  overflow-y: auto;
  padding: 0 28px 28px;
}

.ct-faq-item--open .ct-faq-answer::-webkit-scrollbar {
  width: 6px;
}
.ct-faq-item--open .ct-faq-answer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
.ct-faq-item--open .ct-faq-answer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}
.ct-faq-item--open .ct-faq-answer::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.ct-faq-answer-content {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.ct-faq-answer-content p {
  margin: 0 0 12px;
}
.ct-faq-answer-content p:last-child {
  margin-bottom: 0;
}
.ct-faq-answer-content ul,
.ct-faq-answer-content ol {
  margin: 0 0 12px;
  padding-left: 20px;
}
.ct-faq-answer-content a {
  color: var(--green-light, #7dd87d);
  text-decoration: underline;
}

/* === MAPA + INFO UBICACIÓN === */
.ct-location {
  background: var(--green-light);
  padding: 80px 105px;
}

.ct-location-wrapper {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.ct-location-wrapper .gc-section-label {
  justify-content: center;
}

.ct-location-info {
  flex: 1;
}

.ct-location-info h2 {
  font-weight: 700;
  font-size: 36px;
  color: white;
  margin-bottom: 16px;
}

.ct-location-info > p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.ct-location-address {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 36px;
}

.ct-location-address i {
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

.ct-location-address span {
  font-size: 15px;
  font-weight: 500;
  color: white;
}

.ct-location-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ct-location-social > span {
  font-weight: 600;
  font-size: 15px;
  color: white;
}

.ct-location-social-icons {
  display: flex;
  gap: 10px;
}

.ct-location-social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.ct-location-social-icons a:hover {
  background: white;
  border-color: white;
  color: var(--dark-blue);
}

/* Mapa full width */
.ct-map-full {
  width: 100%;
  height: 480px;
}

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

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.ct-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.ct-animate.ct-visible { opacity: 1; transform: translateY(0); }

.ct-animate-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.ct-animate-left.ct-visible { opacity: 1; transform: translateX(0); }

.ct-animate-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.ct-animate-right.ct-visible { opacity: 1; transform: translateX(0); }

.ct-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.ct-animate-scale.ct-visible { opacity: 1; transform: scale(1); }

.ct-stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.ct-stagger-item.ct-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .ct-animate, .ct-animate-left, .ct-animate-right, .ct-animate-scale, .ct-stagger-item {
    opacity: 1; transform: none; transition: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .ct-channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-form-wrapper {
    flex-direction: column;
  }

  .ct-form-image {
    flex: none;
    min-height: 400px;
  }

  .ct-form-card {
    padding: 56px 48px;
  }

  .ct-map-full {
    height: 380px;
  }
}

@media (max-width: 991px) {
  .ct-hero-content h1 { font-size: 48px; }
  .ct-green { padding: 48px 40px; }
  .ct-green-inner h2 { font-size: 32px; }
  .ct-channels { padding: 80px 40px; }
  .ct-faq { padding: 80px 40px; }
  .ct-location { padding: 80px 40px; }

  .ct-form-card {
    padding: 48px 40px;
  }

  .ct-form-image-content {
    left: 40px;
    right: 40px;
    bottom: 40px;
  }

  .ct-form-image-content h3 {
    font-size: 26px;
  }
}

@media (max-width: 576px) {
  .ct-hero { min-height: 400px; }
  .ct-hero-content { padding: 0 20px; }
  .ct-hero-content h1 { font-size: 28px; }
  .ct-green { padding: 36px 20px; }
  .ct-green-inner h2 { font-size: 28px; }
  .ct-channels { padding: 48px 20px; }
  .ct-faq { padding: 48px 20px; }
  .ct-faq-header h2 { font-size: 28px; }
  .ct-faq-question span { font-size: 15px; }
  .ct-faq-question { padding: 20px 22px; }
  .ct-faq-answer { padding: 0 22px; }
  .ct-faq-item--open .ct-faq-answer { padding: 0 22px 22px; }
  .ct-location { padding: 48px 20px; }

  .ct-channels-grid {
    grid-template-columns: 1fr;
  }

  .ct-ch-card {
    min-height: 260px;
  }

  .ct-form-image {
    display: none;
  }

  .ct-form-card {
    border-radius: 0;
  }

  .ct-form-card::before {
    content: '+35 años de experiencia avalan nuestra gestión';
    display: block;
    font-weight: 700;
    font-size: 18px;
    color: var(--dark-blue);
    text-align: center;
    background: var(--green-light);
    margin: -36px -24px 32px;
    padding: 24px 24px;
    border-radius: 0;
  }

  .ct-form-card {
    padding: 36px 24px;
  }

  .ct-form-card h3 { font-size: 24px; }

  .ct-form-row {
    grid-template-columns: 1fr;
  }

  .ct-location-info h2 { font-size: 28px; }
  .ct-map-full { height: 300px; }

  .ct-location-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* === FORMULARIO RÁPIDO CONTACTO === */
.ct-quick-form-wrapper {
  max-width: 800px; margin: 60px auto 0; padding: 40px 32px;
  background: #fff; border-radius: 16px; box-shadow: 0 6px 28px rgba(0,0,0,0.08);
}
.ct-quick-form-wrapper h3 {
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: 24px; margin: 0 0 8px; color: var(--text-dark, #00384e);
  text-align: center;
}
.ct-quick-form-wrapper p {
  font-size: 14px; color: var(--text-gray, #666); margin: 0 0 28px; text-align: center;
}
.ct-quick-form .ct-quick-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.ct-quick-form input, .ct-quick-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #e0e0e0;
  border-radius: 8px; font-family: "Inter", sans-serif; font-size: 14px;
}
.ct-quick-form input:focus, .ct-quick-form textarea:focus {
  outline: none; border-color: var(--green-primary, #a4b52f);
}
.ct-quick-form textarea { display: block; margin-bottom: 14px; }
@media (max-width: 576px) {
  .ct-quick-form-wrapper { padding: 28px 22px; }
  .ct-quick-form .ct-quick-row { grid-template-columns: 1fr; }
}

