/* ================================================= */
/* === FORM.CSS - ESTILOS PARA ASISTENTE Y FORMS === */
/* ================================================= */

/* 1. Asegurar la herencia de la fuente global */
body,
input,
select,
textarea,
button,
label,
.section-title,
.subsection-title {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2f3542;
}

/* ======================================================= */
/* === UNIFICACIÓN: CLASIFICACIÓN Y LUGAR === */
/* ======================================================= */

/* Contenedor unificado para Categoría + Ubicación */
.classification-location-block {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px 12px 0 0; /* Redondeado arriba, plano abajo */
    box-shadow: 0 6px 20px rgba(0, 191, 174, 0.15); /* Sombra suave permanente */
    margin-bottom: 0; /* Sin margen para unir con el siguiente bloque */
    border: 2px solid #00bfae; /* Borde verde activo permanente */
    border-bottom: none; /* Sin borde inferior */
    transition: all 0.3s ease;
}

.classification-location-block:hover {
    box-shadow: 0 10px 30px rgba(0, 191, 174, 0.25); /* Sombra más intensa en hover */
}

/* Título de sección para el bloque unificado */
.classification-location-block .block-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.classification-location-block .block-title i {
    color: #00bfae;
    font-size: 1.3rem;
}

/* Subtítulos internos para separar Categoría de Ubicación */
.classification-location-block .internal-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #34495e;
    margin-top: 15px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #00bfae;
}

/* Ajuste de los grupos de formulario dentro del bloque */
.classification-location-block .form-group {
    margin-bottom: 15px;
}

.classification-location-block .form-group:last-child {
    margin-bottom: 0;
}

/* Grid interno para campos en fila */
.classification-location-block .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Responsive para el bloque unificado */
@media (max-width: 768px) {
    .classification-location-block {
        padding: 18px;
    }

    .classification-location-block .block-title {
        font-size: 1.3rem;
    }

    .classification-location-block .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 2. Estilos para la barra de progreso */
.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
}

.step.active {
  opacity: 1;
}

