/* Variables CSS para personalización de colores */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #ffffff;
    --text-color: #212529;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Círculo de perfil */
.profile-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-circle:hover {
    transform: scale(1.05);
}

.profile-circle .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-circle .profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.profile-circle .profile-placeholder i {
    font-size: 3rem;
}

/* Información del perfil */
.profile-info h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Enlaces sociales */
.social-links .btn {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Sección de presentación */
.presentation-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.presentation-section h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.presentation-section .lead {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Tarjetas de notas */
.note-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

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

.note-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.note-card .card-body {
    padding: 1.5rem;
}

.note-card .card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.note-card .card-text {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Botones de compartir */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.email {
    background: #ea4335;
    color: white;
}

.share-btn.copy {
    background: #6c757d;
    color: white;
}

/* Modal de compartir mejorado */
.share-modal .modal-content {
    border-radius: 15px;
    border: none;
}

.share-modal .modal-header {
    border-bottom: 2px solid #f8f9fa;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

.share-modal .modal-body {
    padding: 2rem;
}

.share-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    background: white;
}

.share-option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.share-option-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.share-option-btn span {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.share-url-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.share-url-section h6 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.url-input-group {
    display: flex;
    gap: 0.5rem;
}

.url-input-group .form-control {
    flex: 1;
}

.url-input-group .btn {
    white-space: nowrap;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color)) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color), #000000) !important;
}

/* Formularios */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-circle {
        width: 100px;
        height: 100px;
    }
    
    .presentation-section {
        padding: 1.5rem;
    }
    
    .note-card .card-img-top {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .profile-circle {
        width: 80px;
        height: 80px;
    }
    
    .presentation-section {
        padding: 1rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll infinito loader */
#loader {
    padding: 2rem 0;
}

/* Modo oscuro (si se implementa) */
body.dark-mode {
    --body-bg: #1a1a1a;
    --text-color: #ffffff;
    background-color: var(--body-bg);
    color: var(--text-color);
}

.dark-mode .presentation-section,
.dark-mode .note-card {
    background: #2d2d2d;
    color: white;
}

.dark-mode .form-control {
    background-color: #3d3d3d;
    border-color: #555;
    color: white;
}

.dark-mode .form-control:focus {
    background-color: #3d3d3d;
    color: white;
}