﻿:root {
    --primary-color: #0bb6a8;
    --secondary-color: #0a9d91;
    --accent-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(11, 182, 168, 0.3);
}

    .header-section h1 {
        font-weight: 700;
        margin-bottom: 0.5rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }

    .header-section p {
        opacity: 0.9;
        font-size: 1.1rem;
    }

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border-top: 4px solid var(--primary-color);
}

    .form-card h3 {
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(11, 182, 168, 0.25);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(11, 182, 168, 0.3);
    }

.btn-danger {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    border: none;
    transition: all 0.3s ease;
}

    .btn-danger:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    }

.list-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border-top: 4px solid var(--accent-color);
}

.list-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, #218838 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .list-header h3 {
        margin: 0;
        font-weight: 600;
    }

.cost-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
}

.intention-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

    .intention-item:hover {
        background-color: #f8f9fa;
    }

    .intention-item:last-child {
        border-bottom: none;
    }

.intention-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.intention-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.intention-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

    .detail-item i {
        color: var(--primary-color);
        width: 16px;
    }

.observations {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid var(--primary-color);
}

    .observations strong {
        color: var(--primary-color);
    }

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--dark-gray);
}

    .empty-state i {
        font-size: 4rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

.pricing-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

    .pricing-info h5 {
        color: #856404;
        margin-bottom: 1rem;
        font-weight: 600;
    }

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .pricing-list li {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(133, 100, 4, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .pricing-list li:last-child {
            border-bottom: none;
        }

.required-field::after {
    content: " *";
    color: var(--danger-color);
    font-weight: bold;
}

.character-counter {
    font-size: 0.8rem;
    color: var(--dark-gray);
    text-align: right;
    margin-top: 0.25rem;
}

    .character-counter.warning {
        color: var(--warning-color);
    }

    .character-counter.danger {
        color: var(--danger-color);
    }

@media (max-width: 768px) {
    .header-section {
        padding: 1.5rem 0;
    }

    .form-card, .list-card {
        margin: 0 10px 1rem 10px;
        padding: 1.5rem;
    }

    .intention-details {
        grid-template-columns: 1fr;
    }

    .intention-header {
        flex-direction: column;
        gap: 1rem;
    }

    .list-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================================================
   BOTONES FLOTANTES REDONDOS
   ============================================================================ */

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1050;
    transition: all 0.3s ease;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
}

    /* Efecto hover genérico */
    .floating-btn:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        color: white;
    }

    /* Efecto de ondas al hacer clic */
    .floating-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
        transform: translate(-50%, -50%);
        z-index: 0;
    }

    .floating-btn:active::before {
        width: 300px;
        height: 300px;
        top: 50%;
        left: 50%;
    }

    /* Contenido del botón sobre el efecto de ondas */
    .floating-btn i,
    .floating-btn span {
        position: relative;
        z-index: 1;
    }

    /* Botón de éxito (procesar) */
    .floating-btn.btn-success {
        background: linear-gradient(135deg, #28a745, #20c997);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

        .floating-btn.btn-success:hover {
            background: linear-gradient(135deg, #218838, #1ea87a);
            box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
        }

    /* Botón de peligro (limpiar) */
    .floating-btn.btn-outline-danger {
        background: linear-gradient(135deg, #dc3545, #c82333);
        border: 2px solid rgba(255, 255, 255, 0.2);
        color: white;
    }

        .floating-btn.btn-outline-danger:hover {
            background: linear-gradient(135deg, #c82333, #bd2130);
            box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
            color: white;
        }

    /* Tooltips para los botones */
    .floating-btn[data-tooltip] {
        position: relative;
    }

        .floating-btn[data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            right: calc(100% + 15px);
            top: 50%;
            transform: translateY(-50%);
            background: rgba(33, 37, 41, 0.9);
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 0.875rem;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            pointer-events: none;
            z-index: 1000;
        }

        .floating-btn[data-tooltip]:hover::after {
            opacity: 1;
            visibility: visible;
            right: calc(100% + 10px);
        }

        /* Pequeña flecha del tooltip */
        .floating-btn[data-tooltip]::before {
            content: '';
            position: absolute;
            right: calc(100% + 5px);
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 5px 0 5px 8px;
            border-color: transparent transparent transparent rgba(33, 37, 41, 0.9);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            pointer-events: none;
            z-index: 1000;
        }

        .floating-btn[data-tooltip]:hover::before {
            opacity: 1;
            visibility: visible;
            right: calc(100% + 2px);
        }

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-buttons {
    animation: fadeInUp 0.5s ease-out;
}

/* Animación individual de los botones */
.floating-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.floating-btn:nth-child(2) {
    animation-delay: 0.2s;
}

/* Estados de loading */
.floating-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .floating-btn.loading i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }

        /* Ocultar tooltips en móviles */
        .floating-btn[data-tooltip]::after,
        .floating-btn[data-tooltip]::before {
            display: none;
        }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* Variante horizontal para pantallas muy pequeñas */
@media (max-width: 360px) {
    .floating-buttons {
        flex-direction: row;
        bottom: 15px;
        right: 50%;
        transform: translateX(50%);
        gap: 15px;
    }
}

/* Estados de focus para accesibilidad */
.floating-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Efecto pulse para notificaciones */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.floating-btn.pulse {
    animation: pulse 2s infinite;
}

/* Estado deshabilitado */
.floating-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

    .floating-btn:disabled:hover {
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

/* Tema oscuro opcional */
@media (prefers-color-scheme: dark) {
    .floating-btn[data-tooltip]::after {
        background: rgba(248, 249, 250, 0.9);
        color: #212529;
    }

    .floating-btn[data-tooltip]::before {
        border-color: transparent transparent transparent rgba(248, 249, 250, 0.9);
    }
}