/* =================================================================
   ESTILOS PREMIUM DEL MÓDULO RUTA DULCE - PASTELERÍA DULCE SABOR
   ================================================================= */

:root {
    /* Paleta de Colores de Ruta Dulce */
    --choc-900: #160d09;
    --choc-800: #24130c;
    --choc-700: #3a2117;
    --cream-100: #fff7e8;
    --cream-200: #f3e4c8;
    --gold-400: #d7a84f;
    --gold-500: #f0bf5a;
    --caramel-500: #b56b32;
    --berry-500: #8f2f46;
    --peach-300: #f2a98c;
    --white-soft: #fffaf2;
    
    /* Layout */
    --summary-border: rgba(200, 150, 93, 0.25);
}

/* =================================================================
   1. HERO SECCIÓN
   ================================================================= */
.delivery-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--choc-900);
}

.delivery-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.delivery-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.delivery-hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(22, 13, 9, 0.95) 0%, rgba(22, 13, 9, 0.75) 50%, rgba(22, 13, 9, 0.4) 100%),
        linear-gradient(to bottom, transparent 60%, var(--choc-900) 100%);
}

.delivery-hero-container {
    position: relative;
    z-index: 10;
    max-width: 1320px;
    margin: 0 auto;
    padding: 100px 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.delivery-hero-content {
    animation: delSlideInLeft 1s ease-out forwards;
}

.delivery-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(215, 168, 79, 0.12);
    border: 1px solid rgba(215, 168, 79, 0.3);
    color: var(--gold-500);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.delivery-hero-badge .material-symbols-outlined {
    font-size: 14px;
}

.delivery-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 68px);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
}

.delivery-hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 2.5vw, 32px);
    color: var(--gold-400);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.3;
}

.delivery-hero-desc {
    font-size: 16px;
    color: rgba(255, 250, 242, 0.8);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
}

.delivery-hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-delivery-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--caramel-500) 100%);
    color: var(--choc-900);
    border-radius: 30px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(215, 168, 79, 0.3);
}

.btn-delivery-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(215, 168, 79, 0.5);
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--caramel-500) 90%);
}

.btn-delivery-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-delivery-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-400);
    color: var(--gold-400);
}

.delivery-hero-graphic {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: delSlideInRight 1s ease-out 0.2s both;
}

/* Tarjetas Flotantes en Hero */
.glass-graphic-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    align-self: flex-start;
}

.glass-graphic-card.secondary-card {
    align-self: flex-end;
    background: rgba(215, 168, 79, 0.05);
    border-color: rgba(215, 168, 79, 0.15);
}

.graphic-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(215, 168, 79, 0.12);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.graphic-icon .material-symbols-outlined {
    font-size: 24px;
}

.glass-graphic-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 8px;
}

.glass-graphic-card p {
    font-size: 13px;
    color: rgba(255, 250, 242, 0.7);
    margin: 0;
    line-height: 1.5;
}

.graphic-box-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(215, 168, 79, 0.25) 0%, transparent 70%);
    top: -30px;
    right: -30px;
    pointer-events: none;
}

/* =================================================================
   2. MAIN SECTION & TARJETAS DE ENVÍO
   ================================================================= */
.delivery-main-section {
    padding: 80px 0;
    background-color: var(--choc-900);
}

.delivery-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.delivery-section-header .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 12px;
}

.delivery-section-header .section-desc {
    color: rgba(255, 250, 242, 0.65);
    max-width: 600px;
    margin: 0 auto;
}

.delivery-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.delivery-card {
    background-color: rgba(36, 19, 12, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.delivery-card:hover {
    transform: translateY(-8px);
    border-color: rgba(215, 168, 79, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background-color: rgba(36, 19, 12, 0.9);
}

.delivery-card.active {
    background-color: var(--choc-800);
    border-color: var(--gold-400);
    box-shadow: 0 15px 35px rgba(215, 168, 79, 0.08);
}

.dcard-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 12px;
}

.dcard-badge-express { background-color: rgba(242, 169, 140, 0.15); color: var(--peach-300); }
.dcard-badge-recommended { background-color: rgba(215, 168, 79, 0.15); color: var(--gold-400); }
.dcard-badge-event { background-color: rgba(143, 47, 70, 0.2); color: #f2a98c; }

.dcard-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--gold-400);
    transition: all 0.3s ease;
}

.delivery-card:hover .dcard-icon,
.delivery-card.active .dcard-icon {
    background: rgba(215, 168, 79, 0.1);
    border-color: rgba(215, 168, 79, 0.2);
    color: var(--gold-500);
}

.dcard-icon .material-symbols-outlined {
    font-size: 26px;
}

.dcard-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #ffffff;
    margin: 0 0 12px;
}

