* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= BODY CON PADDING CORRECTO ================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 123px;
}

/* ================= TOP NAVBAR - FIJO ARRIBA ================= */
.top-nav {
    background: #003366;
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    padding-bottom: 10px;
}

.top-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon-svg {
    width: 16px;
    height: 16px;
    color: #14b8a6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: #14b8a6;
    transform: translateY(-2px);
}

/* ================= NAVBAR PRINCIPAL  ================= */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all .4s ease;
}

.main-nav.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, .75);
}

.main-nav .container {
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= LOGO ================= */
.logo {
    font-size: 24px;
    font-weight: 800;
    color: #003366;
    letter-spacing: 2px;
}

/* ================= MENU ================= */
.nav-menu {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 12px;
    position: relative;
    overflow: visible;
    transition: all .3s ease;
}

/* ===== Hover ===== */
.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, .2), transparent);
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: 12px;
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a:hover {
    color: #14b8a6;
    transform: translateY(-2px);
}

/* ===== ACTIVE ===== */
.nav-menu a.active {
    color: white !important;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 8px 20px rgba(20, 184, 166, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
    transform: translateY(-2px);
}

/* Indicador activo */
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #14b8a6;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(20, 184, 166, .8);
    animation: navBounce 1.5s infinite;
}

@keyframes navBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* ================= CONSULTORÍA ================= */
.btn-consultoria {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    transition: all .4s ease;
}

.btn-consultoria:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, .5);
}

.btn-consultoria.active {
    animation: navGlow 2s infinite;
}

@keyframes navGlow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, .4);
    }

    50% {
        box-shadow: 0 15px 50px rgba(102, 126, 234, .6);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    body {
        padding-top: 160px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        font-size: 12px;
    }

    .social-links {
        gap: 8px;
    }

    .main-nav .container {
        padding: 0 20px;
    }
}

/* ================= HERO SECTION ================= */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-divider {
    width: 100px;
    height: 4px;
    background: #14b8a6;
    margin: 0 auto 25px;
}

.hero-content p {
    font-size: 24px;
    font-weight: 300;
}

/* ================= SERVICES SECTION ================= */
.services {
    padding: 80px 20px;
    background: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: #14b8a6;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    color: #003366;
    font-weight: bold;
    margin-bottom: 20px;
}

.section-description {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: #003366;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* ================= VIDEO SECTION ================= */
.video-section {
    padding: 80px 20px;
    background: white;
}

.carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-btn {
    background: #14b8a6;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
    font-size: 18px;
}

.carousel-btn:hover {
    background: #0d9488;
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
}

.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover img {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
}

.video-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.video-duration {
    font-size: 14px;
    opacity: 0.9;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid #14b8a6;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: #14b8a6;
}

/* ================= CTA SECTION ================= */
.cta-section {
    background: linear-gradient(135deg, #003366, #14b8a6);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-cta {
    background: white;
    color: #003366;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    transition: background 0.3s;
}

.btn-cta:hover {
    background: #f3f4f6;
}

/* ================= RESPONSIVE MOBILE ================= */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 40px;
    }

    .videos-container {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        display: none;
    }
}

/* ============================================
   FOOTER PREMIUM - 200% MEJORADO
   ============================================ */

.footer-premium {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #14b8a6, transparent);
}

/* Main Footer Content */
.footer-main {
    padding: 80px 20px 40px;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

/* Footer Column - About */
.footer-column {
    animation: fadeInUp 0.6s ease-out;
}

.footer-about .footer-logo h2 {
    font-size: 36px;
    font-weight: 800;
    color: #14b8a6;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.logo-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #14b8a6, #06b6d4);
    border-radius: 2px;
    margin-bottom: 20px;
}

.footer-description {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Footer Stats */
.footer-stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    flex: 1;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(20, 184, 166, 0.15);
    transform: translateY(-3px);
    border-color: rgba(20, 184, 166, 0.4);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #14b8a6;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Titles */
.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    color: #f1f5f9;
}

.footer-title span {
    position: relative;
    padding-bottom: 10px;
}

.footer-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, transparent);
    border-radius: 2px;
}

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

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

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

.footer-links a:hover {
    color: #14b8a6;
    padding-left: 8px;
}

.link-icon {
    color: #14b8a6;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.footer-links a:hover .link-icon {
    transform: translateX(3px);
}

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

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-details a,
.contact-details span {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #14b8a6;
}

/* Footer Social Section */
.footer-social-section {
    margin-top: 30px;
}

.social-title {
    font-size: 14px;
    color: #f1f5f9;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #14b8a6;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link:hover::before {
    opacity: 1;
}

.social-icon {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Colores específicos para cada red social */
.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

.social-link.twitter:hover {
    background: #000000;
    border-color: #000000;
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.social-link.tiktok:hover {
    background: #000000;
    border-color: #69c9d0;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.4);
}


/* Newsletter Section */
.footer-newsletter {
    background: rgba(20, 184, 166, 0.05);
    padding: 40px 20px;
    border-top: 1px solid rgba(20, 184, 166, 0.1);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-text h3 {
    font-size: 24px;
    color: #f1f5f9;
    margin-bottom: 8px;
    font-weight: 700;
}

.newsletter-text p {
    color: #cbd5e1;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(20, 184, 166, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #14b8a6;
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.btn-newsletter {
    padding: 14px 30px;
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.2);
}

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

.copyright {
    color: #94a3b8;
    font-size: 14px;
}

.copyright strong {
    color: #14b8a6;
    font-weight: 600;
}

.footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-legal a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #14b8a6;
}

.footer-legal .separator {
    color: #475569;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-stats {
        justify-content: center;
    }
}

/* =========================================================== */
/*                  Responsive Styles                          */
/* =========================================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 40px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

    .videos-container {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        display: none;
    }
}