:root {
    --repsol-blue: #001e37;
    --repsol-orange: #ff8a00;
    --repsol-pink: #fc4460;
    --repsol-gradient: linear-gradient(90deg, #fc4460, #ff8a00);
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    --text-main: #111827;
    --text-muted: #51517b;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Oculta Header y Footer */
/*header, footer, .site-header, .site-footer {
    display: none !important;
}*/

.repsol-checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .repsol-checkout-container {
        grid-template-columns: 1fr;
    }
    .sidebar-sticky {
        position: static !important;
        order: -1;
    }
}

/* Stepper */
.checkout-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.checkout-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    background: var(--bg-white);
    padding: 0 10px;
    text-align: center;
    width: 100px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    border-color: var(--repsol-blue);
    background: var(--repsol-blue);
    color: white;
}

.step-item.completed .step-number {
    background: var(--repsol-gradient);
    border-color: transparent;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.step-item.active .step-label {
    color: var(--repsol-blue);
}

/* Form Container */
.form-step-container {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    font-family: var(--font-header);
    color: var(--repsol-blue);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--repsol-blue);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--bg-gray);
}

input:focus {
    outline: none;
    border-color: var(--repsol-blue);
    background: var(--bg-white);
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Buttons */
.btn-primary {
    background: var(--repsol-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 1rem;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--repsol-blue);
    border: 1px solid var(--repsol-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 1rem;
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 2rem;
}

.plan-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.plan-header {
    background: var(--repsol-blue);
    color: white;
    padding: 1.5rem;
}

.plan-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: white !important;
}

.plan-body {
    padding: 1.5rem;
}

.price-box {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--repsol-orange);
    background: var(--repsol-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-unit {
    font-size: 1rem;
    color: var(--text-muted);
}

.benefit-list {
    list-style: none;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.benefit-item svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: #10b981;
}

/* Validation Errors */
.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

input.invalid {
    border-color: #ef4444;
}

input.invalid + .error-msg {
    display: block;
}

/* Summary Review */
.summary-review {
    background: var(--bg-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.summary-value {
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   v1.1.0 — Clases que reemplazan los estilos inline
   del index.html original
   ═══════════════════════════════════════════════════ */

/* Contenedor de botones Atrás / Siguiente */
.step-buttons {
    display: flex;
    gap: 1rem;
}

/* Aviso de pago en el paso 3 */
.payment-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Grupo del checkbox legal en paso 4 */
.legal-group {
    margin-top: 2rem;
}

.legal-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.legal-label input[type="checkbox"] {
    margin-top: 4px;
}

.legal-text {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.legal-text a {
    color: var(--repsol-blue);
    font-weight: 600;
}

/* Sidebar — subtítulo del plan */
.plan-subtitle {
	color: white !important;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Sidebar — nota del precio */
.price-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Sidebar — caja de teléfono de ayuda */
.help-box {
    background: var(--bg-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
}

.help-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.help-phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--repsol-blue);
}

/* Sidebar — sellos de confianza */
.trust-badges {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0.6;
}

.badge-visa {
    height: 12px;
}

.badge-mc {
    height: 20px;
}

.badge-confianza {
    height: 25px;
}
.btn-primary {
    background: var(--repsol-gradient);
    color: white;
    border: none;
    padding: 0.65rem 1.5rem; /* ← reducido */
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 1rem;
    transition: transform 0.2s, opacity 0.2s;
    font-size: 0.8rem;
    white-space: nowrap; /* ← evita wrap */
}

.btn-secondary {
    background: transparent;
    color: var(--repsol-blue);
    border: 1px solid var(--repsol-blue);
    padding: 0.55rem 1.1rem; /* ← reducido */
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 1rem;
    font-size: 0.8rem;
    white-space: nowrap; /* ← evita wrap */
}
/* ── DNI row — texto 50% + anverso 25% + reverso 25% ────────── */
.dni-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
}

.dni-input {
    grid-column: span 1; /* ocupa el primer tercio — ajusta si quieres 50% */
}

/* Para que el input de texto ocupe el 50% exacto usamos: */
.dni-row {
    grid-template-columns: 2fr 1fr 1fr;
}

/* ── File labels ─────────────────────────────────────────────── */
.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 0.5rem;
    border: 1.5px dashed var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    background: var(--bg-gray);
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    min-height: 72px;
}

.file-label:hover {
    border-color: var(--repsol-blue);
    background: var(--bg-white);
}

.file-label--full {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    min-height: auto;
}

.file-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.file-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    word-break: break-all;
}

.file-input {
    display: none; /* ocultamos el input nativo */
}

/* Estado inválido en file inputs */
.file-label.invalid,
input.file-input.invalid + .file-label {
    border-color: #ef4444;
}

/* ── Factura ─────────────────────────────────────────────────── */
.factura-group {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.factura-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--repsol-blue);
    margin-bottom: 0.25rem;
    display: block;
}

.factura-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* ── Popup informativo ───────────────────────────────────────── */
.repsol-popup {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--repsol-blue);
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    max-width: 90vw;
    text-align: center;
}

.repsol-popup.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .dni-row {
        grid-template-columns: 1fr 1fr;
    }
    .dni-input {
        grid-column: span 2;
    }
}
/* ── File label — estado completado ─────────────────────────── */
.file-label.uploaded {
    border-color: #10b981;
    background: #f0fdf4;
}