.dcard-desc {
    font-size: 13.5px;
    color: rgba(255, 250, 242, 0.6);
    line-height: 1.6;
    margin: 0 0 24px;
    flex: 1;
}

.dcard-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gold-400);
    font-weight: 600;
    margin-bottom: 12px;
}

.dcard-meta .material-symbols-outlined {
    font-size: 16px;
}

.dcard-price-add {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.dcard-btn {
    width: 100%;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-card.active .dcard-btn {
    background: var(--gold-400);
    color: var(--choc-900);
    border-color: var(--gold-400);
}

.delivery-card:hover .dcard-btn {
    border-color: var(--gold-400);
}

.delivery-card.active:hover .dcard-btn {
    background-color: var(--gold-500);
}

/* =================================================================
   3. PANEL DE PROGRAMACIÓN (FORMULARIO Y RESUMEN)
   ================================================================= */
.delivery-interactive-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    background-color: var(--choc-800);
    border: 1.5px solid rgba(200, 150, 93, 0.15);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 48px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.panel-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-subtitle .material-symbols-outlined {
    color: var(--gold-400);
    font-size: 24px;
}

/* Formulario */
.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.delivery-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 250, 242, 0.8);
    margin-bottom: 8px;
    display: block;
}

.delivery-form .form-input {
    background-color: rgba(22, 13, 9, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.delivery-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.delivery-form .form-input:focus {
    border-color: var(--gold-400);
    background-color: var(--choc-900);
    box-shadow: 0 0 0 3px rgba(215, 168, 79, 0.15);
}

.delivery-form .form-select {
    cursor: pointer;
}

/* Radio buttons de Rango Horario */
.time-range-group {
    display: flex;
    gap: 10px;
}

.time-radio {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.time-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.time-radio span {
    display: block;
    text-align: center;
    background-color: rgba(22, 13, 9, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10.5px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.time-radio input:checked + span {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
    color: var(--choc-900);
}

.time-radio:hover span {
    border-color: rgba(215, 168, 79, 0.4);
}

/* Checkboxes personalizados */
.form-options-row {
    display: flex;
    gap: 32px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.checkbox-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.checkbox-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    height: 20px;
    width: 20px;
    background-color: rgba(22, 13, 9, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-right: 12px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-option input:checked ~ .checkbox-custom {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 6.5px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--choc-900);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-option input:checked ~ .checkbox-custom:after {
    display: block;
}

.checkbox-text {
    font-size: 13.5px;
    color: rgba(255, 250, 242, 0.85);
    font-weight: 500;
}

.delivery-form .form-textarea {
    min-height: 80px;
    resize: none;
}

/* Botón Calcular */
.btn-calculate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--caramel-500) 100%);
    color: var(--choc-900);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(215, 168, 79, 0.2);
    margin-top: 12px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(215, 168, 79, 0.4);
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--caramel-500) 90%);
}

.btn-calculate .material-symbols-outlined {
    font-size: 20px;
}

/* Columna Resumen */
.glass-summary-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.summary-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 1.5px dashed var(--summary-border);
    padding-bottom: 16px;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
}

.summary-row span {
    color: rgba(255, 250, 242, 0.6);
}

.summary-row strong {
    color: #ffffff;
    font-weight: 600;
}

.cuidado-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 12px;
}

.cuidado-badge.basic { background-color: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.cuidado-badge.protected { background-color: rgba(215, 168, 79, 0.15); color: var(--gold-400); }
.cuidado-badge.cold { background-color: var(--color-info-bg); color: var(--color-info); }
.cuidado-badge.event { background-color: rgba(143, 47, 70, 0.25); color: #f2a98c; }

.summary-divider {
    height: 1px;
    background-color: var(--summary-border);
    margin: 8px 0;
}

.price-row {
    font-size: 15px;
}

.price-row strong {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--gold-400);
}

.time-row {
    font-size: 13px;
}

.time-row strong {
    color: var(--peach-300);
}

/* =================================================================
   4. MAPA DULCE ABSTRACTO
   ================================================================= */
.mapa-dulce-container {
    background-color: rgba(22, 13, 9, 0.8);
    border: 1px solid var(--summary-border);
    border-radius: 16px;
    padding: 16px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.mapa-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-400);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.mapa-header .material-symbols-outlined {
    font-size: 16px;
}

.mapa-canvas {
    height: 140px;
    position: relative;
    margin-bottom: 12px;
}

/* Nodos del mapa */
.map-node {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--choc-800);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    z-index: 10;
    transition: all 0.5s ease;
}

