/* ===========================================================
   RESET BÁSICO
=========================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #004D40;
}

/* ===========================================================
   CABECERA
=========================================================== */
.header {
    background: #1B5E20;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 45px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-switch button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: 0.2s;
}

.lang-switch button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-phone {
    background: #4CAF50;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 20px;
}

/* En móvil: solo mostrar emoji del teléfono */
/* En móvil: mostrar botón normal pero ajustar padding/tamaño si es necesario */
@media (max-width: 600px) {
    .header .lang-switch {
        display: none;
        /* Ocultamos los idiomas de texto dentro del nav */
    }

    .btn-phone {
        font-size: 17px;
        /* Aumentado tamaño de fuente */
        padding: 5px 10px;
        font-weight: 800;
        margin-right: 0px;
    }

    .btn-phone::before {
        content: none;
        /* Quitamos el reemplazo de icono */
    }
}

/* ===========================================================
   BARRA IDIOMAS MÓVIL (Banderas)
=========================================================== */
.mobile-lang-bar {
    display: flex;
    flex-direction: column;
    /* Oculto en escritorio */
    display: none;
    position: absolute;
    top: 100px;
    /* Más separado del header */
    right: 15px;
    z-index: 20;
    gap: 4px;
    /* Un poco más de espacio entre banderas */
}

.mobile-lang-bar button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.mobile-lang-bar button img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    border: 1px solid #000000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile-lang-bar button:hover {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .mobile-lang-bar {
        display: flex;
        /* Visible solo en móvil */
    }
}

/* ===========================================================
   HERO / PORTADA
=========================================================== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    /* Necesario para elementos absolutos internos */
    min-height: 90vh;
    padding: 2px 8px 20px;
    text-align: center;
    color: #ffffff;
    background-size: cover;
    background-position: center -50%;
    background-repeat: no-repeat;

    /* Suavizar imagen de baja resolución */
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}



.calc-container {
    position: relative;
    /* Contexto para la barra de idiomas móvil */
}

/* Ajuste específico para móvil: dar espacio a la barra de idiomas */
@media (max-width: 768px) {
    .hero {
        min-height: 55vh;
        /* Más pequeña en móvil */
        /* background-position: center 35%; */
        /* Bajar la posición para ver más la zona top de la imagen */
    }
}

@media (max-width: 600px) {
    /* .hero {
        /* padding-top: 70px; */
    /* Empuja el título hacia abajo */
    /* } */

    .mobile-lang-bar {
        top: 20px;
        /* Más espacio desde el header */
    }
}

/* ---- Banner estilo logo (Texto Hero) ---- */
.hero-logo-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 10px auto 0;
    border-radius: 16px;
}

@media (max-width: 600px) {
    .hero-logo-banner {
        margin-top: 10px;
    }
}

.hero-logo-text {
    padding: 5px 5px;
    text-align: center;
}

