/**
 * ESTILOS DE COMPONENTES REUTILIZABLES
 * 
 * Este archivo contiene los estilos para componentes que se usan en múltiples páginas,
 * incluyendo modales, formularios, botones, tarjetas, alertas y otros elementos comunes.
 */

/* ==========================================
   MODALES
   ========================================== */

/* Contenedor principal del modal - overlay que cubre toda la pantalla */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    max-width: 800px;
}

/* Modal de registro específico */
#registerModal .modal-content {
    max-height: 95vh;
    max-width: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b89a7e #f1f1f1;
}

/* Estilo de scrollbar para webkit */
#registerModal .modal-content::-webkit-scrollbar {
    width: 8px;
}

#registerModal .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#registerModal .modal-content::-webkit-scrollbar-thumb {
    background: #b89a7e;
    border-radius: 4px;
}

#registerModal .modal-content::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

/* Formularios en modales más compactos */
.modal .form-group {
    margin-bottom: 0.75rem;
}

/* Botones específicos para modales */
.modal .btn-primary {
    background-color: #b89a7e !important;
    color: white !important;
    border: 1px solid #b89a7e !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 10px !important;
}

.modal .btn-primary:hover {
    background-color: #a08568 !important;
    border-color: #a08568 !important;
    transform: none !important;
}

/* Enlaces en modales */
.modal p {
    text-align: center;
    color: #666;
    margin-top: 1rem;
}

.modal p a {
    color: #b89a7e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal p a:hover {
    color: #a08568;
    text-decoration: underline;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Campos de entrada en modales */
.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    background-color: white !important;
    color: #2c3e50 !important;
    box-sizing: border-box !important;
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
    outline: none !important;
    border-color: #b89a7e !important;
    box-shadow: 0 0 0 2px rgba(184, 154, 126, 0.2) !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b89a7e;
    box-shadow: 0 0 0 3px rgba(184, 154, 126, 0.1);
}

.form-group input:invalid {
    border-color: #b89a7e;
}

.form-group input:valid {
    border-color: #28a745;
}

/* Estilos para mensajes de validación nativos del navegador */
input::-webkit-validation-bubble-message,
select::-webkit-validation-bubble-message,
textarea::-webkit-validation-bubble-message {
    color: #6b5a48;
    background-color: #f5efe8;
}

/* Para Firefox */
input::-moz-error-message,
select::-moz-error-message,
textarea::-moz-error-message {
    color: #6b5a48;
    background-color: #f5efe8;
}

/* Services Checkboxes */
.services-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.services-checkboxes label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.services-checkboxes input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: #b89a7e;
}

/* Room Details */
.room-details {
    display: grid;
    gap: 2rem;
}

.room-details-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.room-details-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.room-details-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.room-details-price {
    font-size: 2rem;
    font-weight: bold;
    color: #b89a7e;
    margin-bottom: 1rem;
}

.room-details-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.room-details-features li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.room-details-features li:before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 0.5rem;
}

.room-details-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.room-details-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Reservation Summary */
.reservation-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.reservation-summary h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.reservation-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.reservation-summary-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #b89a7e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid transparent;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #6b5a48 !important;
    background-color: #f5efe8 !important;
    border-color: #e6d5c3 !important;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 15px;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f5efe8 !important;
    color: #6b5a48 !important;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Filters */
.filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filters select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    background: white;
    font-size: 1rem;
}

.filters select:focus {
    outline: none;
    border-color: #b89a7e;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #999;
}

