/* =========================
   Página de precios
   ========================= */

.prices-hero {
  padding: 80px 20px 40px;
  background: #f8f4ec;
}

.prices-hero .container {
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.prices-hero h1 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  margin-bottom: 12px;
}

.prices-hero .prices-intro {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 20px;
}

.prices-hero .btn {
  margin-top: 10px;
}

/* Общие секции "цен" */

.prices-section {
  padding: 50px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  background: #ffffff;
}

.prices-section:nth-of-type(even) {
  background: #faf7f0;
}

.prices-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.prices-section h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 12px;
}

.prices-section p {
  font-size: 14px;
  line-height: 1.7;
}

/* Списки с ценами */

.price-list {
  margin: 18px 0 10px;
  padding-left: 1.2rem;
  font-size: 14px;
  line-height: 1.7;
}

.price-list > li {
  margin-bottom: 8px;
}

.price-list li ul {
  margin-top: 6px;
  padding-left: 1.1rem;
  font-size: 13px;
}

/* Подписи-пояснения */

.prices-note {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.8;
  max-width: 800px;
}

/* Встроенный калькулятор на странице цен */

.calculator-section {
  padding: 40px 20px 70px;
  background: #ffffff;
}

.calculator-section .modal-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-precios .prices-hero,
.page-precios .prices-section,
.page-precios .calculator-section {
  padding-left: 24px;
  padding-right: 24px;
}

/* Обе кнопки "Calcular..." */
.page-precios .prices-cta {
  display: block !important;
  width: 100% !important;
  max-width: 360px;
  margin: 16px auto 0;
  text-align: center;
  padding: 20px 26px;
  font-size: 16px;
}

.page-precios .calculator-section .calc-input-row {
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.page-precios .calculator-section .calc-input-row .input-group {
  flex: 1 1 100%;
  width: 100%;
  margin-bottom: 0;
}

.page-precios .calculator-section .input-text,
.page-precios .calculator-section .input-select {
  width: 100%;
}

.page-precios .calculator-section .modal-content {
  padding: 34px 30px;
  border-radius: 22px;
}

/* Inline-калькулятор на странице PRECIOS: без внутреннего скролла */
.page-precios #calculator-section .modal-content {
  max-height: none;
  overflow: visible;
}

/* Вторичная премиальная кнопка (фиолетовая/золотистая) */
.btn-secondary {
  /* Тёплый «золотистый» градиент */
  background: linear-gradient(180deg, #f6eee3 0%, #dec29a 100%) !important;

  /* Мягкая тень, чуть менее агрессивная, чем у красной */
  box-shadow: 0 4px 14px rgba(126, 92, 43, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  border: none !important;

  /* Текст — тёмно-шоколадный, чтобы сочетался с общим стилем сайта */
  color: #2b2616;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);

  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-out !important;
}

/* Лёгкий "блик", как у красной кнопки, но более деликатный */
.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 24px rgba(126, 92, 43, 0.45);
  border: 1px solid rgb(56, 49, 9);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 4px 10px rgba(126, 92, 43, 0.35);
}

/* Кастомная стрелка у select только на странице PRECIOS */
.page-precios .calculator-section .input-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* наша стрелочка как фон */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center; /* ← вот тут мы двигаем стрелку внутрь */
  background-size: 10px 6px;

  padding-right: 36px; /* даём место под стрелку, чтобы текст не наезжал */
}

/* На странице цен лейблы выровнены по той же вертикали, что и текст в полях */
.page-precios .calculator-section .input-group label,
.calc-hint {
  padding-left: 12px; /* примерно как padding-left у input/select */
  padding-right: 12px;
}

/* =========================
   Página PRECIOS – mobile
   ========================= */
@media (max-width: 380px) {
  .page-precios .calculator-section .input-select {
    font-size: 14px;
    padding-right: 28px; /* чуть меньше, чтобы тексту было место */
  }
}

