/*
Theme Name: Yireymmy
Theme URI: https://www.fonsi.es/
Author: Fonsi
Author URI: https://www.fonsi.es/
Description: Tema clásico, ligero y editable para Yireymmy Rent A Car.
Version: 0.5.1
Text Domain: yireymmy
*/


/* ==========================================================================
   01. TOKENS / VARIABLES
   ========================================================================== */

:root {

  /* Marca */
  --yr-navy: #062b57;
  --yr-navy-dark: #031f40;
  --yr-blue: #0a4ea3;
  --yr-blue-dark: #073769;

  --yr-yellow: #ffc400;
  --yr-yellow-hover: #eab400;

  --yr-green: #10943b;
  --yr-green-hover: #0d7f33;

  --yr-red: #e11f26;

  /* Neutros */
  --yr-text: #0f2747;
  --yr-muted: #667085;
  --yr-line: #e6e9ef;
  --yr-bg: #f7f9fc;
  --yr-white: #ffffff;

  /* Estados */
  --yr-success-bg: #eef8f1;
  --yr-success-text: #08712c;

  /* Bordes */
  --yr-radius-sm: 8px;
  --yr-radius-md: 14px;
  --yr-radius-lg: 16px;

  /* Sombras */
  --yr-shadow-sm: 0 7px 20px rgba(10, 35, 70, 0.05);
  --yr-shadow-md: 0 12px 32px rgba(12, 42, 82, 0.10);

  /* Anchuras */
  --yr-max: 1180px;
  --yr-max-wide: 1280px;

  /* Espaciados */
  --yr-space-xs: 8px;
  --yr-space-sm: 12px;
  --yr-space-md: 18px;
  --yr-space-lg: 28px;
  --yr-space-xl: 42px;
  --yr-space-2xl: 58px;
  --yr-space-3xl: 72px;

  /* Animaciones */
  --yr-transition: 0.2s ease;
}


/* ==========================================================================
   02. RESET / BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--yr-white);
  color: var(--yr-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}


/* ==========================================================================
   03. LAYOUT / CONTAINERS / GRIDS
   ========================================================================== */

.yr-container,
.yireymmy-container {
  width: min(var(--yr-max), calc(100% - 32px));
  margin-inline: auto;
}

.yr-container--wide {
  width: min(var(--yr-max-wide), calc(100% - 32px));
  margin-inline: auto;
}


/* Secciones */

.yr-section {
  padding: var(--yr-space-3xl) 0;
}

.yr-section--soft {
  background: var(--yr-bg);
}

.yr-section--navy {
  background: var(--yr-navy);
  color: var(--yr-white);
}

.yr-section--blue {
  background: var(--yr-blue);
  color: var(--yr-white);
}


/* Grids globales */

.yr-grid {
  display: grid;
  gap: 22px;
}

.yr-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yr-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yr-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* ==========================================================================
   04. TYPOGRAPHY / EDITORIAL SYSTEM
   ========================================================================== */