.map-node.active {
    border-color: var(--gold-400);
    color: var(--gold-400);
    background-color: var(--choc-900);
    box-shadow: 0 0 12px rgba(215, 168, 79, 0.3);
}

.map-node .material-symbols-outlined {
    font-size: 16px;
}

.map-node .node-label {
    position: absolute;
    bottom: -22px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    transition: color 0.5s ease;
}

.map-node.active .node-label {
    color: #ffffff;
}

/* Coordenadas de los Nodos en el lienzo */
.map-node-start { left: 16px; top: 44px; }
.map-node-1 { left: 95px; top: 22px; }
.map-node-2 { left: 160px; top: 68px; }
.map-node-end { right: 16px; top: 44px; }

/* SVG Ruta */
.map-svg-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Repartidor / Moto */
.map-delivery-moto {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--gold-400);
    color: var(--choc-900);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    top: 46px;
    left: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-delivery-moto .material-symbols-outlined {
    font-size: 16px;
}

/* Animación de Moto en la Ruta */
.map-delivery-moto.riding {
    opacity: 1;
    offset-path: path('M 30 60 Q 80 20, 120 70 T 270 60');
    offset-rotate: auto;
    animation: ridingMotoAnimation 8s ease-in-out forwards;
}

@keyframes ridingMotoAnimation {
    0% {
        offset-distance: 0%;
    }
    100% {
        offset-distance: 100%;
    }
}

.mapa-status {
    font-size: 11px;
    color: var(--gold-400);
    font-weight: 600;
    text-align: center;
    font-style: italic;
}

/* =================================================================
   5. TIMELINE DE SEGUIMIENTO
   ================================================================= */
.tracking-demo-code {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 7px 14px;
    border: 1px solid rgba(215, 168, 79, 0.35);
    border-radius: 999px;
    background: rgba(215, 168, 79, 0.08);
    color: var(--gold-300);
    font-size: 12px;
}
.tracking-demo-code strong { margin-left: 5px; color: var(--gold-400); letter-spacing: 0.4px; }

#delivery-section > .container > .delivery-section-header:first-child .section-desc {
    display: none;
}

.timeline-card {
    background-color: var(--choc-800);
    border: 1.5px solid rgba(200, 150, 93, 0.15);
    border-radius: 24px;
    padding: 36px 30px;
    margin-bottom: 48px;
    animation: delFadeInUp 0.6s ease-out;
}

.timeline-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.timeline-intro-desc {
    font-size: 14px;
    color: rgba(255, 250, 242, 0.65);
    text-align: center;
    margin-bottom: 40px;
}

.tracking-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto 30px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--choc-900);
    border: 3px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step.active .step-circle {
    border-color: var(--gold-400);
    color: var(--gold-400);
    background-color: var(--choc-800);
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(215, 168, 79, 0.3);
}

.timeline-step.completed .step-circle {
    border-color: var(--gold-400);
    background-color: var(--gold-400);
    color: var(--choc-900);
}

.step-label {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    transition: color 0.5s ease;
}

.timeline-step.active .step-label,
.timeline-step.completed .step-label {
    color: #ffffff;
}

.step-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-400);
    margin-top: 4px;
    opacity: 0.6;
}

.timeline-step.active .step-time,
.timeline-step.completed .step-time {
    opacity: 1;
}

