/* ==========================================================================
   ESTILOS GENERALES Y LAYOUT BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
    padding: 120px 24px 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

/* --- BARRA SUPERIOR BLANCA Y FLOTANTE --- */
.top-nav-container {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 9999;
}

.top-navbar {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 60px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    max-height: 46px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 10px rgba(220, 38, 38, 0.25));
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-order-now {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #dc2626;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    transition: all 0.3s ease;
}

.btn-order-now:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}

.menu-toggle-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* --- MENÚ DESPLEGABLE --- */
.dropdown-menu-card {
    position: absolute;
    top: 65px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
}

.dropdown-menu-card.active {
    display: flex;
}

.dropdown-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.dropdown-links a i:first-child {
    width: 24px;
    color: #475569;
}

.dropdown-links a span {
    flex-grow: 1;
    margin-left: 8px;
}

.dropdown-links a .arrow {
    font-size: 0.75rem;
    color: #dc2626;
    transition: transform 0.2s ease;
}

.dropdown-links a:hover, .dropdown-links a.active {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-links a:hover i:first-child, .dropdown-links a.active i:first-child {
    color: #dc2626;
}

.dropdown-links a:hover .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   LAYOUT PRINCIPAL DEL PEDIDO
   ========================================================================== */

.order-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

/* COLUMNA IZQUIERDA */
.order-info {
    padding-top: 10px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid #fca5a5;
    margin-bottom: 20px;
}

.order-title {
    font-size: 3rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.order-title .highlight {
    color: #dc2626;
}

.order-subtitle {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 480px;
    font-weight: 600;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
}

.features-list li i {
    color: #dc2626;
    font-size: 1rem;
    width: 24px;
    text-align: center;
}

/* COLUMNA DERECHA: TARJETA DE FORMULARIO */
.order-card-wrapper {
    width: 100%;
}

.order-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.card-header .subtext {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

/* FORMULARIO */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
    width: 100%;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.textarea-wrapper {
    align-items: flex-start;
}

.textarea-wrapper .input-icon {
    top: 14px;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 80px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    background-color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* MENSAJE DE ERROR CÓDIGO POSTAL */
.cp-error-text {
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 700;
    margin-top: 2px;
}

/* BOTÓN DE ENVÍO */
.btn-submit {
    background-color: #dc2626;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.3);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: #b91c1c;
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.4);
}

.btn-submit:active {
    transform: scale(0.99);
}

.form-disclaimer {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
}

/* ADAPTACIÓN RESPONSIVA */
@media (max-width: 992px) {
    .order-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .order-title {
        font-size: 2.4rem;
    }

    .top-nav-container {
        width: 95%;
    }
}

@media (max-width: 576px) {
    body {
        padding: 100px 16px 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .order-card {
        padding: 24px 18px;
    }

    .brand-logo-img {
        height: 32px;
    }
}