/* ==========================================================================
   Orlas Fotos Digitales - Frontend Styles
   ========================================================================== */

.ofd-wrap {
    width: 100%;
    max-width: 680px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.ofd-wrap * {
    box-sizing: border-box;
}

.ofd-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    padding: 35px 30px;
}

.ofd-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.ofd-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.ofd-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Alertas Destacadas (Móvil vs Ordenador) */
.ofd-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.ofd-alert-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.ofd-alert-body strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.ofd-alert-body p {
    margin: 0;
}

.ofd-alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    color: #92400e;
}

.ofd-alert-warning strong {
    color: #b45309;
}

.ofd-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #22c55e;
    color: #166534;
}

.ofd-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 5px solid #ef4444;
    color: #991b1b;
}

/* Pasos y Títulos de Sección */
.ofd-step-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f766e;
    margin: 25px 0 15px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #ccfbf1;
    display: flex;
    align-items: center;
}

/* Campos de Formulario */
.ofd-form {
    margin-top: 10px;
}

.ofd-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .ofd-grid-2 {
        grid-template-columns: 1fr;
    }
}

.ofd-field {
    margin-bottom: 18px;
}

.ofd-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.ofd-field label .req {
    color: #ef4444;
}

.ofd-field input[type="text"],
.ofd-field input[type="email"],
.ofd-field input[type="tel"],
.ofd-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ofd-field input:focus,
.ofd-field select:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.ofd-help {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Caja de Verificación de Identidad */
.ofd-verification-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 22px;
}

.ofd-verification-intro {
    font-size: 13px;
    color: #475569;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.ofd-divider-text {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.ofd-divider-text::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #cbd5e1;
}

.ofd-divider-text span {
    position: relative;
    background-color: #f8fafc;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* Selector de Fotos */
.ofd-photos-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ofd-photo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ofd-photo-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.ofd-photo-card.checked {
    border-color: #0f766e;
    background-color: #f0fdfa;
}

.ofd-photo-included {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    cursor: default;
}

.ofd-photo-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #0f766e;
    cursor: pointer;
}

.ofd-photo-info {
    flex-grow: 1;
}

.ofd-photo-info strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 2px;
}

.ofd-photo-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.ofd-photo-price {
    flex-shrink: 0;
}

.badge-free {
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 4px;
}

.badge-price {
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 4px;
}

.ofd-photo-card.checked .badge-price {
    background: #0f766e;
    color: #ffffff;
}

/* Barra de Total */
.ofd-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 2px dashed #0f766e;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.ofd-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
}

.ofd-total-amount {
    font-size: 24px;
    font-weight: 800;
    color: #0f766e;
}

.ofd-info-note {
    background-color: #f1f5f9;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Botones */
.ofd-btn-primary {
    display: block;
    width: 100%;
    padding: 15px 24px;
    background: #0f766e;
    color: #ffffff !important;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
}

.ofd-btn-primary:hover {
    background: #115e59;
    transform: translateY(-1px);
}

.ofd-btn-primary:active {
    transform: translateY(0);
}

.ofd-btn-download {
    background: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    margin-top: 20px;
}

.ofd-btn-download:hover {
    background: #047857;
}

.ofd-btn-pay {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    margin-top: 15px;
}

.ofd-btn-pay:hover {
    background: #1d4ed8;
}

/* Pantalla de Éxito */
.ofd-success-screen {
    text-align: center;
    padding: 30px 10px;
}

.ofd-success-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.ofd-success-screen h3 {
    font-size: 22px;
    color: #0f766e;
    margin: 0 0 10px 0;
}

.ofd-success-screen p {
    font-size: 15px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Tabla de Resumen en Descarga */
.ofd-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px 0;
}

.ofd-summary-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.ofd-summary-table td:first-child {
    width: 35%;
    color: #64748b;
}

/* Tarjeta Legal */
.ofd-legal-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 15px 0 25px 0;
}

.ofd-legal-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ofd-legal-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.ofd-actions-block {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
