@import url('https://fonts.googleapis.com/css2?family=Baumans&display=swap');

/* ===================================
   VARIABLES CORPORATIVAS HM INNOVA
   =================================== */
:root {
    --hm-gris-carbon: #666361;
    --hm-azul-corp: #0f4376;
    --hm-azul-claro: #87c1ea;
    --hm-amarillo: #ecc448;
    --hm-verde-lima: #c2c900;
    --hm-azul-oscuro: #1a5a99;
}

.agenda-hm-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ===================================
   HEADER REDISEÑADO
   =================================== */
.agenda-hm-header {
    background: linear-gradient(135deg, var(--hm-azul-corp) 0%, var(--hm-azul-oscuro) 50%, var(--hm-azul-corp) 100%);
    position: relative;
    overflow: hidden;
    padding: 30px 20px;
    color: white;
    text-align: center;
}

/* Efecto de plano de construcción */
.agenda-hm-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(135,193,234,0.05) 1px, transparent 1px),
        linear-gradient(rgba(135,193,234,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

.agenda-hm-header h1 {
    font-size: 32px;
    margin: 0 0 20px 0;
    font-weight: 400;
    color: white !important;
    font-family: 'Baumans', cursive !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.agenda-hm-header-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.agenda-hm-header-logo img {
    max-height: 78px;
    max-width: 260px;
    object-fit: contain;
}

/* Hero Section */
.agenda-hm-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 0;
}

.agenda-hm-year-badge {
    display: inline-block;
    background: var(--hm-amarillo);
    color: var(--hm-azul-corp);
    font-size: 24px;
    font-weight: 800;
    padding: 8px 25px;
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(236, 196, 72, 0.4);
    letter-spacing: 2px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(236, 196, 72, 0.4); }
    50% { box-shadow: 0 6px 25px rgba(236, 196, 72, 0.6); }
}

.agenda-hm-title {
    margin: 20px 0;
    line-height: 1.2;
}

.title-line-1 {
    display: block;
    font-size: 28px;
    font-weight: 300;
    color: var(--hm-azul-claro);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.title-line-2 {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-top: 10px;
}

.agenda-hm-subtitle {
    color: var(--hm-azul-claro);
    font-size: 16px;
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.6;
    font-weight: 300;
}

/* Barra de valores */
.agenda-hm-values {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 25px 20px 0;
    background: rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 25px;
    position: relative;
    z-index: 2;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-3px);
}

.value-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.value-text {
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agenda-hm-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.agenda-hm-step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.agenda-hm-step-dot.active {
    background: var(--hm-verde-lima);
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(194, 201, 0, 0.5);
}

.agenda-hm-content {
    padding: 50px 30px;
}

.agenda-hm-step-content {
    display: none;
}

.agenda-hm-step-content.active {
    display: block;
    animation: agendaFadeIn 0.5s ease;
}

@keyframes agendaFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.agenda-hm-step-content h2 {
    color: var(--hm-azul-corp);
    margin: 0 0 30px 0;
    font-size: 28px;
    text-align: center;
}

/* ===================================
   INTRO CARD CON STORYTELLING
   =================================== */
.agenda-hm-intro-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #7a3d00;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.agenda-hm-intro-card h2 {
    color: #7a3d00;
    font-size: 24px;
    margin: 0 0 15px 0;
    text-align: left;
}

.intro-description {
    color: var(--hm-gris-carbon);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.intro-description strong {
    color: var(--hm-azul-corp);
    font-weight: 700;
}

/* Descripción de pasos */
.step-description {
    text-align: center;
    color: var(--hm-gris-carbon);
    font-size: 15px;
    line-height: 1.6;
    max-width: 600px;
    margin: -10px auto 30px;
    font-weight: 300;
}

/* ===================================
   FORMULARIOS MEJORADOS
   =================================== */
.agenda-hm-form-group {
    margin-bottom: 25px;
}

.agenda-hm-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #7a3d00;
    margin-bottom: 10px;
    font-size: 16px;
}

.label-icon {
    font-size: 20px;
}

.input-hint {
    display: block;
    color: #7a3d00;
    font-size: 13px;
    margin-top: 6px;
    font-style: italic;
}

.agenda-hm-form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.agenda-hm-form-group input:focus {
    outline: none;
    border-color: var(--hm-azul-corp);
    box-shadow: 0 0 0 3px rgba(15, 67, 118, 0.1);
}

.agenda-hm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.agenda-hm-img-option {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.agenda-hm-img-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.agenda-hm-img-option.selected {
    border-color: var(--hm-verde-lima);
    transform: translateY(-5px) scale(1.02);
}

.agenda-hm-img-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-hm-preview {
    position: relative;
    max-width: 450px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.agenda-hm-preview img {
    width: 100%;
    display: block;
}

/* Franja gris con logo superpuesta en paso 3 */
.agenda-hm-preview-strip {
    position: absolute;
    bottom: 0%;
    left: 0;
    width: 100%;
    height: 13%;
    background: rgba(207, 149, 24, 0.60); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;
}

/* Nombre del cliente en la franja (izquierda) */
.agenda-hm-preview-name {
    position: relative;
    flex: 0 0 55%;
    color: #ffffff;
    font-weight: 400;
    text-align: left;
    font-size: 24px;
    line-height: 1.1;
    font-family: 'Baumans', cursive;
    word-wrap: break-word;
    padding-right: 15px;
}

/* Logo de la empresa en la franja (derecha) */
.agenda-hm-preview-logo {
    flex: 0 0 40%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.agenda-hm-preview-logo img {
    max-height: 80%;
    max-width: 100%;
    object-fit: contain;
    margin-right: 15px;
}

.agenda-hm-edit-name {
    text-align: center;
    margin-top: 25px;
}

.agenda-hm-edit-name label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.agenda-hm-edit-name input {
    padding: 12px 25px;
    font-size: 20px;
    border: 2px solid var(--hm-azul-corp);
    border-radius: 10px;
    text-align: left;
    max-width: 400px;
    width: 100%;
    font-family: 'Baumans', cursive !important;
}

.agenda-hm-edit-name input:focus {
    border-color: var(--hm-verde-lima);
    outline: none;
    box-shadow: 0 0 0 3px rgba(194, 201, 0, 0.1);
}

.agenda-hm-phrases {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 30px 0;
}

.agenda-hm-phrase {
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 19px;
    color: #333;
    background: white;
}

.agenda-hm-phrase:hover {
    border-color: var(--hm-azul-claro);
    background: #f1f8f4;
    transform: translateX(8px);
}

.agenda-hm-phrase.selected {
    border-color: var(--hm-verde-lima);
    background: #e8f5e9;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(194, 201, 0, 0.2);
}

/* Contraportada */
.agenda-hm-contraportada {
    position: relative;
    max-width: 450px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.agenda-hm-contraportada img {
    width: 100%;
    display: block;
}

.agenda-hm-contraportada-overlay {
    position: absolute;
    top: 14%;
    left: 45%;
    transform: translateX(-50%);
    width: 65%;
    height: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
}

.agenda-hm-contraportada-text {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--hm-azul-corp);
    text-align: right;
    max-width: 100%;
    margin-right: 10px;
}

/* ===================================
   MENSAJE FINAL NAVIDEÑO
   =================================== */
.agenda-hm-final {
    text-align: center;
    padding: 40px 20px;
}

.agenda-hm-final h2 {
    color: var(--hm-azul-corp);
    margin-bottom: 30px;
    font-size: 32px;
}

.final-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.final-emoji {
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.final-message {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.message-highlight {
    font-size: 22px;
    color: var(--hm-azul-corp);
    font-weight: 700;
    margin: 20px 0;
}

.message-title {
    font-size: 20px;
    color: var(--hm-verde-lima);
    font-weight: 700;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message-body {
    font-size: 17px;
    color: var(--hm-gris-carbon);
    line-height: 1.8;
    margin: 20px 0;
}

.delivery-info {
    background: linear-gradient(135deg, var(--hm-amarillo) 0%, var(--hm-verde-lima) 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 35px 0;
    box-shadow: 0 6px 20px rgba(236, 196, 72, 0.3);
}

.delivery-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.delivery-text {
    color: var(--hm-azul-corp);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.final-greeting {
    font-size: 18px;
    color: var(--hm-azul-corp);
    margin-top: 35px;
    line-height: 1.6;
}

.final-greeting em {
    color: var(--hm-azul-claro);
    font-style: italic;
    display: block;
    margin-top: 10px;
}

#hmRedirectCounter {
    font-size: 14px;
    color: #999;
    margin-top: 30px;
    text-align: center;
}

.agenda-hm-final-img {
    position: relative;
    max-width: 400px;
    margin: 30px auto;
}

.agenda-hm-final-img img {
    width: 100%;
    display: block;
}

/* Nombre sobre el mockup final */
.agenda-hm-final-name {
    position: absolute;
    bottom: 14.5%;
    left: 42%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    width: 78%;
    padding: 6px;
    font-family: 'Baumans', cursive;
    line-height: 1.1;
    word-wrap: break-word;
}

.agenda-hm-final p {
    font-size: 19px;
    color: #666;
    line-height: 1.8;
    margin: 15px 0;
}

.agenda-hm-final .highlight {
    font-size: 22px;
    color: var(--hm-verde-lima);
    font-weight: 700;
    margin: 25px 0;
}

.agenda-hm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.agenda-hm-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   BOTONES CORPORATIVOS
   =================================== */
.agenda-hm-btn-primary {
    background: linear-gradient(135deg, #7a3d00 0%, #d29616 100%)
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.agenda-hm-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.agenda-hm-btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.agenda-hm-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--hm-verde-lima) 0%, var(--hm-amarillo) 100%);
    color: var(--hm-azul-corp);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(194, 201, 0, 0.3);
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.agenda-hm-btn-primary:hover:not(:disabled) .btn-arrow {
    transform: translateX(5px);
}

.agenda-hm-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.agenda-hm-btn-secondary {
    background: #95a5a6;
    color: white;
}

.agenda-hm-btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Ajustes especificos para moviles pequenos */
@media (max-width: 600px) {
    .agenda-hm-preview {
        max-width: 320px;
        margin: 20px auto;
    }

    /* Franja responsive */
    .agenda-hm-preview-strip {
        height: 11%;
        padding: 0 10px;
        bottom: 13%;
    }

    .agenda-hm-preview-name {
        font-size: 16px;
        padding-right: 8px;
    }

    .agenda-hm-preview-logo img {
        max-height: 70%;
    }

    .agenda-hm-final-img {
        max-width: 320px;
        margin: 20px auto;
    }

    .agenda-hm-final-name {
        font-size: 14px;
        padding: 4px;
        bottom: 13%;
    }
}

/* Responsive general */
@media (max-width: 768px) {
    .agenda-hm-content {
        padding: 30px 20px;
    }

    .agenda-hm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .agenda-hm-header h1 {
        font-size: 26px;
    }

    .agenda-hm-step-content h2 {
        font-size: 24px;
    }

    .agenda-hm-contraportada-text {
        font-size: 20px;
        padding: 20px;
    }

    /* Hero responsive */
    .title-line-1 {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .title-line-2 {
        font-size: 28px;
    }

    .agenda-hm-subtitle {
        font-size: 14px;
    }

    .agenda-hm-values {
        gap: 15px;
        flex-wrap: wrap;
    }

    .value-icon {
        font-size: 24px;
    }

    .value-text {
        font-size: 11px;
    }

    /* Intro card responsive */
    .agenda-hm-intro-card {
        padding: 20px;
    }

    .intro-description {
        font-size: 14px;
    }

    /* Final navideño responsive */
    .final-emoji {
        font-size: 24px;
    }

    .message-highlight {
        font-size: 18px;
    }

    .message-title {
        font-size: 17px;
    }

    .message-body {
        font-size: 15px;
    }

    .delivery-info {
        padding: 20px 15px;
    }

    .delivery-icon {
        font-size: 32px;
    }

    .delivery-text {
        font-size: 16px;
    }

    .final-greeting {
        font-size: 16px;
    }
}

/* ================================================
   ESTILOS PARA CARGA DE IMAGEN PERSONALIZADA
   ================================================ */

/* Seccion de subida */
.agenda-hm-upload-section {
    text-align: center;
    margin: 30px 0 10px 0;
}

.agenda-hm-upload-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    color: #999;
    font-size: 14px;
}

.agenda-hm-upload-divider::before,
.agenda-hm-upload-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.agenda-hm-upload-divider span {
    padding: 0 15px;
}

.agenda-hm-btn-upload {
    background: linear-gradient(135deg, var(--hm-azul-corp) 0%, var(--hm-azul-oscuro) 100%);
    color: white;
    border: 2px dashed rgba(255,255,255,0.3);
    padding: 18px 35px;
    font-size: 16px;
}

.agenda-hm-btn-upload:hover {
    background: linear-gradient(135deg, var(--hm-verde-lima) 0%, var(--hm-amarillo) 100%);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(194, 201, 0, 0.4);
}

/* Imagen personalizada en el grid */
.hm-custom-image {
    position: relative;
    border: 3px dashed #c2c900 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hm-custom-image.selected {
    border-style: solid !important;
}

.hm-custom-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--hm-verde-lima);
    color: var(--hm-azul-corp);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ================================================
   MODAL DE CARGA DE IMAGEN
   ================================================ */

.hm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
}

.hm-modal-overlay.active {
    display: flex;
    animation: agendaFadeIn 0.3s ease;
}

.hm-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.hm-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 5px;
    transition: color 0.3s;
}

.hm-modal-close:hover {
    color: #333;
}

/* Vistas del modal */
.hm-modal-view {
    display: none;
    padding: 40px 30px;
}

.hm-modal-view.active {
    display: block;
    animation: agendaFadeIn 0.3s ease;
}

.hm-modal-view h3 {
    color: var(--hm-azul-corp);
    font-size: 24px;
    margin: 0 0 10px 0;
    text-align: center;
}

.hm-modal-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

/* Zona de drop */
.hm-drop-zone {
    border: 3px dashed var(--hm-verde-lima);
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hm-drop-zone:hover,
.hm-drop-zone.hm-drag-over {
    background: #e8f5e9;
    border-color: var(--hm-azul-corp);
    transform: scale(1.02);
}

.hm-drop-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.hm-drop-zone p {
    color: #666;
    margin: 5px 0;
}

.hm-drop-or {
    color: #999;
    font-size: 14px;
    margin: 15px 0 !important;
}

.hm-btn-file {
    display: inline-block;
    background: var(--hm-azul-corp);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hm-btn-file:hover {
    background: var(--hm-verde-lima);
}

/* Info de carga */
.hm-upload-info {
    margin-top: 25px;
    padding: 15px;
    background: #f1f3f4;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
}

.hm-upload-info p {
    margin: 5px 0;
}

/* Mensajes de error/warning */
.hm-upload-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.hm-upload-warning {
    background: #fff3e0;
    color: #e65100;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

/* Vista de recorte */
.hm-crop-container {
    width: 100%;
    max-height: 400px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.hm-crop-container img {
    display: block;
    max-width: 100%;
}

.hm-crop-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.hm-crop-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-crop-btn:hover {
    background: var(--hm-azul-corp);
    color: white;
    border-color: var(--hm-azul-corp);
}

.hm-crop-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* Vista de procesamiento */
.hm-processing {
    text-align: center;
    padding: 60px 20px;
}

.hm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--hm-verde-lima);
    border-radius: 50%;
    animation: hmSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes hmSpin {
    to { transform: rotate(360deg); }
}

.hm-processing p {
    color: #666;
    font-size: 16px;
}

/* Responsive del modal */
@media (max-width: 600px) {
    .hm-modal-content {
        border-radius: 15px;
        margin: 10px;
    }

    .hm-modal-view {
        padding: 30px 20px;
    }

    .hm-drop-zone {
        padding: 30px 20px;
    }

    .hm-drop-icon {
        font-size: 40px;
    }

    .hm-crop-container {
        max-height: 300px;
    }

    .hm-crop-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .hm-crop-actions {
        flex-direction: column;
    }

    .hm-crop-actions .agenda-hm-btn {
        width: 100%;
    }
}