.step.completed {
  opacity: 1;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.step.active .step-circle {
  background: var(--color-primario);
  color: white;
}

.step.completed .step-circle {
  background: var(--color-secundario);
  color: white;
}

.step-title {
  font-size: 0.9rem;
  text-align: center;
}

/* 3. Estilos unificados para los campos del formulario */
.form-section {
    background: var(--color-blanco);
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.form-group label {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-texto);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group select:hover,
.form-group input:hover,
.form-group textarea:hover {
    border-color: #00bfae;
    box-shadow: 0 4px 12px rgba(0, 191, 174, 0.1);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00bfae;
    box-shadow: 0 0 0 5px rgba(0, 191, 174, 0.15);
    background-color: #f0fffe;
}

/* 4. Estilos modernos para los botones de navegación */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.btn-group .btn {
    padding: 1.2rem 2.8rem;
    border-radius: .8rem;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: none;
}

.btn-group .btn-primary {
    background: linear-gradient(135deg, #00bfae 0%, #008f88 100%);
    color: white;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 191, 174, 0.3);
}
.btn-group .btn-primary:hover {
    background: linear-gradient(135deg, #008f88 0%, #007070 100%);
    box-shadow: 0 6px 20px rgba(0, 191, 174, 0.4);
    transform: translateY(-2px);
}

.btn-group .btn-secondary {
    background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
    color: var(--color-texto);
    border: 2px solid #bdc3c7;
}
.btn-group .btn-secondary:hover {
    background: linear-gradient(135deg, #d5dbdb 0%, #bdc3c7 100%);
    border-color: #95a5a6;
    transform: translateY(-2px);
}

/* ================================================= */
/* === MARCO VISUAL PARA ASISTENTE DE PUBLICACIÓN === */
/* ================================================= */

.wizard-footer-simple {
    background-color: #0a2342; /* Azul Marino personalizado */
    height: 50px; /* Igual que el encabezado */
    width: 100%;
    margin-top: auto; /* Para que se pegue abajo */
}

/* Ajuste de layout principal para que el footer se pegue abajo */
body {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container.publish-wizard {
    flex-grow: 1;
    width: 95%;
    max-width: 1600px;
    margin: 1.5rem auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 50%, #f0fffe 100%);
    padding: 25px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 191, 174, 0.08);
}

#ad-form {
    max-width: 100%;
    margin: 0 auto;
}

/* ================================================= */
/* === RESTAURACIÓN DE ESTILOS ESPECÍFICOS (FORM.CSS) === */
/* ================================================= */

/* 1. Estilos para los botones de subida de archivos */
.file-upload-btn {
    display: inline-block;
    padding: 1.2rem 2rem;
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    border-radius: .8rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color .2s ease;
}
.file-upload-btn:hover {
    background-color: var(--color-primario);
}
.file-name-display {
    display: inline-block;
    margin-left: 1.5rem;
    font-size: 1.4rem;
    color: var(--color-gris);
    font-style: italic;
}

/* 2. Estilos para la zona de "Arrastrar y Soltar" (Drop Area) - Diseño Minimalista */
.images-block .upload-zone {
    border: 2px dashed #00bfae !important; /* Borde turquesa permanente */
    background: #f0fdfa !important; /* Fondo turquesa muy suave */
    border-radius: 16px !important;
    padding: 40px 20px !important;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.images-block .upload-zone:hover {
    background-color: #e6fff9 !important; /* Turquesa más intenso en hover */
    border: 2px solid #00bfae !important; /* Borde sólido resaltado */
    transform: translateY(-2px); /* Pequeño levante */
    box-shadow: 0 6px 20px rgba(0, 191, 174, 0.2); /* Sombra más intensa */
}

.images-block .upload-zone.dragover {
    border-color: #00bfae !important;
    background: #b2f5ea !important;
    box-shadow: 0 6px 25px rgba(0, 191, 174, 0.25);
}

.upload-icon i {
    font-size: 3rem;
    color: #00bfae;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.images-block .upload-zone:hover .upload-icon i {
    transform: translateY(-5px);
}

.upload-text {
    font-size: 1.2rem;
    color: #1f2937; /* Oscurecido para mejor visibilidad */
    margin-bottom: 5px;
}

.upload-subtext {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 15px;
}

.upload-limit {
    font-size: 1.2rem;
    color: #4b5563; /* Gris más oscuro y legible */
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Contenedor de miniaturas - Grid profesional */
#preview-container,
.gallery-preview-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 10px;
}

#preview-container .preview-item,
.gallery-preview-container .preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#preview-container .preview-item img,
.gallery-preview-container .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#preview-container .preview-item .remove-btn,
.gallery-preview-container .preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.2s ease;
}

#preview-container .preview-item .remove-btn:hover,
.gallery-preview-container .preview-item .remove-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #preview-container,
    .gallery-preview-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    #preview-container,
    .gallery-preview-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilos legacy para compatibilidad */
.drop-area {
    border: 2px dashed #00bfae; /* Borde turquesa permanente */
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f0fdfa; /* Fondo turquesa muy suave */
    margin-top: 1rem;
    position: relative;
}

.drop-area:hover {
    border-color: #00bfae;
    background: #e6fff9;
    box-shadow: 0 6px 20px rgba(0, 191, 174, 0.2); /* Sombra más intensa */
}

.drop-area i {
    font-size: 5rem;
    color: #00bfae;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.drop-area p {
    font-size: 1.6rem;
    color: #374151;
    font-weight: 500;
    margin: 0;
}

/* 3. Estilo HOVER para el botón "Atrás" */
.btn-group .btn-secondary {
    background-color: transparent;
    color: var(--color-gris);
    border: 2px solid #ddd;
}
.btn-group .btn-secondary:hover {
    background-color: transparent;
    color: var(--color-primario);
    border-color: var(--color-primario);
}

/* ================================================= */
/* === ESTILOS PARA LA SECCIÓN DE IMÁGENES REESTRUCTURADA === */
/* ================================================= */

.image-upload-section .subsection-title {
    margin-bottom: 2rem;
}

.upload-group {
    margin-bottom: 3rem; /* Espacio entre Portada y Galería */
}

.upload-group > label {
    font-size: 1.8rem; /* Tamaño de letra más grande para los títulos de cada grupo */
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.label-tag {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-gris);
    margin-left: 1rem;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.8rem;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.file-input-wrapper:hover {
    border-color: #00bfae;
    box-shadow: 0 4px 15px rgba(0, 191, 174, 0.1);
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.btn-file-upload {
    background: linear-gradient(135deg, #00bfae 0%, #008f88 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 1.4rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 191, 174, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-file-upload:hover {
    background: linear-gradient(135deg, #008f88 0%, #007070 100%);
    box-shadow: 0 6px 16px rgba(0, 191, 174, 0.4);
    transform: translateY(-2px);
}

.btn-file-upload:active {
    transform: translateY(0px);
}

.file-name {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
}

/* ============================================= */
/* === ESTILOS PARA PASO 4 (MOTOR DE INGRESOS) === */
/* ============================================= */

.membership-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.membership-card {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.membership-card.popular {
    border-color: var(--color-primario);
    box-shadow: 0 5px 20px rgba(0, 191, 174, 0.15);
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-suave);
}

.membership-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.membership-card input[type="radio"]:checked + label::after {
    content: '✔';
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--color-primario);
    font-size: 2.5rem;
    font-weight: bold;
}

.membership-card label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.membership-card h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-texto);
    margin-bottom: 1rem;
}

.membership-card .price {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-primario);
}

.benefits-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.benefits-list li {
    font-size: 1.4rem;
    color: var(--color-gris);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.benefits-list i {
    color: var(--color-secundario);
    margin-right: 1rem;
}

.premium-badge {
    background: var(--color-primario);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlight-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.highlight-option {
    background: #f7fafd;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    border: 1px solid #eee;
}

.highlight-option input[type="checkbox"] {
    margin-right: 1.5rem;
    transform: scale(1.4);
}

/* ============================================= */
/* === AJUSTES FINALES PARA PASO 4 === */
/* ============================================= */

.form-section {
    background-color: #F0FAFA; /* Turquesa Pastel */
}

.membership-card {
    border: 2px solid var(--color-primario); /* Borde Turquesa para todas */
}

.highlight-options-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-button {
    display: block;
    padding: 1.5rem;
    background-color: var(--color-blanco);
    border: 2px solid #eee;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.highlight-button input[type="checkbox"] {
    display: none; /* Ocultamos el checkbox feo */
}

.highlight-button:hover {
    border-color: var(--color-secundario);
}

/* Estilo para cuando el botón está SELECCIONADO */
.highlight-button input[type="checkbox"]:checked + span {
    color: var(--color-primario);
}

.highlight-button input[type="checkbox"]:checked {
    /* (Workaround) Accedemos al label desde el input chequeado */
    ~ span { color: var(--color-primario); } /* Para algunos navegadores */
}

.highlight-button:has(input:checked) {
    border-color: var(--color-primario);
    box-shadow: 0 0 10px rgba(0, 191, 174, 0.2);
}

.highlight-button span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.highlight-button span strong {
    font-size: 1.6rem;
}

.highlight-button span small {
    font-size: 1.3rem;
    color: var(--color-gris);
}

/* ======================================================= */
/* === ESTILOS DE PREVISUALIZACIÓN (ALTA PRIORIDAD) === */
/* ======================================================= */

.image-preview-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid #eee !important;
}

.preview-image-wrapper {
    position: relative !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: var(--sombra-suave) !important;
}

.preview-image-wrapper .preview-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.preview-image-wrapper .remove-image-btn {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    background: rgba(0,0,0,0.7) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 14px !important;
    transition: background 0.2s !important;
    opacity: 0 !important;
    z-index: 10 !important; /* Asegurar que esté por encima */
}

.preview-image-wrapper:hover .remove-image-btn {
    opacity: 1 !important;
}

.remove-image-btn:hover {
    background: #ff4d4d !important;
}

/* Estilos específicos para la galería en publicar.html */
#gallery-preview-container {
    min-height: 160px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0fffe 100%);
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
    max-width: 500px;
}

#gallery-preview-container .preview-image-wrapper {
    width: 100% !important;
    height: 100px !important;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

#gallery-preview-container .preview-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 191, 174, 0.2);
}

#gallery-preview-container .preview-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
/* ========== ESTILOS PARA TARJETAS DE PLANES ========== */
.plans-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.plan-card {
    width: 220px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background: white;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.plan-header {
    padding: 20px;
    text-align: center;
    color: white;
}

.plan-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.plan-duration {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 28px;
    font-weight: 600;
}

.plan-body {
    padding: 20px;
}

/* CORRECCIÓN DE ALINEACIÓN EN BENEFICIOS */
.benefits-list li,
.service-item {
    display: flex;
    align-items: flex-start;  /* Alinea arriba */
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;         /* Mejor legibilidad */
}

.benefits-list i,
.service-item i {
    margin-right: 12px;       /* Más espacio */
    margin-top: 2px;          /* Alineación vertical */
    flex-shrink: 0;           /* No se encoge */
    font-size: 14px;
}

.benefits-list span,
.service-item span {
    flex: 1;                  /* Ocupa espacio disponible */
}

.benefits-list .fa-check {
    color: #28a745;
}

.benefits-list .fa-times {
    color: #dc3545;
}

.plan-select {
    display: block;
    cursor: pointer;
}

.plan-select input {
    display: none;
}

.plan-button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.plan-select input:checked + .plan-button {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* COLORES ESPECÍFICOS POR PLAN */
/* GRATIS - Ahora con TURQUESA corporativo */
.gratis .plan-header {
    background: linear-gradient(135deg, #00BCD4, #00ACC1);  /* Turquesa */
    color: white;
}

.gratis .plan-button {
    background: #00BCD4;
    color: white;
}

.gratis .plan-button:hover {
    background: #00ACC1;
}

.basico .plan-header {
    background: linear-gradient(135deg, #cd7f32, #e6a85c);
}

.basico .plan-button {
    background: #cd7f32;
    color: white;
}

/* PREMIUM - Ahora con GRIS (mejor contraste con plata) */
.premium .plan-header {
    background: linear-gradient(135deg, #6c757d, #5a6268);  /* Gris */
    color: white;
}

.premium .plan-button {
    background: #6c757d;
    color: white;
}

.premium .plan-button:hover {
    background: #5a6268;
}

.destacado .plan-header {
    background: linear-gradient(135deg, #d4af37, #f1c40f);
}

.destacado .plan-button {
    background: #d4af37;
    color: white;
}

.top .plan-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.top .plan-button {
    background: #667eea;
    color: white;
}

.popular-badge, .premium-badge {
    position: absolute;
    top: -8px; /* Adjusted to be slightly higher above the card for better visibility */
    left: 50%;
    transform: translateX(-50%); /* Centered, no rotation */
    background: #ff4757;
    color: white;
    padding: 5px 25px 3px; /* Adjusted padding for better text fit and arc shape, less thick */
    border-radius: 10px 10px 0 0; /* Adjusted border-radius for a more subtle arc */
    font-size: 11px;
    font-weight: bold;
    z-index: 1;
    white-space: nowrap; /* Prevent text wrapping */
    box-sizing: border-box; /* Ensure padding doesn't affect overall size unexpectedly */
}

.premium-badge {
    background: #5f27cd;
    padding: 5px 25px 3px; /* Apply same padding for consistency */
    border-radius: 10px 10px 0 0; /* Ensure arc shape for premium badge as well */
}

/* FORZAR TEXTO BLANCO EN PREMIUM - SELECTORES MÁS ESPECÍFICOS */
.plans-container .plan-card.premium .plan-header {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}

.plans-container .plan-card.premium .plan-header * {
    color: white !important;
}

.plans-container .plan-card.premium .plan-header h3,
.plans-container .plan-card.premium .plan-header p,
.plans-container .plan-card.premium .plan-title,
.plans-container .plan-card.premium .plan-duration,
.plans-container .plan-card.premium .plan-price {
    color: white !important;
    opacity: 1 !important;
}

/* Extra específico por si acaso */
#step-4 .premium .plan-header * {
    color: white !important;
}

.details-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(135deg, #f5f7fa, #eef1f8);
    border-radius: 20px;
}

.detail-column {
    flex: 1;
    min-width: 420px;
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 28px;
    border-bottom: 4px solid #00bfae;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title i {
    color: #00bfae;
    font-size: 2.2rem;
}

.subsection-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 18px;
    border-bottom: 3px solid #00bfae;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subsection-title i {
    color: #00bfae;
    font-size: 1.2rem;
}


.form-group small { /* Estilo para el texto de ayuda general */
    font-size: 0.9rem; /* Ajustado para un tamaño consistente */
}

.plan-destacado-feature label {
    line-height: 1.5;
    word-spacing: 1px;
}

/* ⚠️ ESTILOS ANTIGUOS REEMPLAZADOS - Ver línea 617 para estilos actualizados */

.plan-top-feature,
.plan-destacado-feature {
    color: #2b2b2b;          /* tono de negro elegante */
    font-weight: 500;        /* semibold para más presencia */
    font-size: 1rem;
    line-height: 1.7;
}

.plan-top-feature small,
.plan-destacado-feature small {
    color: #555;             /* gris medio para las notas debajo */
    font-size: 0.9rem; /* Ajustado para que coincida con el texto de ayuda */
    line-height: 1.6;
}

.image-upload-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 1.2rem;
    transition: all 0.3s ease; /* Transición suave para el efecto borroso */
}

.images-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 35px 40px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.image-upload-section {
    width: 100%;
    text-align: center;
}

#gallery-drop-area {
    border: 2px dashed #667eea;
    border-radius: 10px;
    padding: 40px 20px;
    background: #f8f9ff;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

#gallery-drop-area:hover {
    background: #eef1ff;
}

.plan-info {
    margin-top: 18px;
    color: #2c3e50;
    line-height: 1.5;
    font-size: 1rem;
}
.plan-info strong {
    color: #1a237e;
}

.plan-limit-info {
    margin-top: 16px;
    text-align: center;
    background: linear-gradient(135deg, #f0fffe 0%, #e8faf8 100%);
    color: #2c3e50;
    font-size: 1.5rem;
    line-height: 1.8;
    padding: 14px;
    border-radius: 10px;
    border-left: 4px solid #00bfae;
    font-weight: 600;
}

.plan-limit-info p {
    margin: 6px 0;
}
#gallery-drop-area {
    margin-bottom: 10px;  /* espacio entre cuadro y texto */
}

/* Estilos para el nuevo layout del Paso 4 */
.details-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    max-width: 100%;
    margin: 0;
    align-items: start;
}

.left-column {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 25px;
    width: 100%;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.section-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px 25px;
}

/* Ajustes para títulos de bloques específicos en Paso 4 */
.contact-block .subsection-title,
.images-block .subsection-title {
    font-size: 1.5rem; /* Más grande que subsection-title, pero quizás un poco menos que section-title */
    font-weight: 700;
    color: #1a1d29; /* Mismo color que section-title */
    text-align: left; /* Mantener alineación a la izquierda si es el caso, o centrar si se desea */
    border-bottom: none; /* Eliminar el borde inferior si se quiere un aspecto más de título principal */
    padding-bottom: 0;
    margin-bottom: 20px; /* Ajustar margen */
}

.contact-block .subsection-title i,
.images-block .subsection-title i {
    font-size: 1.8rem; /* Icono más grande */
    margin-right: 10px;
    color: #667eea; /* Color del icono, si se desea diferente */
}

/* === Fondo general moderno === */
body {
    background: linear-gradient(135deg, #e2e8f0 0%, #d6dcff 100%);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
}

/* === Títulos de secciones === */
.section-title {
    font-size: 2.9rem;
    font-weight: 700;
    color: #3f4046;
    text-align: center;
    letter-spacing: 0.4px;
    margin-bottom: 25px;
}

.subsection-title {
    font-size: 1.15rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    color: #253858;
    margin-bottom: 15px;
    padding-bottom: 6px;
}


input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 6px rgba(102, 126, 234, 0.25);
}

/* === Botón principal === */
.btn-primary {
    background: linear-gradient(135deg, #00bfae 0%, #008f88 100%);
    border: none;
    color: #fff !important;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 174, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #008f88 0%, #007070 100%);
    box-shadow: 0 8px 25px rgba(0, 191, 174, 0.4);
    transform: translateY(-2px);
}

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

/* ===== RESPONSIVE DESIGN PARA MÓVILES ===== */
@media (max-width: 768px) {
    main.container.publish-wizard {
        padding: 1rem;
        margin: 0;
        border-radius: 0;
        max-width: 100%;
        width: 100%;
    }

    #ad-form {
        max-width: 100%;
        width: 100%;
        padding: 0;
        overflow-x: hidden;
    }

    /* Asegurar que todo el contenido se mantenga dentro */
    #ad-form * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        border-radius: 8px;
    }

    /* Convertir layout de dos columnas a una sola en móvil */
    .details-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .form-group label {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .form-group select, 
    .form-group input, 
    .form-group textarea {
        width: 100%;
        padding: 1.2rem;
        font-size: 1.4rem;
        box-sizing: border-box;
    }

    .left-column {
        padding: 1.5rem;
        margin-bottom: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .right-column {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .section-block {
        padding: 1.5rem;
        margin-bottom: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .progress-steps {
        gap: 1rem;
        flex-wrap: wrap;
        padding: 0 0.5rem;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .subsection-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-primary, .btn, .next-btn, .back-btn {
        width: 100%;
        padding: 1.4rem 2rem;
        font-size: 1.4rem;
        box-sizing: border-box;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .publish-wizard {
        max-width: 100%;
        padding: 1rem;
        width: 100%;
    }

    .plan-option {
        padding: 1.5rem;
        margin-bottom: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .plan-option h3 {
        font-size: 1.4rem;
    }

    .plan-price {
        font-size: 1.8rem;
    }

    .plan-list {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    main.container.publish-wizard {
        padding: 0.5rem;
        margin: 0;
        border-radius: 0;
        width: 100%;
    }

    #ad-form {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    .form-section {
        padding: 1.2rem;
        margin-bottom: 1rem;
        width: 100%;
        box-sizing: border-box;
        border-radius: 8px;
    }

    /* Convertir layout de dos columnas a una sola en móvil pequeño */
    .details-layout {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
        width: 100%;
    }

    .form-group label {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .form-group select, 
    .form-group input, 
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        font-size: 1.3rem;
        box-sizing: border-box;
    }

    .left-column {
        padding: 1.2rem;
        margin-bottom: 0.8rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .right-column {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .section-block {
        padding: 1.2rem;
        margin-bottom: 0.8rem;
        width: 100%;
        box-sizing: border-box;
    }

    .progress-steps {
        gap: 0.5rem;
        padding: 0 0.2rem;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .subsection-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-primary, .btn, .next-btn, .back-btn {
        width: 100%;
        padding: 1.2rem 1.5rem;
        font-size: 1.3rem;
        box-sizing: border-box;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .plan-option {
        padding: 1.2rem;
        margin-bottom: 0.8rem;
        width: 100%;
        box-sizing: border-box;
    }

    .plan-option h3 {
        font-size: 1.3rem;
    }

    .plan-price {
        font-size: 1.6rem;
    }

    .plan-list {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .subsection-title {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    input, select, textarea {
        font-size: 1rem;
        padding: 8px 10px;
        border-radius: 6px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .btn-primary, .btn, .next-btn, .back-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .publish-wizard {
        max-width: 100%;
        padding: 0.5rem;
    }

    .plan-cards-container {
        grid-template-columns: 1fr;
    }

    .plan-option {
        padding: 12px;
        margin-bottom: 0.8rem;
    }

    .plan-option h3 {
        font-size: 0.95rem;
    }

    .plan-price {
        font-size: 1rem;
    }

    .plan-list {
        font-size: 0.85rem;
    }
}
