/* Legacy styles for backward compatibility */
.footer-clean {
  padding: 50px 0;
  background-color: transparent;
  color: #2c3e50;
}

.footer-clean h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 16px;
}

.footer-clean ul {
  padding: 0;
  list-style: none;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 0;
}

.footer-clean ul a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.footer-clean ul a:hover {
  opacity: 1;
}

.footer-clean .item.social {
  text-align: right;
}

@media (max-width:767px) {
  .footer-clean .item {
    text-align: center;
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .footer-clean .item.social {
    text-align: center;
  }
}

.footer-clean .item.social > a {
  font-size: 24px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #ccc;
  margin-left: 10px;
  margin-top: 22px;
  color: inherit;
  opacity: 0.75;
}

.footer-clean .item.social > a:hover {
  opacity: 0.9;
}

@media (max-width:991px) {
  .footer-clean .item.social > a {
    margin-top: 40px;
  }
}

@media (max-width:767px) {
  .footer-clean .item.social > a {
    margin-top: 10px;
  }
}

.footer-clean .copyright {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 13px;
  opacity: 0.6;
}

/* Enhanced Footer Styles - Minimal Design */
.enhanced-footer {
    background: transparent;
    border-top: 1px solid rgba(44, 62, 80, 0.2);
    padding: 50px 0 0;
    margin-top: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Company Info Section */
.company-info {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-logo a:hover {
    opacity: 0.8;
}

.company-description {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #2c3e50;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #2c3e50;
    font-size: 16px;
}

.social-link:hover {
    color: white;
    transform: translateY(-2px);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: #dd2a7b;
    border-color: #dd2a7b;
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 4px 0;
    font-weight: 500;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateX(4px);
}

.footer-links i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* Compact footer links without icons */
.footer-links-compact a {
    gap: 0;
    font-size: 13px;
    font-weight: 400;
}

.footer-links-compact li {
    margin-bottom: 8px;
}

/* Contact Info Compact */
.contact-info-compact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(44, 62, 80, 0.2);
}

.contact-info-compact .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 400;
}

.contact-info-compact .contact-item i {
    color: #667eea;
    width: 14px;
    text-align: center;
    font-size: 12px;
}

.contact-info-compact .contact-item a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-info-compact .contact-item a:hover {
    color: #667eea;
}

/* Footer Bottom */
.footer-bottom {
    background: transparent;
    padding: 20px 0;
    margin: 0 -12px;
    border-top: 1px solid rgba(44, 62, 80, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom .copyright {
    color: #2c3e50;
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}

.footer-badges {
    display: flex;
    gap: 12px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #2c3e50;
    border-radius: 16px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-badge:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.footer-badge i {
    font-size: 12px;
}

/* Footer Title */
.footer-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Focus states for accessibility */
.footer-links a:focus,
.social-link:focus,
.footer-badge:focus,
.contact-info-compact a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .company-info {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .enhanced-footer {
        padding: 30px 0 0;
        margin-top: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 0;
    }
    
    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
        justify-content: center;
    }
    
    .footer-links {
        margin-bottom: 0;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-links a {
        justify-content: flex-start;
        font-size: 13px;
        padding: 6px 0;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .footer-links-compact li {
        margin-bottom: 4px;
    }
    
    .footer-links-compact a {
        font-size: 12px;
        justify-content: flex-start;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .contact-info-compact {
        text-align: left;
        max-width: 250px;
        margin: 15px auto 0;
        padding-top: 15px;
    }
    
    .contact-info-compact .contact-item {
        margin-bottom: 6px;
        font-size: 12px;
        justify-content: center;
        text-align: left;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-bottom .copyright {
        font-size: 11px;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .footer-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .company-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .enhanced-footer {
        border-top-color: rgba(255, 255, 255, 0.2);
    }
    
    .footer-section h4,
    .footer-title {
        color: #f8f9fa;
    }
    
    .company-description,
    .footer-links a,
    .contact-info-compact .contact-item,
    .contact-info-compact .contact-item a,
    .footer-bottom .copyright {
        color: #e9ecef;
    }
    
    .footer-links a:hover,
    .contact-info-compact .contact-item a:hover {
        color: #667eea;
    }
    
    .social-link {
        color: #e9ecef;
        border-color: #e9ecef;
    }
    
    .footer-bottom {
        border-top-color: rgba(255, 255, 255, 0.2);
    }
    
    .footer-badge {
        border-color: #e9ecef;
        color: #e9ecef;
    }
    
    .footer-badge:hover {
        border-color: #667eea;
        color: #667eea;
    }
    
    .contact-info-compact {
        border-top-color: rgba(255, 255, 255, 0.2);
    }
}

/* Override styles when footer is transparent background */
.footer-clean[style*="background: rgba(255,255,255,0)"] {
    background: transparent !important;
    padding-top: 20px !important;
}

.footer-clean[style*="background: rgba(255,255,255,0)"] .enhanced-footer {
    margin-top: 0;
}

/* Small screens optimization */
@media (max-width: 400px) {
    .enhanced-footer {
        padding: 20px 0 0;
        margin-top: 20px;
    }
    
    .footer-content {
        gap: 15px;
    }
    
    .footer-section h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .company-description {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .footer-links li {
        margin-bottom: 4px;
    }
    
    .footer-links a {
        font-size: 12px;
        max-width: 180px;
    }
    
    .footer-links-compact a {
        font-size: 11px;
        max-width: 180px;
    }
    
    .contact-info-compact {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .contact-info-compact .contact-item {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .footer-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-bottom .copyright {
        font-size: 10px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .enhanced-footer {
        padding: 20px 0 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .company-info {
        grid-column: span 1;
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

/* Print styles */
@media print {
    .enhanced-footer {
        display: none;
    }
}

/* ==================== GDPR Consent Modal ==================== */
.gdpr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.gdpr-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: gdprSlideUp 0.3s ease-out;
}

/* Compact variant — single accept flow, no per-category toggles. */
.gdpr-modal.gdpr-modal-compact {
    max-width: 420px;
    padding: 22px 22px 18px;
    text-align: center;
}
.gdpr-modal-compact .gdpr-branding {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 6px;
}
.gdpr-modal-compact h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.gdpr-modal-compact .gdpr-text {
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}
.gdpr-modal-compact .gdpr-program-note {
    background: #fff8ed;
    border-left: 3px solid #f0b070;
    padding: 8px 10px;
    border-radius: 4px;
    color: #6b3e00;
    margin-top: 6px;
}
.gdpr-modal-compact .gdpr-actions {
    margin-top: 14px;
}
.gdpr-refuse-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
    text-decoration: underline;
}
.gdpr-refuse-link:hover {
    color: #666;
}

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

.gdpr-branding {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.gdpr-logo {
    max-width: 60px;
    height: auto;
    margin-bottom: 6px;
}

.gdpr-branding-text {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
}

.gdpr-modal h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.gdpr-modal .gdpr-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.gdpr-modal .gdpr-links {
    font-size: 13px;
    margin-bottom: 20px;
}

.gdpr-modal .gdpr-links a {
    color: #667eea;
    text-decoration: none;
}

.gdpr-modal .gdpr-links a:hover {
    text-decoration: underline;
}

.gdpr-categories {
    margin-bottom: 16px;
}

.gdpr-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gdpr-category:last-child {
    border-bottom: none;
}

.gdpr-category-info {
    flex: 1;
    padding-right: 16px;
}

.gdpr-category-name {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.gdpr-category-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

/* Toggle switch */
.gdpr-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.gdpr-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gdpr-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.gdpr-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.gdpr-toggle input:checked + .gdpr-toggle-slider {
    background-color: #667eea;
}

.gdpr-toggle input:checked + .gdpr-toggle-slider:before {
    transform: translateX(22px);
}

.gdpr-toggle input:disabled + .gdpr-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Action buttons */
.gdpr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gdpr-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.gdpr-btn-accept {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.gdpr-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.gdpr-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.gdpr-warning i {
    margin-right: 6px;
}

.gdpr-btn-save {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.gdpr-btn-save:hover {
    background: #667eea;
    color: #fff;
}

/* GDPR Responsive */
@media (max-width: 600px) {
    .gdpr-modal {
        padding: 12px;
        border-radius: 12px;
        width: 95%;
    }

    .gdpr-modal.gdpr-modal-compact {
        padding: 16px 14px 12px;
        max-width: 360px;
    }
    .gdpr-modal-compact h3 { font-size: 16px; }
    .gdpr-modal-compact .gdpr-text { font-size: 12px; line-height: 1.4; }
    .gdpr-modal-compact .gdpr-logo { max-width: 44px; margin-bottom: 0; }
    .gdpr-modal-compact .gdpr-program-note { font-size: 11.5px; padding: 6px 8px; }
    .gdpr-modal-compact .gdpr-actions { margin-top: 10px; }
    .gdpr-refuse-link { font-size: 11px; margin-top: 8px; }

    .gdpr-branding {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }

    .gdpr-logo {
        max-width: 50px;
        margin-bottom: 3px;
    }

    .gdpr-branding-text {
        font-size: 11px;
    }

    .gdpr-modal h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .gdpr-modal .gdpr-text {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .gdpr-modal .gdpr-links {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .gdpr-categories {
        margin-bottom: 8px;
    }

    .gdpr-category {
        padding: 5px 0;
    }

    .gdpr-category-name {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .gdpr-category-desc {
        font-size: 11px;
        line-height: 1.2;
    }

    .gdpr-warning {
        padding: 8px 10px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .gdpr-actions {
        flex-direction: column;
        gap: 6px;
    }

    .gdpr-btn {
        min-width: unset;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Dark mode GDPR */
@media (prefers-color-scheme: dark) {
    .gdpr-modal {
        background: #1e1e2e;
    }

    .gdpr-modal h3 {
        color: #f8f9fa;
    }

    .gdpr-branding {
        border-bottom-color: #333;
    }

    .gdpr-branding-text {
        color: #adb5bd;
    }

    .gdpr-modal .gdpr-text {
        color: #ccc;
    }

    .gdpr-category-name {
        color: #f8f9fa;
    }

    .gdpr-category-desc {
        color: #999;
    }

    .gdpr-category {
        border-bottom-color: #333;
    }

    .gdpr-btn-reject {
        background: #333;
        color: #ccc;
    }

    .gdpr-btn-reject:hover {
        background: #444;
    }
}