@media (max-width: 767px) {
  /* Кнопки "Calcular..." на странице – на всю ширину, по центру */
  .page-precios .prices-hero .btn,
  .page-precios .prices-section .btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 16px auto 0;
    text-align: center;
  }

  /* Герой и текстовые секции — комфортные поля */
  .page-precios .prices-hero,
  .page-precios .prices-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Сам калькулятор — почти во всю ширину экрана */
  .page-precios .calculator-section {
    padding-left: 6px;
    padding-right: 6px;
  }

  /* Калькулятор: строки ввода в колонку */
  .page-precios .calculator-section .calc-input-row {
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
  }

  .page-precios .calculator-section .calc-input-row .input-group {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 0;
  }

  .page-precios .calculator-section .input-text,
  .page-precios .calculator-section .input-select {
    width: 100%;
  }

  /* Чуть компактнее сама карточка калькулятора */
  .page-precios .calculator-section .modal-content {
    padding: 24px 18px;
    border-radius: 22px;
    max-height: none;
    overflow: visible;
  }

  .page-precios .calculator-section .input-text,
  .page-precios .calculator-section .input-select {
    width: 100%;
  }

  .page-precios .calculator-section .modal-content {
    padding: 24px 30px;
    border-radius: 22px;
  }

  /* На мобильном всё в одну левую вертикаль */

  .page-precios #calculator-section .calc-hint {
    text-align: left;
  }

  .modal-title {
    margin-top: 10px;
  }
}

/* =========================
   Página PRECIOS – tablets
   ========================= */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Чуть больше "рамка" по бокам у текста */
  .page-precios .prices-hero {
    padding: 80px 40px 50px;
  }

  .page-precios .prices-section {
    padding: 60px 40px;
  }

  .page-precios .prices-hero .container,
  .page-precios .prices-section .container {
    max-width: 900px;
    margin: 0 auto;
  }

  /* Калькулятор – по центру, не во всю ширину */
  .page-precios .calculator-section {
    padding: 60px 40px 80px;
  }

  .page-precios .calculator-section .modal-content {
    max-width: 640px;
    margin: 0 auto;
  }

  .page-precios .prices-section-card {
    background: #fffdf8;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
    padding: 32px 34px 28px;
  }
}

/* =========================
   Página PRECIOS – форма и футер окончательно
   ========================= */

/* Секция с формой на странице цен — обычный блок, не плавающий */
.page-precios .floating-contact-zone {
  position: static !important;
  top: auto !important;
  height: auto !important;
  z-index: auto !important;

  margin: 40px 0 0;
  padding: 0 24px 40px;
}

/* Контейнер формы по центру */
.page-precios .floating-contact-zone .container {
  position: static !important;

  max-width: 960px;
  margin: 0 auto 16px;
  padding: 0;

  display: flex;
  justify-content: center;
}

/* Карточка формы — по центру, без var(--stack-left) и bottom:-20px */
.page-precios .floating-contact-zone .contact-card {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;

  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Футер на странице цен — обычный, без подпрыгиваний */
.page-precios .site-footer {
  margin-top: 0 !important;
  padding-top: 0px;
}

.floating-contact-zone .contact-card {
  margin: 0 auto !important;
}

.footer-left {
  justify-content: flex-start;
  padding-left: 40px;
}
.footer-copy-wrap {
  flex-direction: row;
}
/*
.copy-divider {
  display: block;
}
*/
/* =========================
   FIX: разделитель копирайта
   ========================= */

/* На всех экранах шире очень маленького телефона показываем span.copy-divider */
@media (min-width: 457px) {
  .copy-divider {
    display: inline;
  }

  /* На всякий случай глушим "второй" разделитель-псевдоэлемент */
  .footer-copy::after {
    content: "";
    margin: 0;
  }
}

/* А на совсем узком телефоне (когда текст в колонку) разделитель скрываем */
@media (max-width: 476px) {
  .copy-divider {
    display: none;
  }
}

/* =========================================
   ШИРОКИЕ ЭКРАНЫ – ≥960px (precios.php)
   ========================================= */
@media (min-width: 960px) {
  /* --- ГЕРОЙ --- */

  .page-precios .prices-hero {
    padding: 80px 0 60px;
  }

  .page-precios .prices-hero-title {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 40px;
    line-height: 1.3;
  }

  /* обёртка внутри героя: текст + картинка */
  .page-precios .prices-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: 10px;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
  }

  /* карточка с текстом во вступлении */
  .page-precios .prices-hero-card {
    background: #fdf8f1;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    padding: 28px 32px;
    max-width: 520px;
  }

  .page-precios .prices-hero-card p {
    margin: 0;
  }

  /* фото курьера справа */
  .page-precios .prices-hero-photo {
    display: flex;
    justify-content: center;
  }

  .page-precios .prices-hero-photo img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
  }

  /* --- ДВЕ КАРТОЧКИ: DISTRIBUCIÓN / DISEÑO --- */

  /* обёртка, в которой стоят два блока */
  .page-precios .prices-sections-grid {
    max-width: 1100px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .page-precios .prices-section-card {
    background: #fffdf8;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
    padding: 32px 34px 28px;
  }

  .page-precios .prices-section-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
  }

  .page-precios .prices-section-card ul {
    padding-left: 18px;
    margin-bottom: 20px;
  }

  /* кнопки внутри карточек – аккуратнее и не резиновые на всю страницу */

  /* кнопки внутри карточек – компактные, не на всю ширину */
  .page-precios .prices-section-card .prices-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto !important;
    max-width: none;
    margin: 24px 0 0; /* отступ сверху, без auto-смещения по центру */
    padding: 0.9rem 2.4rem;
    font-size: 0.9rem;
  }
}

