@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

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

:root {
    --white: #FFFFFF;
    --black: #000000;
    --blue-primary: #034C8C;
    --blue-dark: #071D39;
    --red-dark: #74001F;
    --red-primary: #E30613;
    --red-accent: #EB3D2A;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
}

/* NAVEGACIÓN */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.logo img {
    width: 180px;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    padding: 0.5rem 0.8rem;  /* Reducido el padding horizontal */
    border-radius: 8px;      /* Radio más pequeño */
    transition: all 0.3s ease;
    display: inline-block;   /* Para que se ajuste al contenido */
}

.nav-links a:hover {
    background: var(--red-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

.nav-links a.active {
    background: var(--blue-primary);
    color: var(--white);
    padding: 0.5rem 0.8rem;  /* Mismo padding para consistencia */
}

/* Mobile Menu Toggle */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--blue-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animación cuando el toggle está activo */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* HERO */
.hero-services {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 50%, var(--red-primary) 100%);
    padding: 120px 2rem 80px;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.anniversary-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--red-primary), var(--red-accent));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* SERVICIOS PRINCIPALES */
.main-services {
    padding: 80px 0;
    background: var(--white);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.section-title .primary {
    color: var(--blue-dark);
}

.section-title .accent {
    color: var(--red-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--blue-primary), var(--red-primary));
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--red-primary), var(--red-accent));
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--blue-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    color: #555;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red-primary);
    font-weight: bold;
}

.service-btn {
    display: block;
    background: var(--red-primary);
    color: white;
    text-align: center;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

/* PROCESO */
.process-section {
    padding: 80px 0;
    background: #f8fafb;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h4 {
    color: var(--blue-dark);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.step-card p {
    color: #666;
    font-size: 0.95rem;
}

/* EQUIPO */
.team-section {
    padding: 80px 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.team-image {
    height: 200px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    color: var(--blue-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-info .role {
    color: var(--red-primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.team-info p {
    color: #666;
    font-size: 0.9rem;
}

/* CTA - OPCIÓN 2: Gris con gradiente */
.cta-section {
    padding: 80px 2rem;
    background: linear-gradient(135deg, #f8fafb 0%, #e8eef2 100%);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 5px;
    background: linear-gradient(90deg, var(--blue-primary), var(--red-primary));
    border-radius: 3px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--blue-dark);
    position: relative;
    padding-bottom: 1.5rem;
}

.cta-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 2px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.cta-btn {
    display: inline-block;
    background: var(--red-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.3);
}

.cta-btn:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.5);
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px;
}

.footer-section p, 
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
    margin-bottom: 0.8rem;
    font-size: 14px;
    display: block;
}

.footer-section a:hover {
    color: var(--red-primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    display: block;
    padding: 0.2rem 0;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-anniversary {
    width: 80px;
    height: auto;
    display: block;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-primary);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--red-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--red-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-5px);
}

/* ========== RESPONSIVE ========== */

/* Tablets y Mobile Menu */
@media (max-width: 1024px) {
   .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 25px rgba(0,0,0,0.15);
        border-radius: 15px;
        text-align: center;
        gap: 0.5rem;
        align-items: center;  /* AGREGADO - Centra los items */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: auto;  /* CAMBIADO de 100% a auto */
    }

    .nav-links a {
        display: inline-block;  /* CAMBIADO de block a inline-block */
        width: auto;  /* CAMBIADO de 100% a auto */
        padding: 0.8rem 1.5rem;  /* Padding más controlado */
    }

    .mobile-menu {
        display: flex;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navegación */
    .nav-container {
        padding: 1rem;
    }

    .logo img {
        width: 150px;
    }

    .mobile-menu span {
        width: 22px;
        height: 2.5px;
    }

    .nav-links a {
        padding: 0.7rem 1.2rem;  /* Ajuste para móviles más pequeños */
    }
    
    /* Hero */
    .hero-services {
        padding: 100px 1rem 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Secciones */
    .section-title {
        font-size: 2rem;
    }
    
    .main-services,
    .process-section,
    .team-section,
    .cta-section {
        padding: 60px 0;
    }
    
    /* Grids */
    .services-grid,
    .team-grid,
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 1rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section:first-child {
        text-align: center;
    }

    .footer-logo {
        width: 200px;
        margin: 0 auto 1rem;
    }

    .footer-anniversary {
        width: 80px;
        margin: 0 auto 1rem;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-section p {
        text-align: center;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    /* Botones flotantes */
    .whatsapp-float,
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
    }
    
    .whatsapp-float {
        left: 20px;
    }
    
    .back-to-top {
        right: 20px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .logo img {
        width: 130px;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        width: 95%;
        padding: 1.5rem;
    }
 .nav-links a {
        padding: 0.6rem 1rem;  /* Más compacto en móviles pequeños */
    }
    .mobile-menu span {
        width: 20px;
    }
.footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo {
        width: 180px;
    }

    .footer-anniversary {
        width: 70px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-section p, 
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-social {
        justify-content: center;
        align-items: center;
    }
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .step-card,
    .team-card {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}