@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');


/* --- NAVBAR (ID for specificity) --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    background: transparent !important;   /* Force transparent at start */
    color: #fff;
    transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
    backdrop-filter: none;
}

/* Estado scrolled -> fondo blanco */
#navbar.scrolled {
    background: #ffffff !important;
    color: #111;
    box-shadow: 0 6px 20px rgba(16,24,40,0.08);
    backdrop-filter: blur(6px);
}

/* Logo */
.logo { display:flex; align-items:center; gap:10px; }
.logo img { width:170px; }
.logo-text h1 { margin:0; font-size:1.2rem; font-weight:600; }
.logo-text p { margin:0; font-size:.8rem; color: inherit; opacity: .8; }

/* Nav links */
.nav-links { display:flex; gap:25px; align-items:center; }
.nav-links a {
    color: inherit;                /* toma el color del navbar (blanco o negro) */
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.25s ease;
}

/* Subrayado animado (expand from center) */
.nav-links a::after{
    content:"";
    position:absolute;
    bottom:0;
    left:50%;
    width:0;
    height:3px;
    background: var(--primero);
    border-radius:2px;
    transform: translateX(-50%);
    transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover { color: var(--primero); }
.nav-links a:hover::after { width:100%; }

/* Contact phone */
.phone-contact { display:flex; align-items:center; gap:10px; }
.phone-icon{
    position:relative;
    background: var(--primero);
    border-radius:50%;
    width:40px; height:40px;
    display:flex; align-items:center; justify-content:center;
    color:#fff;
}
.phone-icon .badge{
    position:absolute; top:2px; right:6px;
    background:#fff; color:var(--primero);
    font-size:.6rem; font-weight:700; border-radius:50%; padding:2px 4px;
}
.phone-number { font-weight:600; }

/* Hamburger */
.menu-toggle { display:none; flex-direction:column; gap:5px; cursor:pointer; }
.menu-toggle span { width:25px; height:3px; background: currentColor; border-radius:2px; transition: transform .25s, opacity .25s; }

/* When navbar has white bg, make hamburger dark */
#navbar.scrolled .menu-toggle span { color: #111; }

/* Transform hamburger when open */
#navbar.active .menu-toggle span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
#navbar.active .menu-toggle span:nth-child(2){ opacity: 0; }
#navbar.active .menu-toggle span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Responsive */
@media (max-width: 992px) {
    .nav-links, .phone-contact { display: none; }
    .menu-toggle { display:flex; }

    #navbar.active .nav-links{
        display:flex; flex-direction:column;
        position: absolute; top: 72px; left:0; width:100%;
        background: rgba(255,255,255,0.98);
        padding:18px 0; gap:16px; text-align:center;
        animation: fadeDown 0.35s ease;
    }
    #navbar.active .nav-links a { color:#111; }
    #navbar.active .phone-contact { display:flex; justify-content:center; padding-bottom:10px; }
}

/* Fade down */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}



.hamburger {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.hamburger span {
    position: absolute;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* Posiciones iniciales */
.hamburger span:nth-child(1) {
    top: 8px;
}
.hamburger span:nth-child(2) {
    top: 13px;
}
.hamburger span:nth-child(3) {
    top: 18px;
}

/* Al hacer hover o clic */
.hamburger:hover span:nth-child(1),
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 13px;
}

.hamburger:hover span:nth-child(2),
.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger:hover span:nth-child(3),
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 13px;
}

.cardMenuIcono{
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background-color: var(--primero);
    color: white;
    margin: 0 auto;
    text-align: center;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
