/**********************************/
/********** Template CSS **********/
/**********  ZFARF WEB   **********/
/**********************************/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   1. RESET Y ESTILOS GENERALES
   ============================================================ */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    color: #555555;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #030f27;
}

a {
    color: #030f27;
    transition: all 0.3s ease;
}

a:hover, a:active, a:focus {
    color: #fdbe33;
    outline: none;
    text-decoration: none;
}

.btn:focus {
    box-shadow: none;
}

.wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
}

/* ============================================================
   2. BARRA DE PROGRESO DE SCROLL
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    width: 0%;
    background: linear-gradient(90deg, #fdbe33, #ffd970, #fdbe33);
    z-index: 99999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 15px rgba(253, 190, 51, 0.9), 0 0 25px rgba(253, 190, 51, 0.5);
}

/* ============================================================
   3. BOTÓN BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    display: none;
    background: #fdbe33;
    color: #030f27;
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 1;
    font-size: 22px;
    right: 15px;
    bottom: 15px;
    transition: .5s;
    z-index: 9;
    border-radius: 4px;
}

.back-to-top i {
    padding-top: 10px;
}

.back-to-top:hover {
    background: #030f27;
    color: #fdbe33;
    transform: translateY(-3px);
}

/* ============================================================
   4. TOP BAR
   ============================================================ */
.top-bar {
    position: relative;
    height: 90px;
    background: #fdbe33;
}

.top-bar .logo {
    padding: 15px 0;
    text-align: left;
}

.top-bar .logo h1 {
    margin: 0;
    color: #030f27;
    font-size: 50px;
    line-height: 60px;
    font-weight: 800;
    letter-spacing: -1px;
}

.top-bar .logo img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.top-bar .logo img:hover {
    transform: scale(1.03);
}

.top-bar .top-bar-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-bar .top-bar-icon {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar .top-bar-icon [class^="flaticon-"]::before {
    margin: 0;
    color: #030f27;
    font-size: 35px;
}

.top-bar .top-bar-text {
    padding-left: 15px;
}

.top-bar .top-bar-text h3 {
    margin: 0 0 2px 0;
    color: #030f27;
    font-size: 15px;
    font-weight: 600;
}

.top-bar .top-bar-text p {
    margin: 0;
    color: #030f27;
    font-size: 13px;
}

/* ============================================================
   5. NAV BAR (con cambio de color al scroll)
   ============================================================ */
.nav-bar {
    position: relative;
    background: #030f27;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-bar .navbar {
    padding: 15px 0;
    background: #030f27 !important;
    transition: background-color 0.4s ease;
}

.nav-bar.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.nav-bar.scrolled .navbar {
    background-color: #0d2452 !important;
}

.nav-bar.scrolled .navbar-dark .navbar-nav .nav-link.active {
    color: #fdbe33 !important;
}

.nav-bar .navbar-brand {
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.nav-bar .navbar-dark .navbar-nav .nav-link {
    padding: 10px 15px;
    color: #ffffff;
    font-weight: 500;
}

.nav-bar .navbar-dark .navbar-nav .nav-link:hover,
.nav-bar .navbar-dark .navbar-nav .nav-link.active {
    color: #fdbe33;
}

/* ============================================================
   6. BOTONES CON EFECTO SHINE
   ============================================================ */
.btn-shine, .btn-custom, .nav-bar .btn, .carousel .btn {
    position: relative;
    color: #030f27;
    background: #fdbe33;
    border-radius: 4px;
    font-weight: 600;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease-in-out !important;
}

.btn-shine::after, .btn-custom::after, .nav-bar .btn::after, .carousel .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
    z-index: 2;
}

.btn-shine:hover::after, .btn-custom:hover::after,
.nav-bar .btn:hover::after, .carousel .btn:hover::after {
    left: 100%;
}

.nav-bar .btn:hover {
    color: #fdbe33;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 190, 51, 0.3);
}

/* ============================================================
   7. RIPPLE (onda expansiva)
   ============================================================ */
.ripple-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.ripple-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3);
}

.ripple-btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnim 0.7s linear;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   8. PAGE HEADER
   ============================================================ */
.page-header {
    position: relative;
    margin-bottom: 45px;
    padding: 90px 0 45px 0;
    text-align: center;
    background: linear-gradient(135deg, #030f27 0%, #0a1f42 100%);
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2);
}

