/* ====================================
   DISUMIN COMPONENTS STYLES - ORGANIZED BY COMPONENTS
   ====================================*/

/* CSS Variables - DISUMIN Brand Colors */
:root {
    --disumin-primary: #1e3a8a;
    --disumin-secondary: #3b82f6;
    --disumin-accent: #059669;
    --disumin-dark: #0f172a;
    --disumin-light: #f8fafc;
    --disumin-text: #334155;
    --disumin-border: #e2e8f0;
}

/* ====================================
   SECTION 1: FLOATING CONTACT WIDGET
   ====================================*/
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-bubble {
    background: linear-gradient(135deg, var(--disumin-primary), var(--disumin-secondary));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.contact-bubble:hover {
    background: linear-gradient(135deg, var(--disumin-secondary), var(--disumin-accent));
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    color: white;
    text-decoration: none;
}

.contact-bubble i {
    font-size: 24px;
}

.whatsapp-bubble {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
}

.whatsapp-bubble:hover {
    background: linear-gradient(135deg, #128c7e, #075e54) !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.contact-info {
    position: absolute;
    right: 70px;
    top: 0;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    min-width: 200px;
    border: 1px solid var(--disumin-border);
}

.contact-bubble:hover .contact-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.contact-info::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.contact-info h6 {
    color: var(--disumin-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-info p {
    color: var(--disumin-text);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* ====================================
   SECTION 2: NEWSLETTER COMPONENT
   ====================================*/
.newsletter-section {
    background: linear-gradient(135deg, var(--disumin-dark), var(--disumin-primary));
    color: white;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,10 Q25,0 50,10 T100,10 V20 H0 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 200px 40px;
    opacity: 0.5;
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.newsletter-subtitle {
    font-size: 18px;
    color: #cbd5e1;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 300;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: var(--disumin-text);
}

.newsletter-input::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--disumin-accent), #10b981);
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: scale(1.05);
}

.newsletter-btn:active {
    transform: scale(0.98);
}

.newsletter-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-message.success {
    background: rgba(5, 150, 105, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ====================================
   SECTION 3: BUTTONS AND FORMS
   ====================================*/
.disumin-btn {
    background: linear-gradient(135deg, var(--disumin-primary), var(--disumin-secondary));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.disumin-btn:hover {
    background: linear-gradient(135deg, var(--disumin-secondary), var(--disumin-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    color: white;
    text-decoration: none;
}

.disumin-btn-accent {
    background: linear-gradient(135deg, var(--disumin-accent), #10b981);
}

.disumin-btn-accent:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.disumin-btn-outline {
    background: transparent;
    color: var(--disumin-primary);
    border: 2px solid var(--disumin-primary);
}

.disumin-btn-outline:hover {
    background: var(--disumin-primary);
    color: white;
}

/* Form Controls */
.disumin-form-control {
    border: 2px solid var(--disumin-border);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.disumin-form-control:focus {
    border-color: var(--disumin-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

/* ====================================
   SECTION 4: CARDS AND CONTAINERS
   ====================================*/
.disumin-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--disumin-border);
    overflow: hidden;
}

.disumin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.disumin-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--disumin-border);
    background: var(--disumin-light);
}

.disumin-card-body {
    padding: 20px;
}

.disumin-card-title {
    color: var(--disumin-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ====================================
   SECTION 5: BADGES AND LABELS
   ====================================*/
.disumin-badge {
    background: linear-gradient(135deg, var(--disumin-primary), var(--disumin-secondary));
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.disumin-badge-accent {
    background: linear-gradient(135deg, var(--disumin-accent), #10b981);
}

.disumin-badge-outline {
    background: transparent;
    color: var(--disumin-primary);
    border: 1px solid var(--disumin-primary);
}

/* ====================================
   SECTION 6: ANIMATIONS
   ====================================*/
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger animations */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

/* ====================================
   SECTION 7: FOOTER SOCIAL LINKS
   ====================================*/
.social-section {
    background: var(--disumin-primary);
    padding: 30px 0;
    border-bottom: 3px solid var(--disumin-accent);
}

.social-section h4 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.social-networks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    color: white !important;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
}

.social-link i {
    font-size: 18px;
    line-height: 1;
    color: white !important;
    font-family: 'Font Awesome 5 Brands', 'Font Awesome 5 Free', 'FontAwesome', sans-serif;
    font-weight: 900;
}

/* Fallback para iconos */
.social-link.facebook i:before { content: "f09a"; }
.social-link.instagram i:before { content: "f16d"; }
.social-link.twitter i:before { content: "f099"; }
.social-link.linkedin i:before { content: "f08c"; }
.social-link.youtube i:before { content: "f167"; }
.social-link.whatsapp i:before { content: "f232"; }

.social-link span {
    display: none;
}

/* Tooltip effect */
.social-link::after {
    content: attr(title);
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.social-link::before {
    content: '';
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.social-link:hover::after,
.social-link:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Facebook */
.social-link.facebook {
    background: #1877f2;
    border-color: #42a5f5;
}

.social-link.facebook:hover {
    background: #166fe5;
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

/* Instagram */
.social-link.instagram {
    background: linear-gradient(45deg, #e4405f, #f77737);
    border-color: #fccc63;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #d6336c, #f56040);
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(228, 64, 95, 0.4);
}

/* Twitter */
.social-link.twitter {
    background: #1da1f2;
    border-color: #42a5f5;
}

.social-link.twitter:hover {
    background: #0d8bd9;
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

/* LinkedIn */
.social-link.linkedin {
    background: #0077b5;
    border-color: #42a5f5;
}

.social-link.linkedin:hover {
    background: #005885;
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

/* YouTube */
.social-link.youtube {
    background: #ff0000;
    border-color: #ff4444;
}

.social-link.youtube:hover {
    background: #cc0000;
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* WhatsApp */
.social-link.whatsapp {
    background: #25d366;
    border-color: #4caf50;
}

.social-link.whatsapp:hover {
    background: #128c7e;
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ====================================
   SECTION 8: RESPONSIVE UTILITIES
   ====================================*/
@media (max-width: 768px) {
    .floating-contact {
        right: 15px;
        bottom: 15px;
    }
    
    .contact-bubble {
        width: 50px;
        height: 50px;
    }
    
    .contact-bubble i {
        font-size: 20px;
    }
    
    .contact-info {
        right: 60px;
        min-width: 180px;
    }
    
    .newsletter-title {
        font-size: 24px;
    }
    
    .newsletter-subtitle {
        font-size: 16px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .newsletter-btn {
        border-radius: 0 0 15px 15px;
    }
    
    .disumin-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Social Networks Responsive */
    .social-section {
        padding: 25px 0;
    }
    
    .social-section h4 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .social-networks {
        gap: 10px;
        justify-content: center;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link i {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .floating-contact {
        right: 10px;
        bottom: 10px;
    }
    
    .contact-bubble {
        width: 45px;
        height: 45px;
    }
    
    .contact-bubble i {
        font-size: 18px;
    }
    
    .newsletter-section {
        padding: 30px 0;
    }
    
    .newsletter-title {
        font-size: 20px;
    }
    
    .newsletter-subtitle {
        font-size: 14px;
    }
    
    /* Social Networks Mobile */
    .social-section {
        padding: 20px 0;
    }
    
    .social-section h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .social-networks {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
    
    .social-link i {
        font-size: 15px;
    }
}