.calc-reset {
  margin-top: 30px;
  padding: 20px;
}

/* =========================================================
   BLOQUE: DISTRIBUCIÓN + DISEÑO (под текстами над калькулятором)
   ========================================================= */

/* Базовая секция */
.prices-sections {
  padding: 60px 0;
}

.prices-sections .container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Сетка для секции с двумя блоками */
.prices-sections-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* по умолчанию одна колонка */
  gap: 32px;
}

/* Карточка "Distribución" / "Diseño" (вид для планшетов и десктопа) */
.prices-section-card {
  background-color: #fff7eb;
  border-radius: 24px;
  padding: 28px 24px 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.prices-section-card h2 {
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.prices-section-card .price-list {
  margin: 0 0 16px;
}

.prices-section-card .prices-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #555;
}

/* ---------------------------
   1) Телефоны (до 440px)
   --------------------------- */
@media (max-width: 439px) {
  /* Дадим просто поля по краям всей секции,
     чтобы текст не лип к краю экрана */
  .prices-hero,
  .prices-sections {
    padding-left: 16px;
    padding-right: 16px;
  }

  .prices-sections .container {
    padding: 0;
  }

  /* На телефонах убираем «карточный» вид:
     оставляем просто текст + отступ снизу */
  .prices-section-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 32px;
  }
}

/* ---------------------------
   2) Планшеты (440–959px)
   одна колонка, но уже карточки
   --------------------------- */
@media (min-width: 440px) and (max-width: 959px) {
  .prices-sections .container {
    max-width: 720px; /* чтобы текст не растягивался на всю ширину */
    margin: 0 auto;
    padding: 0 24px;
  }

  .prices-section-card {
    /* здесь карточки выглядят так же, как на десктопе */
    background-color: #fff7eb;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    padding: 28px 24px 32px;
  }
}

/* ---------------------------
   3) Десктоп (≥ 960px)
   две карточки в ряд
   --------------------------- */
@media (min-width: 960px) {
  .prices-sections-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
}

/* Колонки "Distribución / Diseño": делаем флекс-колонки */
.page-precios .prices-section-card {
  display: flex;
  flex-direction: column;
}

/* Кнопка всегда прижата к нижнему паддингу карточки */
.page-precios .prices-section-card .prices-cta {
  margin-top: auto; /* съедает свободное место сверху */
  margin-bottom: 0; /* низ задаётся паддингом самой карточки */
}

/* Светлая кнопка "Calcular diseño" — более читаемый контур */
.page-precios .btn.btn-secondary.prices-cta {
  border: 1px solid rgba(186, 142, 103, 0.85); /* тёплая «золотая» рамка */
  box-shadow: 0 10px 24px rgba(186, 142, 103, 0.35);
}
