:root {
    --primary-color: #02cbc4;
    --primary-dark: #019b94;
    --primary-light: #6bffef;
    --footer-bg-start: #0b1a2a;
    --footer-bg-end: #1a2f3f;
    --text-footer: #e0e7ff;
    --text-footer-muted: #a0b3d9;
}

/* Footer principal */
.footer-innovative {
    position: relative;
    background: linear-gradient(145deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
    color: var(--text-footer);
    padding: 0 0 30px 0;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Elementos decorativos de fondo */
.footer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(2, 203, 196, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(2, 203, 196, 0.03) 0%, transparent 30%);
    pointer-events: none;
}

.footer-gradient-sphere {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(2, 203, 196, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: sphereFloat 20s ease-in-out infinite;
}

@keyframes sphereFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

/* Ola superior */
.footer-wave-top {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-bottom: 30px;
}

.footer-wave-top svg {
    display: block;
    width: 100%;
    height: 80px;
    transform: rotate(180deg);
}

/* NEWSLETTER FLOTANTE */
.newsletter-floating-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(2, 203, 196, 0.3);
    border-radius: 30px;
    padding: 35px 40px;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
    transform: translateY(-50px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-floating-card:hover {
    transform: translateY(-55px);
    box-shadow: 0 40px 80px rgba(2, 203, 196, 0.2);
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(2, 203, 196, 0.3);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 30px rgba(2, 203, 196, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 20px 40px rgba(2, 203, 196, 0.5); }
}

.newsletter-icon i {
    font-size: 30px;
    color: white;
}

.newsletter-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.newsletter-text p {
    color: var(--text-footer-muted);
    font-size: 1rem;
}

.newsletter-innovative {
    flex: 1;
    max-width: 500px;
}

.input-group-modern {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.input-group-modern input {
    flex: 1;
    padding: 16px 22px;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(2, 203, 196, 0.3);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group-modern input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0,0,0,0.5);
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(2, 203, 196, 0.2);
}

.input-group-modern input::placeholder {
    color: rgba(255,255,255,0.4);
}

.btn-subscribe {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-subscribe::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-subscribe:hover::before {
    width: 300px;
    height: 300px;
}

.btn-subscribe:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(2, 203, 196, 0.4);
}

.btn-subscribe i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-subscribe:hover i {
    transform: translateX(5px);
}

/* Checkbox personalizado */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-footer-muted);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(2, 203, 196, 0.5);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary-color);
    background: rgba(2, 203, 196, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Grid principal */
.footer-main-content {
    position: relative;
    z-index: 5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.2fr 1.8fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Columnas */
.footer-col {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LOGO CON EFECTO */
.logo-container {
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo-innovative {
    max-width: 200px;
    height: auto;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
    z-index: 3;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

.footer-logo-innovative:hover {
    transform: scale(1.05);
}

.brand-description {
    color: var(--text-footer-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* Certificaciones */
.certification-showcase {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(2, 203, 196, 0.05);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(2, 203, 196, 0.1);
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateX(10px);
}

.cert-item i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(2, 203, 196, 0.1);
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cert-item:hover i {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.cert-info {
    display: flex;
    flex-direction: column;
}

.cert-info strong {
    color: white;
    font-size: 1rem;
}

.cert-info span {
    color: var(--text-footer-muted);
    font-size: 0.85rem;
}

/* Títulos del footer */
.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-col:hover .footer-title::after {
    width: 80px;
}

.footer-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-col:hover .footer-title i {
    transform: rotate(180deg);
    opacity: 1;
}

/* Menú del footer */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 14px;
}

.footer-menu a {
    color: var(--text-footer-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-menu a i {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: white;
    transform: translateX(8px);
}

.footer-menu a:hover i {
    opacity: 1;
    transform: translateX(3px);
}

/* Contacto moderno */
.contact-modern-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-modern-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
}

.contact-modern-item:hover {
    background: rgba(2, 203, 196, 0.1);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-icon-bg {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(2, 203, 196, 0.2) 0%, transparent 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-modern-item:hover .contact-icon-bg {
    background: var(--primary-color);
    transform: rotate(10deg);
}

.contact-icon-bg i {
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-modern-item:hover .contact-icon-bg i {
    color: white;
    transform: scale(1.1);
}

.contact-detail {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-footer-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-value {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--primary-color);
}

.contact-value-small {
    color: var(--text-footer-muted);
    font-size: 0.85rem;
}

/* BARRA SOCIAL */
.social-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 40px 0 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(2, 203, 196, 0.2);
    border-bottom: 1px solid rgba(2, 203, 196, 0.2);
}

.social-text {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 120px;
}

.social-text span {
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.social-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.social-icons-innovative {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon-innovative {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-icon-innovative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hover-color, var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-icon-innovative:hover::before {
    opacity: 1;
}

.social-icon-innovative i {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icon-innovative:hover {
    transform: translateY(-8px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.social-icon-innovative:hover i {
    color: white;
    transform: scale(1.2);
}

.social-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.social-icon-innovative:hover .social-tooltip {
    bottom: -40px;
    opacity: 1;
    visibility: visible;
}

/* Separador animado */
.footer-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.divider-icon {
    width: 50px;
    height: 50px;
    background: rgba(2, 203, 196, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.divider-icon i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Footer bottom */
.footer-bottom-innovative {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    color: var(--text-footer-muted);
    font-size: 0.9rem;
}

.copyright-modern {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copyright-modern i {
    color: var(--primary-color);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.legal-links-modern {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-links-modern a {
    color: var(--text-footer-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.legal-links-modern a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.legal-links-modern a i {
    font-size: 1rem;
}

.dot-separator {
    color: rgba(2, 203, 196, 0.5);
}

.developer-signature {
    display: flex;
    align-items: center;
    gap: 5px;
}

.developer-signature i {
    color: var(--primary-color);
    animation: heartbeat 1.5s ease infinite;
}

/* =========================================== */
/* RESPONSIVE                                   */
/* =========================================== */

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .newsletter-floating-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .input-group-modern {
        flex-direction: column;
    }
    
    .btn-subscribe {
        width: 100%;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .social-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .social-icons-innovative {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-innovative {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .legal-links-modern {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .developer-signature {
        justify-content: center;
    }
    
    .certification-showcase {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-floating-card {
        padding: 20px;
    }
    
    .newsletter-text h3 {
        font-size: 1.3rem;
    }
    
    .social-icons-innovative {
        gap: 10px;
    }
    
    .social-icon-innovative {
        width: 40px;
        height: 40px;
    }
    
    .legal-links-modern {
        flex-direction: column;
        gap: 10px;
    }
    
    .dot-separator {
        display: none;
    }
}