.hero-banner-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-weight: 900;
    font-size: 23px;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1.1;

    /* Efecto degradado en el texto (decoloración negra a verde) */
    background: linear-gradient(180deg, #000000 60%, #2c6d2e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-banner-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #000000;
    margin: 0 0 4px 0;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.hero-banner-services {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #000000;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.3;
}

@media (min-width: 900px) {

    .hero {
        background-image: url("assets/sant-cugat.jpg");
        background-position: center 0%;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .cont-whiteblack {
        display: none;
    }

    .img-whiteblack {
        width: 30%;
        height: 50%;
    }

    .hero-banner-title {
        font-size: 48px;
        /* Más grande en desktop */
    }

    .hero-banner-subtitle {
        font-size: 24px;
    }

    .hero-banner-services {
        font-size: 18px;
        letter-spacing: 2px;
    }
}

@media (max-width: 768px) {
    /* .hero {
        background-image: url("assets/fondo-blanconegro.png");
        background-position: center 30%;
        min-height: 25vh;

    } */

    .cont-whiteblack {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .img-whiteblack {
        width: 100%;
        height: 50%;
    }
}

/* ===========================================================
   TARJETAS HERO (RESERVA / CALCULAR)
=========================================================== */
.hero-cards-container {
    display: flex;
    flex-direction: column;
    width: 80%;
    gap: 24px;
    align-items: center;
}



.hero-card {
    background: rgba(10, 30, 20, 0.85);
    border: 2px solid #4CAF50;
    border-radius: 18px;
    padding: 24px 22px;
    text-align: center;
    color: #E8F5E9;
    box-shadow: 0 0 18px rgba(76, 175, 80, 0.35);
    backdrop-filter: blur(4px);

    width: 100%;
    max-width: 340px;
}

.hero-card h2 {
    color: #81C784;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-card p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 18px;
    color: #E0E0E0;
}

@media (min-width: 900px) {
    .hero-cards-container {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
}

/* ===========================================================
   BOTONES
=========================================================== */
.btn-orange {
    background: linear-gradient(180deg, #66BB6A, #43A047);
    color: white;
    width: 100%;
    font-weight: 900;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 12px;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: pre-line;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 768px) {
    .btn-orange {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
    }
}

.btn-orange:hover {
    transform: scale(1.04);
}

/* ===========================================================
   ACCESOS RÁPIDOS
=========================================================== */
.quick-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
    background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
}

.action {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: #004D40;
    text-decoration: none;
    background: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.action:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.action .icon {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===========================================================
   SECCIÓN DESCARGA APP
=========================================================== */
.app-section {
    background: #004D40;
    padding: 50px 20px;
    text-align: center;
}

.app-content {
    max-width: 900px;
    margin: 0 auto;
}

.app-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #4CAF50;
}

.app-text p {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.app-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-badge {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.app-badge img {
    height: 55px;
    width: auto;
}

.app-badge:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .app-text h2 {
        font-size: 28px;
    }

    .app-text p {
        font-size: 16px;
    }

    .app-badges {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;

    }

    .app-badge img {
        height: 45px;
        width: auto;
    }

}

@media (min-width: 900px) {
    .app-text h2 {
        font-size: 42px;
    }

    .app-text p {
        font-size: 20px;
    }




    .app-badge img {
        height: 65px;
    }
}

/* ===========================================================
   GRID SERVICIOS
=========================================================== */
.cards-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tablet y PC → 2 columnas */
@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ===========================================================
   TARJETAS SERVICIOS — ESTILO COHERENTE CON PALETA
=========================================================== */
.card {
    background: white;
    border: 2px solid #2E7D32;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    color: #004D40;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Iconos */
.card-icon {
    margin-bottom: 16px;
}

.card-icon svg {
    stroke: #2E7D32 !important;
    fill: none;
}

/* Título */
.card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #2E7D32;
}

/* Texto */
.card-text {
    font-size: 15px;
    line-height: 1.5;
    color: #004D40;
}

/* ===========================================================
   SECCIÓN EMPRESAS
=========================================================== */
.empresas {
    background: #000000;
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-top: 3px solid #FFD60A;
}

.empresas .btn-orange {
    background: linear-gradient(180deg, #e6d85a, #bf9c2a);
    color: #102010;
}

/* ===========================================
   TÍTULO EMPRESAS — SOLO PC
=========================================== */
@media (min-width: 900px) {
    .empresas h2 {
        font-size: 55px;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .empresas .btn-orange {
        width: 40%;
    }
}

/* ===========================================
   TEXTO EMPRESAS (debajo del título) — SOLO PC
=========================================== */
@media (min-width: 900px) {
    .empresas p {
        font-size: 30px;
        line-height: 1.6;
        max-width: 700px;
        margin: 0 auto 30px;
    }
}

/* ===========================================================
   PÁGINA EMPRESAS - ESTILOS COMPLETOS
=========================================================== */

/* Botón volver */
.volver-btn {
    display: inline-block;
    margin: 20px;
    padding: 12px 24px;
    background: #0A3756;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.volver-btn:hover {
    background: #FF7A00;
    transform: translateX(-5px);
}

/* Hero de empresas */
.empresa-hero {
    background: linear-gradient(135deg, #0A3756 0%, #1a5a8a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    min-height: 200px;
    position: relative;
}

/* Botón volver en el hero */
.volver-btn-hero {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.volver-btn-hero:hover {
    background: #FF7A00;
    border-color: #FF7A00;
    transform: translateX(-3px);
}

/* Contenido centrado del hero */
.empresa-hero-content {
    text-align: center;
}

.empresas-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #FFD60A;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.empresas-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: white;
    margin: 0;
}

@media (min-width: 900px) {
    .empresas-title {
        font-size: 52px;
    }

    .empresas-subtitle {
        font-size: 26px;
    }
}

/* Cajas de contenido */
.empresa-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 25px;
    text-align: center;
}

.empresa-box h2 {
    color: #0A3756;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
}

.empresa-box p {
    color: #555;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Lista de servicios */
.empresa-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.empresa-list li {
    background: #f0f8ff;
    color: #0A3756;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #0A3756;
}

/* Tarjetas de empresa */
.empresa-card {
    background: #f5f5f5;
    border-radius: 15px;
    padding: 20px 25px;
    margin: 15px 0;
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    border-left: 5px solid #0A3756;
}

.empresa-card hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

/* Colores de tarjetas */
.empresa-card.light-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #2196F3;
}

.empresa-card.yellow {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
    border-left-color: #FF7A00;
}

.empresa-card.pink {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-left-color: #e91e63;
}

/* Sección de contacto */
.empresa-contacto {
    background: linear-gradient(135deg, #0A3756 0%, #1a5a8a 100%);
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.empresa-contacto .contact-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.empresa-contacto h2 {
    color: #FFD60A;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.btn-orange.wide {
    display: inline-block;
    padding: 16px 30px;
    font-size: 16px;
    max-width: 100%;
    word-break: break-word;
}

/* ===========================================================
   FOOTER
=========================================================== */
.footer {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    color: white;
    padding: 50px 30px 30px;
    border-top: 3px solid #FFD60A;
}

.footer-box {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.footer-left p {
    margin: 0;
}

.footer-center {
    text-align: center;
}

.logo-footer {
    height: 65px;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-footer:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-right a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-right a:hover {
    color: #FFD60A;
    padding-left: 5px;
}

.footer-copy {
    text-align: center;
    font-size: 13px;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-dev {
    text-align: center;
    font-size: 12px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-dev strong {
    color: #FFD60A;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer {
        padding: 35px 20px 25px;
    }

    .footer-box {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px;
        align-items: center !important;
    }

    /* En móvil: Primero info, luego logo centrado, luego links */
    .footer-left {
        order: 1;
        text-align: center !important;
        width: 100%;
    }

    .footer-left p {
        text-align: center !important;
        margin: 0 auto;
        font-size: 13px;
        line-height: 1.7;
    }

    .footer-center {
        order: 2;
        padding: 15px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center !important;
        width: 100%;
    }

    .footer-right {
        order: 3;
        text-align: center !important;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 15px;
        width: 100%;
    }

    .footer-right a {
        font-size: 13px;
        padding: 4px 0;
    }

    .footer-right a:hover {
        padding-left: 0;
    }

    .logo-footer {
        height: 55px;
    }
}

/* ===========================================================
   UTILIDADES
=========================================================== */
.oculto {
    display: none !important;
}

/* ===========================================================
   MENSAJE DE CONFIRMACIÓN DE RESERVA
=========================================================== */
#mensaje-confirmacion {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #28c76f 0%, #1e9b52 100%);
    color: white;
    padding: 30px 50px;
    border-radius: 20px;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: popIn 0.4s ease-out;
}

#mensaje-confirmacion strong {
    font-size: 22px;
    display: block;
    margin-bottom: 8px;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ===========================================================
   AVISO URGENTE
=========================================================== */
#aviso-urgente {
    background: #ffffff !important;
    color: #c80000 !important;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 3px solid #c80000;
}

#aviso-urgente *,
#aviso-urgente strong {
    color: #c80000 !important;
}

/* ===========================================================
   POPUP — FONDO OSCURO
=========================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
}

/* ===========================================================
   POPUP — FORMULARIO (NUEVO DISEÑO)
=========================================================== */
.popup-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: transparent;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.popup-contact-card {
    background: linear-gradient(180deg, #FFF9E6 0%, #FFF4CC 100%);
    border: 3px solid #0A3756;
    border-radius: 20px;
    padding: 30px 25px 25px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.popup-icon {
    font-size: 32px;
    display: inline-block;
    margin-bottom: 5px;
}

.popup-title {
    color: #0A3756;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.popup-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* FILAS DE DOS COLUMNAS */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #0A3756;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Error de trayecto local - enlace teléfono */
.error-direccion a {
    color: #991b1b;
    font-weight: 700;
    text-decoration: underline;
    font-size: 15px;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    outline: none;
    border-color: #0A3756;
    box-shadow: 0 0 0 3px rgba(10, 55, 86, 0.1);
}

/* BOTONES DEL POPUP */
.popup-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel {
    flex: 1;
    background: #0A6FE4;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-cancel:hover {
    background: #0857B8;
    transform: scale(1.02);
}

.btn-confirm {
    flex: 1;
    background: #FF7A00;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    line-height: 1.3;
}

.btn-confirm:hover {
    background: #E06A00;
    transform: scale(1.02);
}

/* ENLACE VOLVER */
.popup-back-link {
    background: white;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 30px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s, transform 0.1s;
}

.popup-back-link:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

#popupMensaje {
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

/* BOTÓN CERRAR POPUP */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s, transform 0.2s;
}

.popup-close:hover {
    color: #c00;
    transform: scale(1.1);
}

/* ESTILOS PARA SELECT */
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-group select:focus {
    outline: none;
    border-color: #0A3756;
    box-shadow: 0 0 0 3px rgba(10, 55, 86, 0.1);
}

/* ESTILOS PARA TEXTAREA */
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #333;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea:focus {
    outline: none;
    border-color: #0A3756;
    box-shadow: 0 0 0 3px rgba(10, 55, 86, 0.1);
}

/* CAMPO ANCHO COMPLETO */
.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 15px;
}

/* CAMPOS EXTRA (DIRECCIÓN, VUELO) */
.extra-field {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}

.extra-field:focus {
    outline: none;
    border-color: #0A3756;
    box-shadow: 0 0 0 3px rgba(10, 55, 86, 0.1);
}

/* ERROR DE DIRECCIÓN - VALIDACIÓN SANT CUGAT */
.error-direccion {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    animation: fadeInError 0.3s ease-out;
}

.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown de autocompletado de Google Maps dentro del popup */
.pac-container {
    z-index: 10000 !important;
}

/* CAMPOS VUELTA */
#vueltaCampos {
    background: rgba(10, 55, 86, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.popup-form::-webkit-scrollbar {
    width: 6px;
}

.popup-form::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 20px;
}

.section-title {
    text-align: center;
    font-weight: bold;
    font-size: 19px;
    margin-top: 25px;
    margin-bottom: 40px;
}

/* ===== Interruptor estilo iOS ===== */
.switch-container {
    text-align: center;
    margin: 20px 0;
}

.switch-text {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #063A55;
}

.switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.switch input:checked+.slider {
    background-color: #28c76f;
}

.switch input:checked+.slider:before {
    transform: translateX(26px);
}

.extra-field {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

/* ===========================================================
   BANNER COOKIES
=========================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: white;
    padding: 15px 20px;
    box-sizing: border-box;
    z-index: 3000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.cookie-banner a {
    color: #FFD60A;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cookie.accept {
    background: #28c76f;
    color: white;
}

.btn-cookie.reject {
    background: #c80000;
    color: white;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ===========================================================
   FIX POPUP MÓVIL
=========================================================== */
@media (max-width: 600px) {
    .popup-form {
        position: fixed;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 15px !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        transform: none !important;
        animation: slideFromBottom 0.3s ease-out;
        justify-content: flex-start;
        padding-top: 30px !important;
    }

    .popup-contact-card {
        border-radius: 15px;
        padding: 25px 20px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .popup-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-cancel,
    .btn-confirm {
        width: 100%;
        padding: 16px 20px;
    }

    .btn-confirm {
        line-height: 1.2;
    }

    .btn-confirm br {
        display: none;
    }

    .popup-back-link {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    @keyframes slideFromBottom {
        from {
            transform: translateY(30%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .popup-title {
        font-size: 22px !important;
    }
}

@media (max-width: 900px) {

    /* Mobile Cards: Hide text, show only button, adjust layout */
    .hero-card h2,
    .hero-card p {
        display: none;
    }

    .hero-card {
        padding: 0;
        justify-content: center;
        min-height: auto;
        gap: 0;
        /* Remove card styling on mobile */
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .hero-card .btn-orange {
        width: 100%;
        margin: 0;
        background: linear-gradient(180deg, #66BB6A, #1e6421);
        color: white;
        font-weight: 800;
        padding: 10px 10px;
        border-radius: 12px;
        display: inline-block;
        text-decoration: none;
        border: black 1px solid;
        cursor: pointer;
    }

    .btn-orange:hover {
        transform: scale(1.04);
    }


    /* Lower the section on mobile */
    .hero-cards-container {
        width: 90%;
        gap: 10px;
        /* Reduce gap between buttons since they have no card padding */
    }

    /* Show and format specific reservation text on mobile */

    /* Enable line break on mobile */
    .mobile-break {
        display: block !important;
    }
}

/* Hide line break on desktop by default */
.mobile-break {
    display: none;
}