.empty-state p {
    color: #999;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Button Variants */
.btn-outline {
    background: transparent;
    color: #b89a7e;
    border: 2px solid #b89a7e;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #b89a7e;
    color: white;
}

/* Form Buttons Container */
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.form-buttons button {
    flex: 0 0 auto;
    width: 180px;
    padding: 12px 20px;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
        border-radius: 15px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    /* Formularios optimizados para móvil */
    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        font-size: 1rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.5rem;
        display: block;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border: 2px solid #e1e8ed;
        border-radius: 10px;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        min-height: 48px; /* Tamaño mínimo para touch */
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #b89a7e;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(184, 154, 126, 0.1);
        outline: none;
    }

    /* Botones optimizados para touch */
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 25px;
        transition: all 0.3s ease;
        cursor: pointer;
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .btn-primary:active,
    .btn-secondary:active,
    .btn-danger:active {
        transform: scale(0.98);
    }

    /* Password input wrapper para móvil */
    .password-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .password-input-wrapper input {
        padding-right: 3rem;
    }

    .toggle-password {
        position: absolute;
        right: 1rem;
        color: #666;
        cursor: pointer;
        font-size: 1.2rem;
        padding: 0.5rem;
        -webkit-tap-highlight-color: transparent;
    }

    .toggle-password:active {
        color: #b89a7e;
    }
    
    .modal-content.large {
        margin: 1% auto;
        width: 98%;
        max-height: 98vh;
        border-radius: 20px;
        padding: 1rem;
    }

    /* Modal de registro específico para móvil */
    #registerModal .modal-content {
        max-height: 98vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #b89a7e #f1f1f1;
    }

    /* Estilo de scrollbar para webkit en móvil */
    #registerModal .modal-content::-webkit-scrollbar {
        width: 6px;
    }

    #registerModal .modal-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    #registerModal .modal-content::-webkit-scrollbar-thumb {
        background: #b89a7e;
        border-radius: 3px;
    }

    #registerModal .modal-content::-webkit-scrollbar-thumb:hover {
        background: #a08568;
    }

    /* Botones de formulario optimizados para móvil */
    .form-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .form-buttons .btn-primary,
    .form-buttons .btn-secondary {
        width: 100%;
        min-height: 50px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 25px;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .form-buttons .btn-primary:active,
    .form-buttons .btn-secondary:active {
        transform: scale(0.98);
    }

    /* Close button optimizado para móvil */
    .close {
        font-size: 32px;
        right: 1.5rem;
        top: 1.5rem;
        padding: 0.5rem;
        -webkit-tap-highlight-color: transparent;
    }

    .close:active {
        color: #b89a7e;
        transform: scale(0.9);
    }

    /* Modal header optimizado */
    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
        color: #2c3e50;
        padding-right: 3rem;
    }

    /* Links en modales optimizados */
    .modal-content p a {
        color: #b89a7e;
        text-decoration: none;
        font-weight: 600;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        transition: all 0.3s ease;
        display: inline-block;
        -webkit-tap-highlight-color: transparent;
    }

    .modal-content p a:active {
        background: rgba(184, 154, 126, 0.1);
        transform: scale(0.98);
    }
    
    /* Modal de registro en móviles */
    #registerModal .modal-content {
        margin: 2% auto;
        width: 95%;
        padding: 1rem;
        max-height: 95vh;
    }
    
    .room-details-header {
        grid-template-columns: 1fr;
    }
    
    .room-details-actions {
        flex-direction: column;
    }
    
    .services-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Suite Description Styles - Exact Image Replica */
.suite-description {
    padding: 3rem 0;
    background: white;
    max-width: 1000px;
    margin: 0 auto;
}

.description-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

.suite-metrics {
    display: flex;
    justify-content: center;
    gap: 8rem;
    margin-bottom: 3rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border: 2px solid #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
}

.metric-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.description-text {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.suite-description .description-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #999;
    text-align: left !important;
    margin: 0;
    font-weight: 400;
}

.room-services {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: left;
    letter-spacing: 0.3px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
    flex-shrink: 0;
}

.service-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #999;
    line-height: 1.4;
    font-weight: 400;
}

/* Responsive Design for Suite Description */
@media (max-width: 768px) {
    .suite-description {
        padding: 2rem 0;
        max-width: 100%;
    }
    
    .description-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .suite-metrics {
        gap: 4rem;
        margin-bottom: 2rem;
        justify-content: center;
    }
    
    .metric-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .metric-text {
        font-size: 0.8rem;
    }
    
    .description-text {
        margin: 0 auto 3rem auto;
        padding: 0 1rem;
    }
    
    .suite-description .description-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: left !important;
    }
    
    .services-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-item {
        gap: 0.8rem;
    }
    
    .service-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .service-text {
        font-size: 0.85rem;
    }
    
    .room-services {
        padding: 0 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .modal,
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Similar Rooms Section */
.similar-rooms {
    padding: 80px 0;
    background-color: #ffffff;
}

.similar-rooms-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 60px;
    letter-spacing: 0.5px;
}

.similar-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.room-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.room-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-info {
    padding: 30px;
}

.room-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.room-details {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.room-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.room-detail i {
    color: #b89a7e;
    font-size: 1rem;
}

.room-btn {
    background-color: #b89a7e;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
}

.room-btn:hover {
    background-color: #a0886e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 154, 126, 0.3);
}

/* Responsive Design for Similar Rooms */
@media (max-width: 768px) {
    .similar-rooms {
        padding: 60px 0;
    }
    
    .similar-rooms-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .similar-rooms-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .room-image {
        height: 240px;
    }
    
    .room-info {
        padding: 25px;
    }
    
    .room-name {
        font-size: 1.3rem;
    }
    
    .room-details {
        gap: 15px;
    }
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #2c2c2c;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #b89a7e;
    padding-left: 25px;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none;
    }
    
    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .dropdown-item:hover {
        background-color: transparent;
        color: #b89a7e;
        padding-left: 0;
    }
}

/* Password Toggle Styles */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: #b89a7e;
}

.toggle-password.fa-eye-slash {
    color: #b89a7e;
}

/* Prevenir iconos duplicados */
.password-input-wrapper .toggle-password:nth-child(n+2) {
    display: none !important;
}

/* Asegurar que solo haya un icono por wrapper */
.password-input-wrapper i.toggle-password:not(:first-child) {
    display: none !important;
}