.timeline-status-message {
    text-align: center;
    background-color: rgba(22, 13, 9, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    color: var(--gold-400);
    font-weight: 600;
    font-size: 14px;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* =================================================================
   6. PANEL DE CONFIRMACIÓN Y WHATSAPP
   ================================================================= */
.confirmation-panel {
    margin-top: 24px;
    border-top: 1px dashed var(--summary-border);
    padding-top: 20px;
    animation: delFadeIn 0.5s ease-out;
}

.confirmation-note {
    font-size: 12.5px;
    color: rgba(255, 250, 242, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.confirmation-note .material-symbols-outlined {
    color: var(--color-success);
    font-size: 18px;
    flex-shrink: 0;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
}

.btn-save-simulation {
    flex: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-simulation:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-400);
    color: var(--gold-400);
}

.btn-whatsapp-confirm {
    flex: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-confirm:hover {
    background-color: #128c7e;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* =================================================================
   7. GARANTÍAS DE ENTREGA
   ================================================================= */
.delivery-warranties-section {
    padding: 60px 0;
    background-color: var(--choc-800);
    border-top: 1px solid rgba(255,255,255,0.03);
}

.warranties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.warranty-card {
    background: rgba(22, 13, 9, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.warranty-card:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 168, 79, 0.15);
}

.warranty-icon {
    font-size: 32px;
    color: var(--gold-400);
    margin-bottom: 16px;
    display: block;
}

.warranty-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 10px;
}

.warranty-card p {
    font-size: 12.5px;
    color: rgba(255, 250, 242, 0.6);
    line-height: 1.5;
    margin: 0;
}

/* =================================================================
   8. MODAL DE COBERTURA
   ================================================================= */
.delivery-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.delivery-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--choc-800);
    border: 1.5px solid rgba(200, 150, 93, 0.25);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.delivery-modal.open .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #ffffff;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-body {
    padding: 30px;
}

.zones-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.zones-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.zones-table th {
    background-color: rgba(22, 13, 9, 0.5);
    padding: 12px 16px;
    color: var(--gold-400);
    font-weight: 700;
    border-bottom: 1.5px solid rgba(255,255,255,0.08);
}

.zones-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
}

.zones-table tr:last-child td {
    border-bottom: none;
}

/* =================================================================
   9. TARJETA FLOTANTE DE HISTORIAL (localStorage)
   ================================================================= */
.saved-route-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 280px;
    background-color: var(--choc-800);
    border: 1.5px solid var(--summary-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 500;
    overflow: hidden;
    animation: delSlideInUp 0.5s ease-out;
}

.saved-route-header {
    background-color: rgba(22, 13, 9, 0.5);
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-400);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid rgba(255,255,255,0.08);
}

.saved-route-header .material-symbols-outlined {
    font-size: 16px;
}

.saved-route-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    display: flex;
    align-items: center;
}

.saved-route-close:hover {
    color: #ffffff;
}

.saved-route-body {
    padding: 16px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.85);
}

.saved-route-body strong {
    color: var(--gold-400);
}

.saved-route-body p {
    margin: 0 0 10px;
    line-height: 1.4;
}

.saved-route-body button {
    width: 100%;
    padding: 8px 0;
    background-color: var(--gold-400);
    color: var(--choc-900);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.saved-route-body button:hover {
    background-color: var(--gold-500);
}

/* =================================================================
   10. ANIMACIONES CSS
   ================================================================= */
@keyframes delSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes delSlideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes delFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =================================================================
   11. MEDIA QUERIES RESPONSIVE
   ================================================================= */
@media (max-width: 1200px) {
    .delivery-hero-container {
        gap: 32px;
    }
    
    .delivery-interactive-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .delivery-hero-container {
        grid-template-columns: 1fr;
        padding: 60px 24px;
        text-align: center;
    }
    
    .delivery-hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .delivery-hero-buttons {
        justify-content: center;
    }
    
    .delivery-hero-graphic {
        flex-direction: row;
        justify-content: center;
    }
    
    .glass-graphic-card {
        align-self: auto !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .time-range-group {
        flex-direction: column;
    }
    
    .tracking-timeline {
        flex-direction: column;
        gap: 20px;
        padding-left: 20px;
    }
    
    .tracking-timeline::before {
        top: 20px;
        bottom: 20px;
        left: 38px;
        width: 3px;
        height: auto;
    }
    
    .timeline-step {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        width: 100%;
    }
    
    .step-label {
        margin-top: 0;
        text-align: left;
    }
    
    .step-time {
        margin-top: 0;
        margin-left: auto;
    }
    
    .saved-route-float {
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .delivery-hero-graphic {
        flex-direction: column;
        align-items: center;
    }
    
    .glass-graphic-card {
        width: 100%;
    }
    
    .delivery-interactive-panel {
        padding: 24px 16px;
    }

    .delivery-modal {
        align-items: flex-start;
        padding: 16px;
        overflow-y: auto;
    }

    .delivery-modal .modal-content {
        width: 100%;
        max-height: calc(100dvh - 32px);
        margin: auto 0;
        display: flex;
        flex-direction: column;
        border-radius: 18px;
    }

    .delivery-modal .modal-header {
        padding: 16px 18px;
        flex-shrink: 0;
    }

    .delivery-modal .modal-header h3 { font-size: 18px; }

    .delivery-modal .modal-body {
        padding: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .zones-table { min-width: 450px; font-size: 12px; }
    .zones-table th, .zones-table td { padding: 10px 12px; }
}