.page-header h2 {
    position: relative;
    color: #fdbe33;
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header a {
    position: relative;
    padding: 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.page-header a:hover {
    color: #fdbe33;
}

/* ============================================================
   9. HERO SECTION (FIX: ahora carga fondo.jpg con overlay)
   ============================================================ */
.hero-section {
    width: 100%;
    min-height: 100vh;
    background-image:
        linear-gradient(180deg, rgba(3, 15, 39, 0.60) 0%, rgba(3, 15, 39, 0.85) 100%),
        url('img/fondo.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

.hero-section h1,
.hero-section h2 {
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
}

.hero-section p {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: auto;
        padding: 90px 0;
    }
}

/* ============================================================
   10. CARRUSEL PRINCIPAL
   ============================================================ */
.carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - 140px);
    min-height: 400px;
    background: #030f27;
}

.carousel .carousel-item {
    height: calc(100vh - 140px);
    min-height: 400px;
}

.carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel .carousel-caption {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(3, 15, 39, .75);
}

.carousel .carousel-caption p {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
}

.carousel .carousel-caption h1 {
    color: #ffffff;
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
}

.carousel .carousel-caption .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #030f27;
    background: #fdbe33;
    border-radius: 4px;
}

.carousel .carousel-caption .btn:hover {
    color: #fdbe33;
    background: #ffffff;
}

/* ============================================================
   11. SECCIONES GENERALES
   ============================================================ */
.section-header {
    margin-bottom: 45px;
}

.section-header p {
    color: #fdbe33;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.section-header h2 {
    color: #030f27;
    font-size: 40px;
    font-weight: 700;
    margin: 0;
}

/* ============================================================
   12. SERVICIOS Y TARJETAS
   ============================================================ */
.service, .portfolio, .about, .contact {
    padding: 60px 0;
}

.service .service-item,
.portfolio .portfolio-warp,
.feature-item {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    background: #030f27;
    border-radius: 8px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.35s ease !important;
}

.service .service-item:hover,
.portfolio .portfolio-warp:hover,
.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(3, 15, 39, 0.3) !important;
}

.service .service-img img,
.portfolio .portfolio-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease !important;
}

.service .service-item:hover .service-img img,
.portfolio .portfolio-warp:hover .portfolio-img img {
    transform: scale(1.08) !important;
}

.service .service-text,
.portfolio .portfolio-text {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service .service-text h3,
.portfolio .portfolio-text h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}

.service .service-text .btn,
.portfolio .portfolio-text .btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdbe33;
    color: #030f27;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.service .service-item:hover .service-text .btn,
.portfolio .portfolio-warp:hover .portfolio-text .btn {
    background: #ffffff;
    color: #030f27;
}

/* ============================================================
   13. CARDS DE SERVICIOS CON BORDE ANIMADO + ICONO GIRANDO
   ============================================================ */
.feature-card-pilar {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.feature-card-pilar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #fdbe33, #ffd970, #fdbe33);
    transition: left 0.6s ease;
    box-shadow: 0 0 15px rgba(253, 190, 51, 0.8);
}

.feature-card-pilar:hover::before {
    left: 100%;
}

.feature-card-pilar:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(3, 15, 39, 0.2) !important;
    background-color: #fff8e6 !important;
}

.feature-card-pilar i {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.feature-card-pilar:hover i {
    transform: scale(1.25) rotate(-10deg);
    color: #030f27 !important;
}

/* ============================================================
   14. MINI-CARRUSELES DE PRODUCTO (portafolio)
   ============================================================ */
.product-card-carousel,
.product-card-carousel.carousel {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #ffffff !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-card-carousel::after {
    display: none !important;
}

.product-card-carousel .carousel-inner,
.product-card-carousel .carousel-item {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
}

.product-card-carousel .carousel-item img.product-card-img {
    width: 100% !important;
    height: 280px !important;
    max-height: 280px !important;
    object-fit: contain !important;
    padding: 10px !important;
    background-color: #ffffff !important;
    filter: none !important;
    -webkit-filter: none !important;
    transition: transform 0.5s ease;
}

.product-card-carousel:hover .carousel-item.active .product-card-img {
    transform: scale(1.05);
}

.photo-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(3, 15, 39, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fdbe33;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(253, 190, 51, 0.4);
    letter-spacing: 0.5px;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 11;
    width: 12%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(3, 15, 39, 0.7);
    border-radius: 50%;
    padding: 12px;
    background-size: 50% 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: #fdbe33;
    border-color: #fdbe33;
}

.btn-custom-outline {
    border: 2px solid #030f27;
    color: #030f27;
    font-weight: 700;
}

.btn-custom-outline:hover {
    background-color: #030f27;
    color: #fdbe33;
}

/* ============================================================
   15. GLASSMORPHISM (para about.html)
   ============================================================ */
.glass-card {
    background: rgba(12, 12, 18, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 190, 51, 0.35);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fdbe33, transparent);
    transition: left 0.8s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: #fdbe33;
    box-shadow: 0 25px 50px rgba(253, 190, 51, 0.25);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    color: #030f27;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.glass-card-light::before {
    content: '';
    position: absolute;



    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fdbe33, transparent);
    transition: left 0.8s ease;
}

