/*
 * Diseño v5.2 de iloveferry.com (30/10/2026): ficha de ruta y portada.
 * Maqueta: 05-marketing/diseno-web/maqueta-v52 · reglas: 90-comun/reglas-web.md.
 * Todo va dentro de .v52 (no cambia el resto de la web), salvo la cabecera blanca en el móvil.
 * Archivo estático: no hace falta compilar (npm run prod) para subirlo.
 */

/* Cabecera blanca también en el móvil, con el logo de siempre y la hamburguesa oscura (reglas-web: cabecera blanca) */
@media (max-width: 991.98px) {
    .navbar.main-menu { background: #fff; border-bottom: 1px solid #e6eaf0; }
    .navbar.main-menu > .container .navbar-bar-container .navbar-brand img.desktop { display: block; width: 150px; }
    .navbar.main-menu > .container .navbar-bar-container .navbar-brand img.mobile { display: none; }
    .navbar.main-menu .navbar-toggler { border-color: #d3dbe5; }
    .navbar.main-menu .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23163a5e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

.v52 {
    --v52-navy: #163a5e;
    --v52-ink: #1a202c;
    --v52-text: #2d3748;
    --v52-muted: #5a6678;
    --v52-line: #e3e8ef;
    --v52-bg: #f4f6f9;
    --v52-gold: #faaf05;
    --v52-gold-dark: #e9a000;
    --v52-link: #1667c2;
    background: var(--v52-bg);
    color: var(--v52-ink);
    font-family: Inter, system-ui, sans-serif;
    padding-bottom: 8px;
}
.v52 *, .v52 *::before, .v52 *::after { box-sizing: border-box; }

/* Enlaces: sin subrayado y en negrita (reglas-web) */
.v52 main a, .v52 .v52-crumbs a { color: var(--v52-link); text-decoration: none; font-weight: 600; }
.v52 main a:hover, .v52 .v52-crumbs a:hover { color: #0f4c8f; text-decoration: underline; }

.v52-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.v52-card { background: #fff; border: 1px solid var(--v52-line); border-radius: 14px; padding: 20px; }
.v52-muted { color: var(--v52-muted); font-size: 14px; }
.v52-small { font-size: 13px; }
.v52-empty { margin: 12px 0; }
.v52 .fa { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; display: inline-block; }

/* Botones (como .route-btn-tickets de iloveferry.us: oro, texto negro, pastilla, «>>») */
.v52 .v52-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
    border-radius: 999px; background: var(--v52-gold); color: #111; font-weight: 700; font-size: 15px; border: 1px solid transparent;
    text-decoration: none; text-align: center; cursor: pointer; line-height: 1.2;
}
.v52 .v52-cta:hover, .v52 .v52-cta:focus { background: var(--v52-gold-dark); border-color: var(--v52-gold-dark); color: #111; text-decoration: none; }
.v52 .v52-cta-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.v52 .v52-cta-lg { min-height: 52px; font-size: 18px; padding: 12px 26px; }
.v52 .v52-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
    background: #fff; color: #111; border: 1px solid #cfd8e3; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit;
}
.v52 .v52-ghost:hover { border-color: var(--v52-navy); text-decoration: none; color: #111; }
.v52 .v52-ghost:disabled { opacity: .35; cursor: default; }
.v52 .v52-ghost-sm { min-height: 40px; font-size: 14px; padding: 8px 14px; }
.v52-badge { display: inline-block; align-self: flex-start; background: #fff1c2; color: #7a4b00; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; }

/* Cabecera de la ficha */
.v52-hero { position: relative; background: #2b5f8a; padding: 36px 0; color: #fff; }
.v52-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v52-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 30, 60, .15), rgba(10, 30, 60, .55)); pointer-events: none; }
.v52-hero .v52-wrap { position: relative; z-index: 3; }
.v52-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.v52-hero-text { text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.v52-hero h1 { margin: 0 0 10px; font-size: 42px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.v52-hero-sub { font-size: 17px; margin: 0; opacity: .95; }

/*
 * Buscador de siempre (search-form-inline + searcher.js, sin cambios de lógica) como tarjeta blanca de la maqueta.
 * Solo CSS: botones de ida y vuelta / solo ida en pastilla, campos en rejilla, botón dorado a todo el ancho.
 */
.v52-search-card {
    background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(10, 30, 60, .18); padding: 18px; color: var(--v52-navy);
    scroll-margin-top: 16px; text-shadow: none;
}
.v52-search-card .search-form--inline { position: static; overflow: visible; }
.v52-search-card .searcher { background: transparent; padding: 0; border-radius: 0; display: block; position: static; }
.v52-search-card .searcher > .container { max-width: none; width: 100%; padding: 0; margin: 0; display: flex; flex-direction: column !important; }
.v52-search-card .trip-selector { display: none !important; }
.v52-search-card .searcher .container .trip-selector-mobile { display: flex !important; justify-content: flex-start; gap: 8px; margin: 0 0 12px; }
.v52-search-card .searcher .container .trip-selector-mobile .form-check { flex-grow: 0; margin: 0; }
.v52-search-card .searcher .container .trip-selector-mobile .form-check label {
    min-height: 40px; padding: 0 14px; margin: 0 !important; border: 1px solid #cfd8e3; border-radius: 999px; background: #fff;
    color: var(--v52-navy); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.v52-search-card .searcher .container .trip-selector-mobile .form-check.active label { background: var(--v52-navy); border-color: var(--v52-navy); color: #fff; }
.v52-search-card .searcher .container .trip-selector-mobile .form-check.active label img { filter: brightness(0) invert(1); }
.v52-search-card .nav-tabs { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 !important; }
.v52-search-card .nav-tabs > li { margin: 0 !important; min-width: 0; }
.v52-search-card .nav-tabs > li:nth-child(1), .v52-search-card .nav-tabs > li:nth-child(2),
.v52-search-card .nav-tabs > li.promo-code-item, .v52-search-card .nav-tabs > li:last-child { grid-column: 1 / -1; }
.v52-search-card .nav-tabs > li > a { text-decoration: none; }
.v52-search-card .searcher .container input.form-control {
    min-height: 52px; height: 52px; border: 1px solid #d3dbe5; border-radius: 10px; background-color: #fff; color: #111;
    font: 500 15px Inter, system-ui, sans-serif; cursor: pointer; text-overflow: ellipsis;
}
.v52-search-card .searcher .container input.form-control:hover { border-color: var(--v52-navy); }
.v52-search-card .invalid-feedback { color: #b42318 !important; }
.v52-search-card .searcher button[type="submit"] {
    min-height: 50px; border-radius: 10px; background: var(--v52-gold); border: 1px solid var(--v52-gold); color: #111;
    font-weight: 700; font-size: 16px; gap: 8px; box-shadow: none;
}
.v52-search-card .searcher button[type="submit"]:hover, .v52-search-card .searcher button[type="submit"]:focus { background: var(--v52-gold-dark); border-color: var(--v52-gold-dark); color: #111; }
.v52-search-card .searcher button[type="submit"] span::after { content: ' >>'; }
/* Ficha de ruta ($v52Fields): cada campo con su etiqueta encima, «Origen | Destino», «Viajeros | Vehículo», código a la vista */
.v52-fields .nav-tabs > li { position: relative; }
.v52-fields .nav-tabs > li.promo-code-item { display: block !important; }
.v52-fields .promo-code-link { display: none !important; }
.v52-fields .v52-flabel {
    position: absolute; top: 7px; left: 46px; z-index: 2; font-size: 11px; font-weight: 600; color: var(--v52-muted); pointer-events: none; line-height: 1.2;
}
.v52-search-card .v52-fields .searcher .container input.form-control { padding-top: 18px; height: 56px; min-height: 56px; }
.v52-fields .nav-tabs > li.route-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.v52-fields .nav-tabs > li.route-item > a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.v52-fields .v52-od {
    position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 56px; padding: 18px 12px 0; text-align: left;
    background: #fff; border: 1px solid #d3dbe5; border-radius: 10px; color: #111; font: 500 15px Inter, system-ui, sans-serif; cursor: pointer;
}
.v52-fields .v52-od:hover, .v52-fields .v52-od:focus-visible { border-color: var(--v52-navy); }
.v52-fields .v52-od .v52-flabel { left: 12px; }
.v52-fields .v52-od .fa { width: 13px; height: 16px; flex: none; fill: var(--v52-navy); }
.v52-fields .v52-od-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v52-search-card .promo-code-link { margin-top: 10px; text-align: left; }
.v52-search-card .promo-code-link a { box-shadow: none; border: 1px solid #d3dbe5; text-decoration: none; font-size: 14px; }
/* En ordenador, los paneles del buscador (ruta, fechas, pasajeros, vehículo) se abren como una ventana bajo el menú,
   con el alto de su contenido y el botón «Continuar» siempre a la vista (sin hacer scroll). En el móvil, como en Producción. */
@media screen and (min-width: 1024px) {
    .v52-search-card .search-form--inline .submenu-container {
        display: none; position: fixed; top: 84px; bottom: auto; left: max(20px, calc(50% - 560px)); right: max(20px, calc(50% - 560px));
        width: auto; height: auto; min-height: 0; max-height: calc(100vh - 100px); overflow-y: auto; border-radius: 14px;
        box-shadow: 0 16px 48px rgba(10, 30, 60, .35); color: #333; text-shadow: none; z-index: 1050;
    }
    .v52-search-card .search-form--inline .submenu-container.active { display: block; left: max(20px, calc(50% - 560px)); }
    .v52-search-card .search-form--inline .submenu-container .submenu-item { height: auto; padding: 28px 0 0; }
    .v52-search-card .search-form--inline .submenu-container .submenu-item .content-container,
    .v52-search-card .search-form--inline .submenu-container .submenu-item .content-container .content,
    .v52-search-card .search-form--inline .submenu-container .submenu-item .routes-harbours,
    .v52-search-card .search-form--inline .submenu-container .submenu-item .routes-harbours > div { height: auto; }
    .v52-search-card .search-form--inline .submenu-container .routes-harbours ul.origin-list,
    .v52-search-card .search-form--inline .submenu-container .routes-harbours ul.destination-list { height: auto; max-height: min(46vh, 420px); }
    .v52-search-card .search-form--inline .submenu-container .submenu-item .actions {
        position: sticky; bottom: 0; background: #fff; margin-top: 16px !important; padding: 14px 0 !important; z-index: 2;
    }
}
.v52-search-card .submenu-container .btn-primary {
    background: var(--v52-gold); border-color: var(--v52-gold); color: #111; font-weight: 700; border-radius: 999px;
}
.v52-search-card .submenu-container .btn-primary:hover, .v52-search-card .submenu-container .btn-primary:focus { background: var(--v52-gold-dark); border-color: var(--v52-gold-dark); color: #111; }
.v52-search-card .submenu-container .btn-primary i, .v52-search-card .submenu-container .btn-primary span { color: #111; }
.v52-crumbs { font-size: 13px; color: var(--v52-muted); padding-top: 14px; }

/* Respuesta rápida y pills */
.v52-quick { padding-top: 14px; }
.v52-quick .v52-card { display: flex; flex-direction: column; gap: 16px; }
.v52-quick-text { font-size: 17px; }
.v52-quick-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.v52-fact { background: var(--v52-bg); border-radius: 10px; padding: 10px 14px; }
.v52-fact .v52-muted { font-size: 12px; }
.v52-fact-val { font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.v52-nav { display: inline-flex; align-items: center; }
.v52-logo { width: 20px; height: 20px; border-radius: 5px; margin-right: 5px; object-fit: contain; background: #fff; }
.v52-quick-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.v52-quick-cta .v52-small { padding-left: 14px; }
.v52-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 0; }
.v52 .v52-pill {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff;
    border: 1px solid #d3dbe5; color: var(--v52-navy); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.v52 .v52-pill:hover { background: var(--v52-navy); border-color: var(--v52-navy); color: #fff; text-decoration: none; }

/* Texto del Admin: todo el ancho del contenido (ronda 5) */
.v52-text { font-size: 16px; line-height: 1.7; color: var(--v52-text); }
.v52-text p { margin: 0 0 12px; }
.v52-text ul, .v52-text ol { margin: 0 0 12px; padding-left: 22px; }
.v52-text li { margin-bottom: 6px; }
.v52-text strong { color: #111; }
.v52-text h2 {
    font-size: 25px; line-height: 1.25; font-weight: 800; color: var(--v52-navy); margin: 40px 0 14px; letter-spacing: -.01em;
    scroll-margin-top: 16px;
}
.v52-text h2 .fa { color: var(--v52-gold); margin-right: 8px; }
.v52-text h3 { font-size: 18px; margin: 18px 0 8px; color: var(--v52-navy); font-weight: 700; scroll-margin-top: 16px; }
.v52-text img { max-width: 100%; height: auto; }
.v52-main > :first-child { margin-top: 32px; }

/* Tablas del texto (y como tarjetas en el móvil, ver ilf-v52.js) */
.v52-tablewrap, .v52-text > table { background: #fff; border: 1px solid var(--v52-line); border-radius: 14px; overflow: hidden; margin: 0 0 12px; }
.v52-text table { width: 100%; border-collapse: collapse; font-size: 15px; }
.v52-text th { text-align: left; font-weight: 600; color: #4a5568; background: #f7f9fb; padding: 10px 12px; border-bottom: 1px solid var(--v52-line); }
.v52-text td { padding: 12px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.v52-text tr:last-child td { border-bottom: 0; }

/* Piezas que usa el texto del Admin */
.v52-tip { background: #fff8e1; border: 1px solid #f5d27a; border-radius: 14px; padding: 16px 20px; margin: 14px 0; }
.v52-tip > :last-child { margin-bottom: 0; }
.v52-tip h3 { margin-top: 10px; }
.v52-text .v52-card { margin: 0 0 14px; }
.v52-text .v52-card > :last-child { margin-bottom: 0; }
.v52-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 14px; }
.v52-grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.v52-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v52-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v52-grid-fit { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.v52-grid-4 .v52-photo { height: 150px; }
.v52-grid-3 .v52-photo, .v52-grid-fit .v52-photo { height: 180px; }
@media (max-width: 1000px) { .v52-grid-3, .v52-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v52-text .v52-grid > .v52-card { margin: 0; }
.v52-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 14px; margin: 0 0 14px; }
.v52-facts dt { font-weight: 400; color: var(--v52-muted); }
.v52-facts dd { margin: 0; font-weight: 700; color: #111; }
.v52-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 0 0 14px; }
.v52 .v52-links a { display: block; background: #fff; border: 1px solid var(--v52-line); border-radius: 14px; padding: 14px 16px; color: var(--v52-navy); }
.v52 .v52-links a:hover { border-color: var(--v52-navy); text-decoration: none; }
.v52-links span { display: block; color: var(--v52-muted); font-weight: 400; font-size: 14px; line-height: 1.5; }

/* Tarjetas con foto (ofertas, puertos, barcos, rutas, blog) */
.v52-tile { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.v52-photo { width: 100%; height: 170px; display: block; object-fit: cover; background: #cfd8e3; }
.v52-tile-img { display: block; }
.v52-tile-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.v52-tile-body h3 { font-weight: 800; font-size: 17px; margin: 0; color: var(--v52-navy); line-height: 1.3; }
.v52-tile-body p { margin: 0; line-height: 1.5; }
.v52-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.v52-price { font-size: 21px; color: #111; }

/* Salidas */
.v52-departures { margin: 0 0 14px; }
.v52-daygrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.v52-daybtn {
    min-height: 52px; border-radius: 12px; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; display: flex; flex-direction: column;
    align-items: center; justify-content: center; line-height: 1.2; padding: 4px 2px; background: #fff; color: var(--v52-navy); border: 1px solid #cfd8e3;
}
.v52-daybtn strong { font-weight: 800; }
.v52-daybtn.is-on { background: var(--v52-navy); color: #fff; border-color: var(--v52-navy); }
.v52-daybtn.is-empty:not(.is-on) { color: #9aa5b4; }
.v52-deps { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.v52-dep { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 20px; }
.v52-dep-who { flex: 1 1 150px; }
.v52-dep-nav { font-weight: 700; display: flex; align-items: center; }
.v52-dep-times { flex: 2 1 240px; display: flex; align-items: center; gap: 12px; }
.v52-dep-hour { font-size: 22px; font-weight: 800; color: #111; }
.v52-dep-line { flex: 1; text-align: center; font-size: 12px; color: var(--v52-muted); border-bottom: 2px dotted #cfd8e3; padding-bottom: 4px; }
.v52-dep-end { text-align: right; }
.v52-dep-port { font-weight: 700; color: var(--v52-navy); font-size: 14px; }
.v52-dep-cta { flex: 1 1 200px; display: flex; justify-content: flex-end; }

/* Calendario de precios: precio (15 px) más grande que el día (11 px) */
.v52-cal { margin: 14px 0; }
.v52-cal h3 { font-weight: 800; font-size: 19px; margin: 0 0 6px; }
.v52-cal-nav { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: 12px 0 8px; }
.v52-cal-nav strong { font-size: 17px; color: var(--v52-navy); }
.v52-cal-grid { gap: 4px; max-width: 560px; }
.v52-cal-head { font-size: 12px; color: var(--v52-muted); text-align: center; text-transform: lowercase; }
.v52-calday {
    height: 56px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--v52-navy); line-height: 1.25; background: #f4f6f9;
}
.v52-calday span { font-size: 11px; font-weight: 500; color: var(--v52-muted); }
.v52 a.v52-calday { color: var(--v52-navy); }
.v52 a.v52-calday:hover { text-decoration: none; outline: 2px solid var(--v52-navy); }
.v52-calday strong { font-size: 15px; font-weight: 800; }
.v52-calday.has-price, .v52-sw.has-price { background: rgb(255, 255, 148); }
.v52-calday.is-cheapest, .v52-sw.is-cheapest { background: var(--v52-gold); }
.v52-cal-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.v52-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }

/* Preguntas frecuentes: abiertas, se pueden cerrar, con buscador */
.v52-faq { background: #fff; border: 1px solid var(--v52-line); border-radius: 14px; padding: 16px 22px; margin: 0 0 14px; }
.v52-faqtools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.v52-faqtools input { flex: 1 1 240px; min-height: 44px; border: 1px solid #cfd8e3; border-radius: 999px; padding: 0 18px; font: 15px Inter, system-ui, sans-serif; }
.v52-faqtools .v52-muted { flex-basis: 100%; }
.v52-faqi { border-bottom: 1px solid var(--v52-line); }
.v52-faqi:last-of-type { border-bottom: 0; }
.v52-faqi summary {
    list-style: none; cursor: pointer; padding: 16px 0 8px; font-weight: 700; font-size: 17px; color: var(--v52-navy);
    display: flex; justify-content: space-between; gap: 12px; min-height: 44px;
}
.v52-faqi summary::-webkit-details-marker { display: none; }
.v52-faqi summary::after { content: '+'; font-weight: 700; }
.v52-faqi[open] summary::after { content: '−'; }
.v52-faqa { font-size: 15px; line-height: 1.65; padding-bottom: 6px; }
.v52-faqa ul { margin: 0 0 10px; padding-left: 20px; }
.v52-faqa li { margin: 0 0 6px; }

/* Opiniones */
.v52-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 14px; }
.v52-rating-num { font-size: 20px; font-weight: 800; color: var(--v52-navy); }
.v52-stars { white-space: nowrap; }
.v52-star { display: inline-flex; width: 20px; height: 20px; background: #00b67a; color: #fff; align-items: center; justify-content: center; font-size: 14px; margin-right: 2px; }
.v52-star.is-off { background: #dcdce6; }
.v52-review .v52-text { margin: 10px 0 6px; }

/* Portada */
.v52-home-hero .v52-hero-bg { transition: opacity .6s; opacity: 0; }
.v52-home-hero .v52-hero-bg.is-on { opacity: 1; }
.v52-home-hero .v52-hero-text p { font-size: 18px; line-height: 1.55; margin: 0 0 10px; }
.v52-slide-txt { font-size: 20px; font-weight: 700; min-height: 1.5em; }
.v52-dots { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.v52-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .5); }
.v52-dot.is-on { background: #fff; }
.v52-home-hero .v52-ghost { min-height: 36px; padding: 6px 12px; text-shadow: none; }
.v52-section { padding-top: 40px; scroll-margin-top: 16px; }
.v52-section > h2 {
    font-size: 25px; line-height: 1.25; font-weight: 800; color: var(--v52-navy); margin: 0 0 14px; letter-spacing: -.01em;
}
.v52-section > h2 .fa { color: var(--v52-gold); margin-right: 8px; }
.v52-more { margin-top: 14px; }
.v52-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 22px 0 6px; }
.v52-reason { display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; }
.v52-reason .fa { width: 40px; height: 40px; color: var(--v52-gold); }
.v52-reason h3 { margin: 4px 0 0; font-size: 17px; color: var(--v52-navy); font-weight: 700; }
.v52-reason p { margin: 0; font-size: 15px; }
.v52-brands { display: flex; flex-wrap: wrap; gap: 22px 32px; align-items: center; justify-content: center; }
.v52-brands { gap: 28px 44px; padding: 28px 24px; }
.v52-brands img { height: 46px; max-width: 200px; width: auto; display: block; object-fit: contain; }
.v52-brands a { color: var(--v52-navy); font-size: 17px; font-weight: 700; }
.v52-post-meta { font-size: 13px; color: var(--v52-muted); }
.v52-tile-body h3 a { color: var(--v52-link); }

/* Móvil: sin scroll lateral, tablas como tarjetas, días en rejilla de 7 */
@media (max-width: 720px) {
    .v52-wrap { padding: 0 16px; }
    .v52-hero { padding: 16px 0 24px; }
    .v52-hero h1 { font-size: 30px !important; }
    .v52-hero-grid { grid-template-columns: 1fr; gap: 18px; }
    .v52-route-hero .v52-hero-text { order: -1; }
    .v52-search-card { padding: 14px; }
    .v52-text h2, .v52-section > h2 { font-size: 22px; }
    .v52-text h2 { margin-top: 32px; }
    .v52-section { padding-top: 32px; }
    .v52-quick-text { font-size: 16px; }
    .v52-quick-cta, .v52-quick-cta .v52-cta { width: 100%; }
    .v52-daybtn { min-height: 48px; font-size: 12px; border-radius: 10px; }
    .v52-dep-cta { justify-content: stretch; }
    .v52-dep-cta .v52-cta { width: 100%; }
    .v52-grid, .v52-grid-2, .v52-grid-3, .v52-grid-4, .v52-grid-fit { grid-template-columns: 1fr; }
    .v52-tablewrap { background: none; border: 0; border-radius: 0; overflow: visible; }
    .v52-text table.v52-cardtable, .v52-text table.v52-cardtable tbody, .v52-text table.v52-cardtable tr, .v52-text table.v52-cardtable td { display: block; width: 100%; }
    .v52-text table.v52-cardtable thead { display: none; }
    .v52-text table.v52-cardtable tr { background: #fff; border: 1px solid var(--v52-line); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
    .v52-text table.v52-cardtable td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 10px; text-align: right; }
    .v52-text table.v52-cardtable td:first-child { font-weight: 700; text-align: left; margin-bottom: 6px; display: block; }
    .v52-text table.v52-cardtable td[data-label]:not(:first-child)::before { content: attr(data-label); color: var(--v52-muted); font-weight: 400; text-align: left; }
    .v52-faq { padding: 12px 16px; }
    .v52-faqi summary { font-size: 16px; }
}

/* Corazón azul (icono de Font Awesome, no el emoji) */
.v52 .v52-heart, .v52 .v52-section > h2 .v52-heart { color: #1667c2; width: .9em; height: .9em; vertical-align: -.05em; margin-left: 4px; }

/* Rutas más buscadas: enlaces de texto en tres columnas, debajo de las tarjetas */
.v52-textlinks { list-style: none; padding: 0; margin: 4px 0 0; columns: 3 260px; column-gap: 28px; }
.v52-textlinks li { break-inside: avoid; padding: 6px 0; font-size: 15px; }
.v52 main .v52-textlinks a { font-weight: 400; }

/* Ayuda: grupos de preguntas por ruta, cerrados; dentro, las preguntas abiertas */
.v52-help-hero { padding: 40px 0; }
.v52-help .v52-faq-title { margin: 22px 0 6px; font-size: 22px; }
.v52-help .v52-faq-title:first-of-type { margin-top: 8px; }
.v52-faq-group { border-bottom: 1px solid var(--v52-line); }
.v52-faq-group > summary {
    list-style: none; cursor: pointer; padding: 14px 0; font-weight: 800; font-size: 17px; color: var(--v52-navy);
    display: flex; justify-content: space-between; gap: 12px;
}
.v52-faq-group > summary::-webkit-details-marker { display: none; }
.v52-faq-group > summary::after { content: '+'; }
.v52-faq-group[open] > summary::after { content: '−'; }
.v52-faq-group-body { padding: 0 0 8px 14px; }

/* Botón flotante «Billetes de ferry» (amarillo, flecha arriba): sustituye al botón azul de subir en las páginas v5.2 */
body:has(.v52-fab) #top-page-button { display: none !important; }
.v52 .v52-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040; width: 56px; height: 56px; border-radius: 50%; background: var(--v52-gold);
    color: var(--v52-navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(22, 58, 94, .35);
}
.v52 .v52-fab:hover { background: var(--v52-gold-dark); color: var(--v52-navy); text-decoration: none; }
.v52 .v52-fab .fa { width: 20px; height: 20px; }
.v52 .v52-fab { transition: opacity .2s, visibility .2s, transform .2s; }
/* En el móvil, oculto hasta bajar un poco y mientras el buscador está abierto (ilf-v52.js pone la clase) */
body.v52-fab-hidden .v52 .v52-fab { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }

/* Sobre I Love Ferry (Javier, 31/10/2026, idea de thetrainline.com/es): slider Compara · Reserva · Disfruta, argumentos y 4 preguntas */
.v52 .v52-section > h2.v52-sr, .v52-sr { position: absolute; margin: 0; padding: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v52-about-slider { position: relative; border-radius: 18px; overflow: hidden; color: #fff; min-height: 440px; background: var(--v52-navy); }
.v52-about-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.v52-about-slide.is-on { position: relative; opacity: 1; visibility: visible; }
.v52-about-slide-1 { background: var(--v52-navy); }
.v52-about-slide-2 { background: #1667c2; }
.v52-about-slide-3 { background: #0e7c86; }
.v52-about-inner > * { min-width: 0; }
.v52-about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px 48px 88px; min-height: 440px; }
.v52-about-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 28px; }
.v52-about-brand img { height: 31px; width: auto; display: block; }
.v52-about-motto { font-size: 20px; font-weight: 800; color: #fff; white-space: nowrap; }
.v52-about-motto i { font-style: normal; opacity: .7; margin: 0 2px; }
.v52-about-motto .is-on { color: var(--v52-gold); }
.v52-about-copy h3 { color: #fff; font-size: 30px; line-height: 1.2; font-weight: 800; margin: 0 0 16px; }
.v52-about-copy p:not(.v52-about-brand) { color: #fff; font-size: 17px; line-height: 1.6; margin: 0 0 24px; max-width: 46ch; }
.v52 .v52-about-copy .v52-cta { color: #1a202c; }
.v52-about-nav { position: absolute; left: 48px; bottom: 26px; display: flex; align-items: center; gap: 16px; z-index: 2; }
.v52-about-nav > button {
    width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: transparent; color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.v52-about-nav > button .fa { width: 14px; height: 14px; }
.v52-about-nav > button:hover { background: rgba(255, 255, 255, .15); }
.v52-about-dots { display: flex; gap: 6px; align-items: center; }
.v52-about-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s; }
.v52-about-dots button.is-on { width: 52px; background: #fff; }
/* Tarjetas de ejemplo (a la derecha de cada diapositiva) */
.v52-about-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.v52-mock { position: relative; z-index: 1; width: 100%; max-width: 360px; background: #fff; color: var(--v52-ink); border-radius: 16px; box-shadow: 0 14px 36px rgba(0, 0, 0, .25); overflow: hidden; }
.v52-mock-head { background: var(--v52-navy); color: #fff; font-weight: 700; padding: 16px 20px; display: flex; align-items: center; gap: 8px; }
.v52-mock-head .fa { width: 15px; height: 15px; }
.v52-mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--v52-line); }
.v52-mock-row:first-of-type { border-top: 0; }
.v52-mock-row img { height: 22px; width: auto; max-width: 45%; min-width: 0; object-fit: contain; }
.v52-mock-times { display: flex; align-items: center; gap: 10px; color: var(--v52-muted); }
.v52-mock-times .fa { width: 14px; height: 14px; }
.v52-mock b { display: inline-block; width: 52px; height: 10px; border-radius: 5px; background: #dfe5ee; }
.v52-mock-title { font-weight: 800; color: var(--v52-navy); padding: 18px 20px 6px; font-size: 17px; }
.v52-mock-line { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.v52-mock-line .fa { width: 18px; height: 18px; color: var(--v52-link); flex: 0 0 18px; }
.v52-mock-line span { flex: 1; font-size: 15px; }
.v52-mock-total { display: flex; align-items: center; justify-content: space-between; margin: 8px 20px 20px; padding-top: 14px; border-top: 2px dashed var(--v52-line); font-weight: 800; color: var(--v52-navy); }
.v52-mock-total em { font-style: normal; font-size: 13px; background: var(--v52-gold); color: #1a202c; border-radius: 999px; padding: 4px 10px; }
.v52-mock-pass-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 20px; }
.v52-mock-pass-body > div { display: flex; flex-direction: column; gap: 12px; }
.v52-mock-pass-body b { width: 150px; }
.v52-mock-pass-body b.is-short { width: 90px; }
.v52 .v52-mock-id { width: 72px; height: 72px; color: var(--v52-navy); }
.v52-mock-bubble {
    position: absolute; right: -34px; bottom: -40px; z-index: 2; width: 92px; height: 92px; border-radius: 50%; background: var(--v52-gold);
    color: var(--v52-navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}
.v52-mock-bubble .fa { width: 36px; height: 36px; }
.v52-about-slide-3 .v52-mock-bubble .fa { color: #1667c2; }
/* Debajo: argumentos (izquierda) y cuatro preguntas (derecha) */
.v52-about-why { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; align-items: start; }
.v52-about-claim { font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--v52-navy); margin: 0 0 26px; }
.v52-about-claim span { display: block; color: #1667c2; }
.v52-about-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.v52-about-points li { display: flex; gap: 16px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: var(--v52-text); }
.v52-about-points .fa {
    flex: 0 0 40px; width: 40px; height: 40px; padding: 9px; border-radius: 8px; background: var(--v52-gold); color: var(--v52-navy); box-sizing: border-box;
}
.v52-about-points li:nth-child(2) .fa { background: #1f9d55; color: #fff; }
.v52-about-points li:nth-child(3) .fa { background: var(--v52-navy); color: #fff; }
.v52-about-points li:nth-child(4) .fa { background: #1667c2; color: #fff; }
.v52-about-points strong { color: var(--v52-ink); }
.v52-about-faq .v52-faqi:first-child summary { padding-top: 4px; }
@media (max-width: 991px) {
    .v52-about-inner { grid-template-columns: minmax(0, 1fr); padding: 28px 22px 84px; gap: 28px; min-height: 0; }
    .v52-about-slider { min-height: 0; }
    .v52-about-visual { padding: 0 12px 24px; }
    .v52-mock-bubble { width: 56px; height: 56px; right: 0; top: -18px; bottom: auto; }
    .v52-about-motto { font-size: 17px; }
    .v52-mock-bubble .fa { width: 22px; height: 22px; }
    .v52-about-nav { left: 22px; bottom: 22px; }
    .v52-about-copy h3 { font-size: 24px; }
    .v52-about-why { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
    .v52-about-claim { font-size: 24px; }
    .v52-mock-times b { width: 34px; }
}

/* Ficha de ruta, ronda 5 (Javier, 31/10/2026): más fiel a la maqueta */
.v52-daybtn.is-on span, .v52-text .v52-daybtn.is-on strong { color: #fff; }
.v52-grid:has(> .v52-card > .v52-facts) { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.v52-depfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.v52 .v52-depfilter .v52-pill { cursor: pointer; }
.v52 .v52-depfilter .v52-pill.is-on { background: var(--v52-navy); border-color: var(--v52-navy); color: #fff; }
.v52-text .v52-empty-card, .v52-empty-card { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.v52-empty-card .fa { width: 26px; height: 26px; flex: none; fill: var(--v52-gold); }
.v52-empty-card p { margin: 0; }
/* Puertos */
.v52-ports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v52-port .v52-photo { height: 220px; }
.v52-port .v52-tile-body { padding: 18px 20px 20px; gap: 10px; }
.v52-port .v52-tile-body h3 { color: var(--v52-link); font-size: 19px; }
.v52-port-text { font-size: 15px; line-height: 1.6; }
.v52-port-text p { margin: 0 0 8px; }
.v52-text .v52-port-addr { color: var(--v52-muted); font-size: 14px; margin: 0 0 8px; }
.v52-port-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.v52-text .v52-port-wide, .v52-port-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0 0 14px; }
.v52-port-wide .v52-photo { height: 100%; min-height: 260px; }
.v52-map { height: 440px; border-radius: 16px; overflow: hidden; border: 1px solid var(--v52-line); margin: 0 0 14px; background: #aad3df; z-index: 0; }
.v52-map .v52-map-label { background: #fff; border: 0; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); font: 800 15px Inter, system-ui, sans-serif; color: #111; padding: 2px 8px; }
/* Preguntas frecuentes: la chica entera, sin recortes (ronda 11, como la foto de Javier), apoyada en el borde de abajo y asomando por encima de la tarjeta */
.v52-text .v52-card.v52-help, .v52-card.v52-help { display: flex; align-items: flex-end; gap: 28px; padding: 0 28px; margin: 120px 0 18px; overflow: visible; }
.v52-help-pic { position: relative; flex: none; width: 230px; margin-top: -110px; line-height: 0; }
.v52-help-pic img { display: block; width: 230px; height: auto; }
.v52-help-text { padding: 22px 0; }
.v52-help-text p { margin: 0 0 10px; }
.v52-text .v52-help-title, .v52-card.v52-help .v52-help-title { font-size: 20px; font-weight: 800; color: var(--v52-navy); margin-bottom: 6px; }
@media (max-width: 720px) {
    .v52-ports, .v52-port-wide { grid-template-columns: 1fr; }
    .v52-port-wide .v52-photo { height: 200px; min-height: 0; }
    .v52-map { height: 320px; }
    .v52-text .v52-card.v52-help, .v52-card.v52-help { flex-direction: column; align-items: center; text-align: center; padding: 0 18px; margin-top: 110px; }
    .v52-help-text { padding: 0 0 20px; }
}
.v52-text .v52-card > h3:first-child { margin-top: 0; }
/* Ronda 6: pastillas de salidas separadas de los días; rejillas del texto a todo el ancho; acomodaciones con foto */
.v52-depfilter { margin-top: 14px; }
.v52-text .v52-grid:not(.v52-grid-2):not(.v52-grid-3):not(.v52-grid-4):not(.v52-grid-12) { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.v52-acc .v52-photo { height: 160px; }
.v52-acc .v52-tile-body p { font-size: 15px; }
/* Ronda 7: Equipaje (1) + Acomodaciones (2) en escritorio */
.v52-text .v52-grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1001px) { .v52-text .v52-grid-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
@media (max-width: 720px) { .v52-text .v52-grid-12 { grid-template-columns: 1fr; } }
/* Ronda 8: acomodaciones desde el Admin, por barco y tipo */
.v52-text .v52-acc-ship { margin: 18px 0 10px; }
.v52-text .v52-acc-ship span { font-weight: 600; color: var(--v52-muted); }
.v52-text .v52-acc-type { font-size: 15px; font-weight: 800; color: var(--v52-navy); margin: 4px 0 10px; }
/* Portada (01/11/2026): botón «Aceptar >>» del código promocional como los demás (oro, texto negro, pastilla) */
.v52 #info-promo .apply-promo-code { background: var(--v52-gold); border: 1px solid var(--v52-gold); color: #111; font-weight: 700; border-radius: 999px; padding: 10px 20px; box-shadow: none; }
.v52 #info-promo .apply-promo-code:hover, .v52 #info-promo .apply-promo-code:focus { background: var(--v52-gold-dark); border-color: var(--v52-gold-dark); color: #111; }
/* Aviso «¿Vas a viajar sin vehículo?» (ilf-vehiculo.js): mismos botones que el resto */
.v52 #vehicle-confirm-modal .vehicle-confirm-add { background: var(--v52-gold); border: 1px solid var(--v52-gold); color: #111; font-weight: 700; border-radius: 999px; padding: 10px 20px; box-shadow: none; }
.v52 #vehicle-confirm-modal .vehicle-confirm-add:hover, .v52 #vehicle-confirm-modal .vehicle-confirm-add:focus { background: var(--v52-gold-dark); border-color: var(--v52-gold-dark); color: #111; }
.v52 #vehicle-confirm-modal .vehicle-confirm-skip { background: #fff; border: 1px solid var(--v52-line); color: var(--v52-navy); font-weight: 700; border-radius: 999px; padding: 10px 20px; box-shadow: none; }
