/* ===================== VARIABLES GLOBALES ===================== */
:root {
    --top-header-height: 40px; /* Header más grande */
    --navbar-height: 150px;    /* Altura del navbar */
}

/* ===================== AJUSTE GLOBAL ===================== */
body {
    margin: 0;
    padding-top: calc(var(--top-header-height) + var(--navbar-height));
    box-sizing: border-box;
}

/* ===================== TOP HEADER ===================== */
.top-header-centered {
    background-color: #09457B;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    font-size: 16px;
    position: fixed; /* header fijo */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    height: var(--top-header-height);
}
.contact-info-centered {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.contact-item {
    opacity: 0;
    animation: appear 0.6s forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.3s; }
.contact-item:nth-child(3) { animation-delay: 0.5s; }
.contact-item:nth-child(4) { animation-delay: 0.7s; }

@keyframes appear {
    to { opacity: 1; }
}

.social-icons-centered {
    display: flex;
    gap: 20px;
    position: absolute;
    right: 50px;
}

.social-icons-centered i {
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s;
}

.social-icons-centered i:hover {
    color: #FFD166;
}


/* ===================== NAVBAR ===================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.8); /* más transparente, 0.4 = 40% opaco */
    padding: 0 80px 10px 80px;
    position: relative;
    margin-top: var(--top-header-height);
    width: 100%;
    z-index: 1050;
    border-bottom: 2px solid #c7c7c7;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 100px;
    transition: background-color 0.3s, border 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.6); /* más visible al bajar */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-bottom: 2px solid #D29C27;
  
}

/* LOGO */
.navbar-brand img {
    max-height: 100px;   /* Tamaño más grande del logo */
    width: auto;
    object-fit: contain;
    display: block;
	transform: translateY(0px) translateX(250px); /* centrado */
}

/* Texto opcional junto al logo */
.navbar-brand span {
    font-size: 1.8rem;
    color: #09457B;
    margin-left: 10px;
}

/* Links */
.navbar-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.navbar-nav .nav-link {
    color: #09457B;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover {
    color: #D29C27;
}

/* Botón */
.btn-agendar {
    background-color: #D29C27;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-agendar:hover {
    background-color: #09457B;
}

@media (max-width: 992px) {
  /* TOP HEADER (franja azul) */
  .top-header-centered {
    flex-direction: column;   /* elementos apilados si no caben */
    padding: 10px;
    font-size: 14px;
    height: auto;             /* ya no forzamos altura fija */
  }

  .contact-info-centered {
    flex-wrap: wrap;          /* que no se desborde */
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .social-icons-centered {
    position: relative;
    right: 0;
    margin-top: 5px;
    justify-content: center;
  }

  /* NAVBAR (logo + hamburguesa) */
  .navbar {
    flex-direction: row;
    justify-content: space-between; /* logo izq - hamburguesa der */
    align-items: center;
    height: auto;
    padding: 8px 15px;
    margin-top: var(--top-header-height); /* respeta la franja azul */
    gap: 0;
  }

  .navbar-brand img {
    max-height: 45px;
    margin: 0;
    transform: none;   /* ya no se baja */
  }

  .navbar-toggler {
    border: none;
    margin-left: auto;
    z-index: 1200;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    text-align: center;
  }

  .btn-agendar {
    width: 100%;
    margin-top: 10px;
  }
}

