:root {
    --primary-color: #e20077; /* Rosa corporativo */
    --primary-dark: #b30056;
    --secondary-color: #3a3a3a; /* Gris oscuro para textos */
    --accent-color: #7c3aed; /* Lila moderno para IA */
    --accent-light: #ede9fe; /* Lila claro para fondos */
    --info-color: #00b2e3; /* Azul para detalles modernos */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --background-color: #fff;
    --card-bg: #faf9fb;
    --gray-color: #6B7280;
    --gray-light: #F3F4F6;
    --font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    --border-radius: 18px;
    --box-shadow: 0 4px 24px 0 rgba(226, 0, 119, 0.07);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --main-gradient: linear-gradient(135deg, #e20077 0%, #7c3aed 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--secondary-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Sin imagen de fondo para evitar errores CSP/data URL */
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

/* Landing Page */
.landing-page {
    background: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Minimalista */
.minimal-header {
    background: #fff;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border-bottom: 2px solid #f3f3f3;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 110px !important;
    height: 110px !important;
    background: #fff !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 10px 0 10px 24px !important;
    overflow: hidden;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.logo img {
    width: 100px !important;
    height: auto !important;
    display: block;
}

.logo span {
    display: none;
}

.login-btn {
    color: #fff;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    box-shadow: var(--box-shadow);
    border: none;
    transition: var(--transition);
}

.login-btn:hover, .btn-acceder:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 8px 24px rgba(226, 0, 119, 0.13);
}

.login-btn:active {
    transform: scale(0.95);
}

.login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 0, 119, 0.3);
}

/* Hero Section */
.hero-section {
    background: var(--main-gradient);
    color: #fff;
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-acceder {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border: none;
    transition: var(--transition);
}

.btn-acceder i {
    margin-right: 8px;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--background-color);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #f3f3f3;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: 0 12px 32px -5px rgba(226,0,119,0.10);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray-color);
    font-size: 1rem;
}

/* Workflow Section */
.workflow-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
    padding: 3rem 0;
}

.workflow-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    justify-content: center;
    align-items: center;
    display: flex;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(226, 0, 119, 0),
        rgba(226, 0, 119, 0.2) 20%,
        rgba(226, 0, 119, 0.2) 80%,
        rgba(226, 0, 119, 0)
    );
    z-index: 0;
}

.workflow-step {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #f3f3f3;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    animation: slideInRight 0.6s ease-out both;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.workflow-step:hover {
    box-shadow: 0 12px 32px -5px rgba(226,0,119,0.10);
    border-color: var(--primary-color);
}

.step-number {
    background: var(--accent-light);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem auto;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.step-content p {
    color: var(--gray-color);
    line-height: 1.6;
    text-align: center;
}

/* Footer Minimalista */
.minimal-footer {
    background: #fff;
    color: var(--primary-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 2px solid #f3f3f3;
}

.minimal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.3) 80%,
        rgba(255, 255, 255, 0)
    );
}

.minimal-footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Mantener estilos existentes para otras páginas */
/* Header / Navbar normal */
header:not(.minimal-header) {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 6px;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Hero Banner (estilo anterior) */
.hero-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    opacity: 0.9;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Botones normales */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn i {
    margin-right: 6px;
}

/* Estilos heredados para la página del tasador */
/* Formularios */
.form-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
}

.form-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 178, 227, 0.2);
}

/* Tasador Container */
.tasador-container {
    padding: 2rem 0;
    background: #fff !important;
}

.tasador-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tasador-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.tasador-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Sidebar */
.sidebar {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    background: #fff !important;
}