.yr-eyebrow,
.yireymmy-eyebrow {
  margin: 0 0 10px;
  color: var(--yr-yellow);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.yr-section-title {
  margin: 0 0 14px;
  color: var(--yr-navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.yr-section-intro {
  max-width: 760px;
  margin: 0 0 34px;
  color: var(--yr-muted);
  font-size: 17px;
}

.yr-text-muted {
  color: var(--yr-muted);
}


/* ==========================================================================
   05. BUTTON SYSTEM
   ========================================================================== */

.yr-button,
.yireymmy-buttons .wp-block-button__link,
.yr-buttons .wp-block-button__link {

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

  min-height: 48px;
  padding: 0 22px;

  border-radius: var(--yr-radius-sm);

  font-weight: 900;
  line-height: 1.15;

  transition:
    background var(--yr-transition),
    color var(--yr-transition),
    border-color var(--yr-transition),
    transform var(--yr-transition);
}

.yr-button:hover,
.yireymmy-buttons .wp-block-button__link:hover,
.yr-buttons .wp-block-button__link:hover {
  transform: translateY(-1px);
}


/* Primary */

.yr-button--primary,
.yireymmy-buttons .wp-block-button__link,
.yr-buttons .wp-block-button__link {

  border: 0;

  background: var(--yr-yellow);
  color: #111;
}

.yr-button--primary:hover,
.yireymmy-buttons .wp-block-button__link:hover,
.yr-buttons .wp-block-button__link:hover {

  background: var(--yr-yellow-hover);
  color: #111;
}


/* Secondary */

.yr-button--secondary,
.yr-button-secondary {

  border: 2px solid currentColor;

  background: transparent;
  color: var(--yr-blue);
}

.yr-button--secondary:hover,
.yr-button-secondary:hover {

  border-color: var(--yr-blue);

  background: var(--yr-blue);
  color: var(--yr-white);
}


/* WhatsApp */

.yr-button--whatsapp {

  border: 0;

  background: var(--yr-green);
  color: var(--yr-white);
}

.yr-button--whatsapp:hover {

  background: var(--yr-green-hover);
  color: var(--yr-white);
}


/* ==========================================================================
   06. GENERIC CARDS
   ========================================================================== */

.yr-card {

  background: var(--yr-white);

  border: 1px solid var(--yr-line);
  border-radius: var(--yr-radius-md);

  box-shadow: var(--yr-shadow-sm);
}

.yr-card--interactive {

  transition:
    transform var(--yr-transition),
    box-shadow var(--yr-transition),
    border-color var(--yr-transition);
}

.yr-card--interactive:hover {

  transform: translateY(-3px);

  border-color: #cad5e5;

  box-shadow: 0 14px 32px rgba(10, 35, 70, 0.11);
}


/* ==========================================================================
   07. SITE HEADER / NAVIGATION
   ========================================================================== */

.site-header {

  position: sticky;
  top: 0;
  z-index: 50;

  background: var(--yr-white);

  border-bottom: 1px solid var(--yr-line);
}

.site-header__inner {

  display: flex;
  align-items: center;

  min-height: 78px;

  gap: 28px;
}


/* Brand */

.site-brand {

  display: flex;
  align-items: center;

  min-width: max-content;
}

.site-brand .custom-logo {

  width: auto;
  max-height: 56px;
}

.site-title {

  color: var(--yr-navy);

  font-size: 24px;
  font-weight: 800;
}


/* Menu */

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {

  display: flex;
  align-items: center;

  margin: 0;
  padding: 0;

  gap: 22px;

  list-style: none;
}

.primary-nav a {

  color: #0c1e3c;

  font-size: 14px;
  font-weight: 800;

  text-transform: uppercase;
}

.primary-nav a:hover {
  color: var(--yr-blue);
}


/* CTA header */

.header-cta {

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

  min-height: 44px;
  padding: 0 18px;

  border-radius: var(--yr-radius-sm);

  background: var(--yr-yellow);
  color: #111;

  font-weight: 800;
}

.header-cta:hover {
  background: var(--yr-yellow-hover);
}


/* Mobile menu */

.menu-toggle {

  display: none;

  margin-left: auto;
  padding: 10px 12px;

  border: 1px solid var(--yr-line);
  border-radius: var(--yr-radius-sm);

  background: var(--yr-white);

  font-weight: 700;
}


/* ==========================================================================
   08. WORDPRESS / GUTENBERG BASE
   ========================================================================== */

.site-main {
  min-height: 50vh;
}

.entry-content {

  width: min(var(--yr-max), calc(100% - 32px));

  margin: 0 auto;
  padding: 42px 0;
}


/* Gutenberg full width */

.entry-content > .alignfull {

  width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


/* Gutenberg wide */

.entry-content > .alignwide {

  width: min(var(--yr-max-wide), calc(100vw - 32px));
  max-width: none;

  margin-left: 50%;

  transform: translateX(-50%);
}


/* Full width custom */

.entry-content > .yr-fullwidth,
.entry-content > .yireymmy-fullwidth,
.entry-content > .yr-hero,
.entry-content > .yireymmy-hero {

  width: 100vw;
  max-width: none;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


/* ==========================================================================
   09. HOME HERO
   ========================================================================== */

.yr-hero,
.yireymmy-hero {

  position: relative;

  min-height: 620px;

  padding: 76px 0 64px;

  color: var(--yr-white);

  background-color: var(--yr-navy);
  background-position: center center;
  background-size: cover;
}


/* Overlay */

.yr-hero::before,
.yireymmy-hero::before {

  background:
    linear-gradient(
      90deg,
      rgba(2, 25, 53, 0.93) 0%,
      rgba(3, 35, 72, 0.84) 34%,
      rgba(3, 35, 72, 0.48) 58%,
      rgba(3, 35, 72, 0.10) 100%
    ) !important;
}


/* Contenido */

.yr-hero .wp-block-cover__inner-container,
.yireymmy-hero .wp-block-cover__inner-container {

  width: min(var(--yr-max), calc(100% - 32px));

  margin-inline: auto;

  text-align: left;
}


/* Eyebrow */

.home-hero .yr-eyebrow,
.home-hero .yireymmy-eyebrow {

  margin: 0 0 14px;

  color: var(--yr-yellow);

  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}


/* H1 */

.home-hero h1 {

  max-width: 700px;

  margin: 0 0 20px;

  color: var(--yr-white);

  font-size: clamp(56px, 6.6vw, 92px);
  font-weight: 900;
  line-height: 0.92;

  letter-spacing: -0.035em;

  text-align: left;
  text-transform: uppercase;
}


/* Intro */

.home-hero h1 + p {

  max-width: 620px;

  margin: 0 0 28px;

  color: var(--yr-white);

  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
}


/* ==========================================================================
   09.1 HOME HERO — FEATURES
   ========================================================================== */

.yr-hero-features {

  display: grid !important;

  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

  width: 100%;
  max-width: 820px;

  margin: 0 0 30px;

  gap: 18px;
}


/*
 * Gutenberg utiliza flex-basis en ocasiones.
 * Lo anulamos para garantizar 4 columnas idénticas.
 */

.yr-hero-features > .wp-block-column {

  width: auto !important;
  min-width: 0 !important;

  flex: none !important;
  flex-basis: auto !important;

  margin: 0 !important;
  padding: 0 18px 0 0;

  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.yr-hero-features > .wp-block-column:last-child {

  padding-right: 0;

  border-right: 0;
}


/* Títulos */

.yr-hero-features h3 {

  margin: 0 0 5px;

  color: var(--yr-white);

  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;

  text-transform: uppercase;
}


/* Texto */

.yr-hero-features p {

  margin: 0;

  color: rgba(255, 255, 255, 0.86);

  font-size: 12px;
  line-height: 1.4;
}


/* ==========================================================================
   09.2 HOME HERO — ACTIONS
   ========================================================================== */

.yr-hero-actions {

  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 14px;
}

.yr-hero-actions .wp-block-button__link {

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

  min-height: 52px;

  padding: 0 24px;

  border-radius: var(--yr-radius-sm);

  background: var(--yr-yellow);
  color: #111;

  font-weight: 900;
}


/* Secondary hero button */

.yr-hero-actions .yr-button-secondary .wp-block-button__link,
.yr-hero-actions .yr-button--secondary .wp-block-button__link {

  border: 2px solid rgba(255, 255, 255, 0.85);

  background: transparent;
  color: var(--yr-white);
}

.yr-hero-actions .yr-button-secondary .wp-block-button__link:hover,
.yr-hero-actions .yr-button--secondary .wp-block-button__link:hover {

  border-color: var(--yr-white);

  background: var(--yr-white);
  color: var(--yr-navy);
}


/* ==========================================================================
   10. HOME — EDITABLE SECTION WRAPPER
   ========================================================================== */

.yireymmy-section,
.home-section {

  padding: var(--yr-space-3xl) 0;
}

.yireymmy-section > *,
.home-section > * {

  width: min(var(--yr-max), calc(100% - 32px));

  margin-left: auto;
  margin-right: auto;
}


/* Section title */

.yireymmy-section h2,
.home-section h2 {

  margin: 0 0 14px;

  color: var(--yr-navy);

  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;

  letter-spacing: -0.025em;
}


/* Section intro */

.yireymmy-section h2 + p,
.home-section h2 + p {

  max-width: 760px;

  margin-top: 0;
  margin-bottom: 34px;

  color: var(--yr-muted);

  font-size: 17px;
}


/* ==========================================================================
   11. HOME — BOOKING BOX
   ========================================================================== */

.yr-booking-box {

  position: relative;
  z-index: 10;

  margin-top: -42px;
  padding: 26px;

  background: var(--yr-white);

  border: 1px solid var(--yr-line);
  border-radius: var(--yr-radius-lg);

  box-shadow: var(--yr-shadow-md);
}

.yr-booking-box__fields {

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr))
    auto;

  align-items: end;

  gap: 14px;
}


/* ==========================================================================
   12. HOME — BUSINESS INTRO / ABOUT
   ========================================================================== */

.yr-business-intro {

  display: grid;

  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(320px, 0.8fr);

  align-items: center;

  gap: 34px;
}

.yr-business-intro__media img {

  display: block;

  width: 100%;

  border-radius: var(--yr-radius-md);
}

.yr-contact-card {

  padding: 26px;

  border-radius: var(--yr-radius-md);

  background:
    linear-gradient(
      135deg,
      var(--yr-blue),
      var(--yr-navy)
    );

  color: var(--yr-white);
}


/* ==========================================================================
   13. HOME — LOCATION STRIP
   ========================================================================== */

.yr-location-strip {

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 0;

  overflow: hidden;

  background: var(--yr-white);

  border: 1px solid var(--yr-line);
  border-radius: var(--yr-radius-md);
}

.yr-location-strip__item {

  padding: 22px;

  border-right: 1px solid var(--yr-line);
}

.yr-location-strip__item:last-child {
  border-right: 0;
}


/* ==========================================================================
   14. VEHICLE CARDS — GLOBAL THEME PRESENTATION
   ========================================================================== */

.frm-fleet-grid,
.yr-dynamic-grid {

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 22px;
}


/* Card */

.frm-vehicle-card,
.yr-car-card {

  display: flex;
  flex-direction: column;

  min-width: 0;

  padding: 18px;

  background: var(--yr-white);

  border: 1px solid var(--yr-line);
  border-radius: var(--yr-radius-md);

  box-shadow: var(--yr-shadow-sm);

  transition:
    transform var(--yr-transition),
    box-shadow var(--yr-transition),
    border-color var(--yr-transition);
}

.frm-vehicle-card:hover,
.yr-car-card:hover {

  transform: translateY(-3px);

  border-color: #cad5e5;

  box-shadow:
    0 14px 32px rgba(10, 35, 70, 0.11);
}


/* Image */

.frm-vehicle-card__image,
.yr-car-card__image {

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

  width: 100%;

  aspect-ratio: 4 / 3;

  margin-bottom: 14px;

  overflow: hidden;

  border-radius: 10px;

  background: #f8fafc;
  color: var(--yr-muted);
}

.frm-vehicle-card__image img,
.yr-car-card__image img {

  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* Title */

.frm-vehicle-card h3,
.yr-car-card h3 {

  margin: 0 0 7px;

  color: var(--yr-navy);

  font-size: 21px;
  line-height: 1.2;
}

.frm-vehicle-card h3 a,
.yr-car-card h3 a {
  color: inherit;
}

.frm-vehicle-card h3 a:hover,
.yr-car-card h3 a:hover {
  color: var(--yr-blue);
}


/* Meta */

.frm-vehicle-card__meta,
.yr-card-meta {

  min-height: 44px;

  margin-bottom: 12px;

  color: var(--yr-muted);

  font-size: 14px;
  line-height: 1.5;
}


/* Price */

.frm-vehicle-card__price,
.yr-card-price {

  margin: auto 0 14px;

  color: var(--yr-red);

  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}

.frm-vehicle-card__price small,
.yr-card-price small {

  color: var(--yr-text);

  font-size: 13px;
  font-weight: 800;
}


/* Detail button */

.frm-vehicle-card__link,
.yr-card-link {

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

  width: 100%;
  min-height: 44px;

  padding: 0 16px;

  border: 2px solid var(--yr-blue);
  border-radius: var(--yr-radius-sm);

  background: var(--yr-white);
  color: var(--yr-blue);

  font-size: 14px;
  font-weight: 900;

  transition:
    background var(--yr-transition),
    color var(--yr-transition);
}

.frm-vehicle-card__link:hover,
.yr-card-link:hover {

  background: var(--yr-blue);
  color: var(--yr-white);
}


/* ==========================================================================
   15. BENEFIT / FEATURE STRIP
   ========================================================================== */

.yr-benefit-strip {

  display: grid;

  grid-template-columns: repeat(5, minmax(0, 1fr));

  background:
    linear-gradient(
      135deg,
      var(--yr-blue),
      var(--yr-navy)
    );

  color: var(--yr-white);
}

.yr-benefit-strip__item {

  padding: 26px 18px;

  text-align: center;

  border-right:
    1px solid rgba(255, 255, 255, 0.16);
}

.yr-benefit-strip__item:last-child {
  border-right: 0;
}


/* ==========================================================================
   16. VEHICLE SINGLE
   ========================================================================== */

.yr-breadcrumbs {

  padding: 22px 0 8px;

  color: var(--yr-muted);

  font-size: 14px;
}

.yr-breadcrumbs a {
  color: var(--yr-blue);
}


/* Vehicle header */

.yr-vehicle-hero {

  padding: 28px 0 40px;

  background:
    linear-gradient(
      180deg,
      var(--yr-white) 0%,
      #f8fafc 100%
    );
}

.yr-vehicle-grid {

  display: grid;

  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(290px, 0.7fr);

  align-items: start;

  gap: 34px;
}


/* Category */

.yr-category-badge {

  display: inline-flex;

  padding: 7px 11px;

  border-radius: 6px;

  background: var(--yr-blue);
  color: var(--yr-white);

  font-size: 12px;
  font-weight: 800;

  text-transform: uppercase;
}


/* Vehicle title */

.yr-vehicle-title {

  margin: 16px 0 10px;

  color: #071e43;

  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
}

.yr-vehicle-sub {

  margin: 0 0 26px;

  color: #46566f;

  font-size: 18px;
}


/* Main image */

.yr-main-image {

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

  min-height: 360px;

  overflow: hidden;

  background: var(--yr-white);

  border-radius: 18px;
}

.yr-main-image img {

  width: 100%;
  height: auto;

  object-fit: contain;
}


/* Gallery */

.yr-gallery {

  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 10px;

  margin-top: 14px;
}

.yr-gallery img {

  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  border: 2px solid transparent;
  border-radius: var(--yr-radius-sm);

  background: var(--yr-white);
}


/* Price card */

.yr-price-card {

  position: sticky;
  top: 100px;

  padding: 28px;

  background: var(--yr-white);

  border: 1px solid var(--yr-line);
  border-radius: var(--yr-radius-lg);

  box-shadow: var(--yr-shadow-md);
}

.yr-price-label {

  color: #475467;

  font-size: 13px;
  font-weight: 800;

  text-transform: uppercase;
}

.yr-price {

  margin: 8px 0 20px;

  color: var(--yr-red);

  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.yr-price small {

  color: var(--yr-text);

  font-size: 16px;
}


/* Status */

.yr-status {

  margin-bottom: 18px;
  padding: 10px 12px;

  border-radius: var(--yr-radius-sm);

  background: var(--yr-success-bg);
  color: var(--yr-success-text);

  font-weight: 800;
}


/* Vehicle buttons */

.yr-btn {

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

  width: 100%;
  min-height: 52px;

  margin-top: 12px;
  padding: 0 18px;

  border-radius: var(--yr-radius-sm);

  font-weight: 900;
}

.yr-btn--whatsapp {

  background: var(--yr-green);
  color: var(--yr-white);
}

.yr-btn--secondary {

  border: 2px solid var(--yr-blue);

  background: var(--yr-white);
  color: var(--yr-blue);
}


/* Specifications */

.yr-specs {

  display: grid;

  grid-template-columns: repeat(6, 1fr);

  gap: 0;

  margin: 0 auto 28px;

  background: var(--yr-white);

  border: 1px solid var(--yr-line);
  border-radius: var(--yr-radius-md);
}

.yr-spec {

  padding: 18px 16px;

  border-right: 1px solid var(--yr-line);
}

.yr-spec:last-child {
  border-right: 0;
}

.yr-spec strong {

  display: block;

  color: #334155;

  font-size: 13px;

  text-transform: uppercase;
}

.yr-spec span {

  display: block;

  margin-top: 4px;

  font-weight: 800;
}


/* Content panels */

.yr-two-col {

  display: grid;

  grid-template-columns: 1fr 1fr;

  overflow: hidden;

  margin-bottom: 30px;

  border: 1px solid var(--yr-line);
  border-radius: var(--yr-radius-lg);
}

.yr-panel {

  padding: 30px;

  background: var(--yr-white);
}

.yr-panel + .yr-panel {

  border-left: 1px solid var(--yr-line);
}

.yr-panel h2 {

  margin-top: 0;

  color: var(--yr-navy);

  font-size: 25px;
}

.yr-includes {

  margin-top: 20px;
  padding: 18px;

  white-space: pre-line;

  background: #f4f7fb;

  border-radius: 10px;
}


/* Price table */

.yr-rate-table {

  width: 100%;

  border-collapse: collapse;
}

.yr-rate-table td {

  padding: 14px;

  border-bottom: 1px solid var(--yr-line);
}

.yr-rate-table td:last-child {

  color: #0a2347;

  text-align: right;

  font-size: 20px;
  font-weight: 900;
}


/* ==========================================================================
   17. VEHICLE ARCHIVE / FLEET PAGE
   ========================================================================== */

.yr-archive-hero {

  padding: 54px 0 42px;

  background:
    linear-gradient(
      135deg,
      var(--yr-navy),
      #0b4f98
    );

  color: var(--yr-white);
}

.yr-archive-hero h1 {

  margin: 0 0 14px;

  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
}

.yr-archive-hero p {

  max-width: 700px;

  margin: 0;

  font-size: 20px;
}

.yr-fleet {

  padding: 42px 0 64px;

  background: var(--yr-bg);
}


/* ==========================================================================
   18. SITE FOOTER
   ========================================================================== */

.site-footer {

  margin-top: 48px;

  background:
    linear-gradient(
      135deg,
      var(--yr-navy-dark),
      var(--yr-blue-dark)
    );

  color: var(--yr-white);
}

.site-footer__inner {

  display: grid;

  grid-template-columns:
    1.3fr
    1fr
    1.2fr;

  gap: 34px;

  padding: 42px 0 26px;
}

.site-footer a {
  color: var(--yr-white);
}

.footer-bottom {

  padding: 16px 0;

  border-top:
    1px solid rgba(255, 255, 255, 0.18);

  color: #dbe6f4;

  text-align: center;

  font-size: 13px;
}


/* ==========================================================================
   19. RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 980px) {


  /* Header */

  .primary-nav {

    display: none;

    position: absolute;

    top: 78px;
    left: 0;
    right: 0;

    padding: 20px;

    background: var(--yr-white);

    border-top: 1px solid var(--yr-line);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {

    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }


  /* Global grids */

  .yr-grid--4,
  .frm-fleet-grid,
  .yr-dynamic-grid {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .yr-grid--3 {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  /* Hero features:
     mantenemos las 4 columnas todavía en tablet grande */

  .yr-hero-features {

    grid-template-columns:
      repeat(4, minmax(0, 1fr)) !important;
  }


  /* Business */

  .yr-business-intro {
    grid-template-columns: 1fr;
  }


  /* Booking */

  .yr-booking-box__fields {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  /* Locations */

  .yr-location-strip {
    grid-template-columns: 1fr;
  }

  .yr-location-strip__item {

    border-right: 0;

    border-bottom: 1px solid var(--yr-line);
  }

  .yr-location-strip__item:last-child {
    border-bottom: 0;
  }


  /* Benefits */

  .yr-benefit-strip {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  /* Single vehicle */

  .yr-vehicle-grid {
    grid-template-columns: 1fr;
  }

  .yr-price-card {
    position: static;
  }

  .yr-specs {

    grid-template-columns:
      repeat(3, 1fr);
  }
}


/* ==========================================================================
   20. RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 640px) {


  /* Header */

  .site-header__inner {
    min-height: 68px;
  }

  .site-brand .custom-logo {
    max-height: 46px;
  }

  .primary-nav {
    top: 68px;
  }


  /* Gutenberg */

  .entry-content {
    padding-top: 24px;
  }


  /* Sections */

  .yr-section,
  .yireymmy-section,
  .home-section {

    padding: 52px 0;
  }


  /* Global grids */

  .yr-grid--2,
  .yr-grid--3,
  .yr-grid--4,
  .frm-fleet-grid,
  .yr-dynamic-grid,
  .yr-booking-box__fields,
  .yr-benefit-strip {

    grid-template-columns: 1fr;
  }


  /* Typography */

  .yr-section-title,
  .yireymmy-section h2,
  .home-section h2 {

    font-size: 32px;
  }

  .yr-section-intro,
  .yireymmy-section h2 + p,
  .home-section h2 + p {

    margin-bottom: 26px;

    font-size: 16px;
  }


  /* Hero */

  .yr-hero,
  .yireymmy-hero {

    min-height: 560px;

    padding: 56px 0 48px;
  }

  .yr-hero::before,
  .yireymmy-hero::before {

    background:
      rgba(2, 25, 53, 0.78) !important;
  }

  .home-hero h1 {

    font-size:
      clamp(46px, 14vw, 64px);

    line-height: 0.95;
  }


  /* Hero features:
     exactamente 2 + 2 */

  .yr-hero-features {

    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    max-width: none;

    gap: 20px 16px;
  }

  .yr-hero-features > .wp-block-column {

    width: auto !important;

    padding-right: 0;

    border-right: 0;
  }


  /* Hero actions */

  .yr-hero-actions {

    flex-direction: column;
    align-items: stretch;

    width: 100%;
  }

  .yr-hero-actions .wp-block-button {

    width: 100%;
  }

  .yr-hero-actions .wp-block-button__link {

    width: 100%;
  }


  /* Gallery */

  .yr-gallery {

    grid-template-columns:
      repeat(3, 1fr);
  }


  /* Vehicle specs */

  .yr-specs {

    grid-template-columns:
      repeat(2, 1fr);
  }


  /* Vehicle panels */

  .yr-two-col {
    grid-template-columns: 1fr;
  }

  .yr-panel + .yr-panel {

    border-left: 0;

    border-top: 1px solid var(--yr-line);
  }


  /* Footer */

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   21. HOME-SPECIFIC HOOKS
   ========================================================================== */

/*
 * Estas clases son para excepciones propias de la Home.
 *
 * No repetir aquí estilos generales de botones, títulos, tarjetas,
 * contenedores o grids.
 *
 * Primero se utiliza el componente global y solamente después,
 * si la Home necesita una variación concreta, se modifica aquí.
 */

.home-hero {}

.home-booking {}

.home-intro {}

.home-locations {}

.home-fleet {}

.home-benefits {}