.glass-card-light:hover::before {
    left: 100%;
}

.glass-card-light:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(3, 15, 39, 0.35);
}

/* Iconos giratorios 3D dentro de glass-cards */
.feature-icon-gold {
    width: 70px;
    height: 70px;
    background: #fdbe33;
    color: #030f27;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.35s ease,
                color 0.35s ease,
                box-shadow 0.35s ease;
    box-shadow: 0 8px 20px rgba(253, 190, 51, 0.35);
}

.glass-card:hover .feature-icon-gold {
    transform: rotateY(360deg) scale(1.15);
    background: #030f27;
    color: #fdbe33;
    box-shadow: 0 15px 30px rgba(253, 190, 51, 0.6);
}

/* Iconos de sectores (círculos grandes) */
.icon-box-feature {
    width: 100px;
    height: 100px;
    background: #fdbe33;
    color: #030f27;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 40px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.35s ease,
                color 0.35s ease,
                box-shadow 0.35s ease;
    box-shadow: 0 10px 25px rgba(253, 190, 51, 0.35);
}

.icon-box-feature:hover {
    transform: rotateY(360deg) scale(1.2);
    background: #030f27;
    color: #fdbe33;
    box-shadow: 0 18px 40px rgba(253, 190, 51, 0.65);
}

/* ============================================================
   16. REVEAL GENÉRICO (fade-in al scrollear)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   17. CTA FINAL CON BORDE NEÓN
   ============================================================ */
.cta-neon {
    position: relative;
    border-radius: 12px;
    z-index: 1;
}

.cta-neon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    background: linear-gradient(45deg, #fdbe33, #ffd970, #25d366, #fdbe33);
    background-size: 300% 300%;
    animation: neonBorder 6s ease infinite;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.7;
}

@keyframes neonBorder {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
    padding-top: 60px;
    background: #030f27;
    color: #ffffff;
}

.footer .footer-contact h2,
.footer .footer-link h2,
.footer .newsletter h2 {
    color: #fdbe33;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer .footer-contact p i {
    color: #fdbe33;
    margin-right: 10px;
}

.footer .footer-link a {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer .footer-link a:hover {
    color: #fdbe33;
    padding-left: 8px;
}

.footer .copyright {
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: #fdbe33;
}

/* ============================================================
   19. BOTÓN FLOTANTE WHATSAPP (con bounce)
   ============================================================ */
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    position: fixed;
    width: 62px;
    height: 62px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF !important;
    transform: scale(1.12) rotate(-8deg);
    animation-play-state: paused;
}

/* ============================================================
   20. RESPONSIVE
   ============================================================ */
@media (min-width: 992px) {
    .top-bar {
        padding: 0 60px;
    }
    .nav-bar {
        padding: 0 60px;
    }
    .nav-bar .navbar {
        padding: 0;
    }
    .nav-bar .navbar-dark .navbar-nav .nav-link {
        padding: 20px 15px;
    }
}

@media (max-width: 991.98px) {
    .top-bar .logo {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .glass-card,
    .glass-card-light {
        padding: 25px;
    }
    .hero-section {
        background-attachment: scroll;
        min-height: auto;
        padding: 90px 0;
    }
    .icon-box-feature {
        width: 85px;
        height: 85px;
        font-size: 34px;
    }
}

/* ============================================================
   21. ACCESIBILIDAD
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
/* ============================================================
   22. SERVICE CARDS PRO (compatible con service.html)
   ============================================================ */
.service-card-pro:hover {
    border-color: rgba(253, 190, 51, 0.4);
}

.service-card-pro a.font-weight-bold {
    color: #fdbe33;
    text-decoration: none;
}

.service-card-pro a.font-weight-bold:hover {
    color: #030f27;
}