.file-label.uploaded .file-icon::after {
    content: ' ✓';
    color: #10b981;
    font-weight: 700;
}

.file-label.uploaded .file-text {
    color: #10b981;
    font-weight: 600;
}

@media (max-width: 768px) {

    /* Contenedor principal — casi ancho completo */
    .repsol-checkout-container {
        padding: 0.5rem;
        gap: 1rem;
    }

    /* Caja del formulario — sin padding lateral excesivo */
    .form-step-container {
        padding: 1.25rem 1rem;
    }

    /* Botones — que no se desborden */
    .step-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin: 0;
    }

    /* Grid de 2 columnas → 1 columna en móvil */
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* DNI row — texto arriba, fotos abajo lado a lado */
    .dni-row {
        grid-template-columns: 1fr 1fr;
    }

    .dni-input {
        grid-column: span 2;
    }

	/* Stepper — sin wrap en móvil */
	.step-label {
    	font-size: 0.6rem;
    	white-space: nowrap;
	}

	.step-item {
    	padding: 0 4px;
	}

}
/* ── Formulario de Reserva ───────────────────────────────────── */
.repsol-reserva-container {
    max-width: 560px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.reserva-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.reserva-header {
    background: var(--repsol-blue);
    color: white;
    padding: 1.75rem 2rem;
}

.reserva-header h2 {
    color: white !important;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.reserva-subtitle {
    opacity: 0.85;
    color: white !important;
	font-size: 0.875rem;
    font-weight: 400;
}

.reserva-card form {
    padding: 2rem;
}

.required-mark {
    color: var(--repsol-pink);
    font-weight: 700;
}

.optional-mark {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--bg-gray);
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--repsol-blue);
    background: var(--bg-white);
}

@media (max-width: 768px) {
    .repsol-reserva-container {
        padding: 0 0.5rem;
    }
    .reserva-card form {
        padding: 1.25rem 1rem;
    }
}
/* ── Subtítulos de sección dentro de un paso ─────────────────── */
.section-subtitle {
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--repsol-orange);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
    margin-top: 1.75rem;
}

.section-subtitle:first-of-type {
    margin-top: 0;
}
/* ── Select ──────────────────────────────────────────────────── */
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--bg-gray);
    color: var(--text-main);
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--repsol-blue);
    background-color: var(--bg-white);
}

select.invalid {
    border-color: #ef4444;
}
/* ── Aviso de privacidad sin checkbox ───────────────────────── */
.privacy-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.privacy-notice a {
    color: var(--repsol-blue);
    font-weight: 600;
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}