.user-profile {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.user-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.user-info p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.history-container {
    padding: 1.5rem;
}

.history-container h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.history-container h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.history-list {
    max-height: 500px;
    overflow-y: auto;
}

.history-item {
    position: relative;
    padding: 1rem;
    padding-right: 48px; /* Espacio para el botón de borrar */
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
    transition: background-color 0.2s;
}

.history-item:hover {
    background-color: var(--gray-light);
}

.history-item.active {
    background-color: rgba(230, 0, 126, 0.1);
    border-left: 3px solid var(--primary-color);
}

.history-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.history-item-preview {
    color: var(--gray-color);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-date {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 5px;
}

/* --- Botón de borrar mejorado --- */
.delete-conversation-btn {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 32px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #c00;
    cursor: pointer;
    font-size: 1.1em;
    z-index: 10;
    opacity: 0.8;
    transition: color 0.2s, opacity 0.2s;
    padding: 2px;
    border-radius: 50%;
    box-shadow: none;
}
.delete-conversation-btn:hover {
    opacity: 1;
    color: #fff;
    background: #c00;
}
.delete-conversation-btn i {
    font-size: 1.1em;
    pointer-events: none;
}

/* Main Tasador */
.main-tasador {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: #fff !important;
}

.tasador-panel {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    height: 600px;
    background: #fff !important;
}

.panel-header {
    padding: 1.2rem;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.panel-header h2 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.controls .btn-icon {
    background-color: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.controls .btn-icon:hover {
    background-color: var(--gray-light);
}

.panel-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.panel-footer {
    border-top: 1px solid var(--gray-light);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-footer textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    resize: none;
    height: 50px;
    transition: border-color 0.3s;
    font-size: 16px;
}

.panel-footer textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.attachment-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachment-btn {
    background: #f0f0f0;
    color: #555;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.attachment-btn:hover {
    background: var(--primary-color);
    color: white;
}

.mobile-only {
    display: none;
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

.send-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.message-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-image:hover {
    transform: scale(1.02);
}

.image-preview-container {
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 5px;
}

.image-preview {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Chat Messages */
.message {
    margin-bottom: 1.5rem;
    max-width: 85%;
}

.message-user {
    margin-left: auto;
    background-color: var(--primary-color);
    color: white;
    border-radius: 18px 18px 0 18px;
}

.message-model {
    margin-right: auto;
    background-color: var(--gray-light);
    border-radius: 18px 18px 18px 0;
}

.message-content {
    padding: 1rem;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.message-header i {
    color: var(--primary-color);
    margin-right: 6px;
}

.message-user .message-header {
    color: white;
}

.message-user .message-header i {
    color: white;
}

.message-body p {
    margin-bottom: 0.8rem;
}

.message-body ul {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray-color);
    text-align: right;
    padding: 0 0.5rem 0.5rem;
}

.message-user .message-time {
    color: rgba(255, 255, 255, 0.8);
}

/* Result Panel */
.result-panel {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.tasacion-result {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.result-card {
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.result-card.buy {
    border-left: 4px solid var(--success-color);
}

.result-card.sell {
    border-left: 4px solid var(--accent-color);
}

.result-card.profit {
    border-left: 4px solid var(--primary-color);
}

.result-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-card.buy .result-value {
    color: var(--success-color);
}

.result-card.sell .result-value {
    color: var(--accent-color);
}

.result-card.profit .result-value {
    color: var(--primary-color);
}

.result-desc {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.tasacion-details {
    margin-top: 1.5rem;
}

.tasacion-details h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.tasacion-details h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}

.detail-value {
    color: var(--gray-color);
}

/* Footer Completo (estilo anterior) */
footer:not(.minimal-footer) {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    max-height: 36px;
    margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Alert Messages */
#alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.alert-success {
    background-color: var(--success-color);
}

.alert-warning {
    background-color: var(--warning-color);
}

.alert-danger {
    background-color: var(--error-color);
}

/* Loading Message */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: var(--gray-color);
}

.loading-dots {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.loading-dots span {
    background-color: var(--gray-color);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    animation: bounce 1.5s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* No Results */
.no-results {
    text-align: center;
    color: var(--gray-color);
    padding: 2rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .workflow-steps::before {
        display: none;
    }
    
    .workflow-step {
        margin-bottom: 2rem;
    }
    
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-cards {
        gap: 1.5rem;
    }
    .tasador-grid {
        grid-template-columns: 1fr !important;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 80vw;
        max-width: 320px;
        z-index: 2001;
        background: #fff;
        box-shadow: 2px 0 16px rgba(0,0,0,0.15);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        display: block;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay {
        display: none !important;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.25);
        z-index: 2000;
        transition: opacity 0.3s;
    }
    .sidebar.open ~ .sidebar-overlay {
        display: block !important;
    }
    .open-history-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--primary-color);
        color: #fff;
        border: none;
        border-radius: 24px;
        padding: 0.7rem 1.3rem;
        font-weight: 600;
        font-size: 1rem;
        margin: 1rem 0 0.5rem 0;
        box-shadow: var(--box-shadow);
        position: relative;
        z-index: 2100;
        cursor: pointer;
    }
    .main-tasador {
        z-index: 1;
    }
    .close-history-btn {
        display: none !important;
    }
    .close-history-btn-inside {
        display: none;
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        z-index: 2102;
        background: var(--primary-color);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        align-items: center;
        justify-content: center;
        box-shadow: var(--box-shadow);
        cursor: pointer;
    }
    .sidebar.open #close-history-inside {
        display: flex !important;
    }
    .mobile-only {
        display: flex;
    }
}

@media (min-width: 769px) {
    .open-history-btn, .sidebar-overlay {
        display: none !important;
    }
    .sidebar {
        transform: none !important;
        position: static !important;
        height: auto !important;
        width: 100% !important;
        max-width: none !important;
        box-shadow: var(--box-shadow);
    }
}

@media (max-width: 480px) {
    .workflow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin: 0 0 1.5rem 0;
    }
    
    .hero-section {
        padding: 5rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    background-color: var(--background-color);
}

.login-form {
    max-width: 400px;
    width: 100%;
    padding: 2.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.login-form .form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.input-with-icon input {
    padding-left: 40px;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--error-color);
}

.ml-3 {
    margin-left: 1rem;
}

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

/* Animaciones Globales */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

/* Efectos de hover mejorados */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, 
        rgba(226, 0, 119, 0.1),
        rgba(142, 68, 173, 0.1)
    );
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Efecto de brillo en botones */
.btn-acceder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%);
    transition: 0.6s;
}

.btn-acceder:hover::before {
    transform: translateX(100%);
}

/* Mejoras en la interactividad */
.login-btn, .btn-acceder {
    position: relative;
    overflow: hidden;
}

.login-btn:active, .btn-acceder:active {
    transform: scale(0.95);
}

/* Efecto de focus mejorado */
.login-btn:focus, .btn-acceder:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 0, 119, 0.3);
}

/* Efecto de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras en la tipografía */
h1, h2, h3 {
    font-family: var(--font-family);
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Efecto de glassmorphism mejorado */
.minimal-header, .feature-card, .workflow-step {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Efecto de hover en iconos */
.feature-icon, .step-number {
    position: relative;
    overflow: hidden;
}

.feature-icon::after, .step-number::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    transform: scale(0);
    transition: transform 0.6s;
}

.feature-card:hover .feature-icon::after,
.workflow-step:hover .step-number::after {
    transform: scale(1);
}

p, li, span, a, button {
    font-family: var(--font-family);
    font-size: 1.05rem;
    letter-spacing: 0.1px;
}

/* --- Modal de confirmación moderno --- */
#modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(60,0,40,0.18);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s;
}
#modal-confirm {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(226,0,119,0.13);
    padding: 2.2rem 2rem 1.5rem 2rem;
    min-width: 320px;
    max-width: 90vw;
    text-align: center;
    z-index: 3100;
    animation: scaleIn 0.25s;
}
#modal-confirm .modal-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
#modal-confirm .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--secondary-color);
}
#modal-confirm .modal-message {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
#modal-confirm .modal-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}
#modal-confirm .btn-modal {
    padding: 0.7rem 1.6rem;
    border-radius: 24px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#modal-confirm .btn-cancel {
    background: var(--gray-light);
    color: var(--secondary-color);
}
#modal-confirm .btn-cancel:hover {
    background: #e5e5e5;
}
#modal-confirm .btn-delete {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(226,0,119,0.10);
}
#modal-confirm .btn-delete:hover {
    background: var(--primary-dark);
}