:root {
  --primary: #00a7c7;
  --primary-dark: #007a94;
  --secondary: #005c99;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #123;
}
.navbar {
  background-color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.navbar-brand img {
  height: 52px;
}


.custom-nav .nav-left {
    position: absolute;
    left: 0;
}

.custom-nav .nav-right {
    position: absolute;
    right: 0;
}

.nav-logo {
    height: 52px;
}
@media (max-width: 991px) {
    .custom-nav .nav-left,
    .custom-nav .nav-right {
        display: none !important;
    }

    .navbar-brand {
        margin-left: 0 !important;
    }

    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 15px;
    }
}


/* ---- BOTÓN HAMBURGUESA CON ANIMACIÓN A X ---- */
.navbar-toggler {
    width: 32px;
    height: 26px;
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 9999;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ===== LÍNEAS ===== */
.navbar-toggler .line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.35s ease;
}

/* Línea superior */
.navbar-toggler .line:nth-child(1) {
    top: 0;
}

/* Línea inferior */
.navbar-toggler .line:nth-child(3) {
    top: 20px;
}

/* ===== LÍNEA DEL MEDIO MÁS LARGA Y MÁS GRUESA ===== */
.navbar-toggler .middle {
    top: 10px;
    width: 36px;       /* más larga */
    height: 4px;       /* más gruesa */
    left: -2px;        /* centrada */
}

/* ===================================================== */
/* ESTADO CERRADO (Bootstrap agrega .collapsed por defecto) */
/* ===================================================== */

.navbar-toggler.collapsed .line:nth-child(1) {
    transform: rotate(0deg);
    top: 0;
}

.navbar-toggler.collapsed .middle {
    opacity: 1;
    transform: rotate(0deg);
}

.navbar-toggler.collapsed .line:nth-child(3) {
    transform: rotate(0deg);
    top: 20px;
}

/* ======================================= */
/* ESTADO ABIERTO → se convierte en una X  */
/* ======================================= */

.navbar-toggler:not(.collapsed) .line:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.navbar-toggler:not(.collapsed) .middle {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .line:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}


.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.hero {
  position: relative;
  min-height: 80vh;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/Portada\ Hombres.webp') center center / cover no-repeat;
  filter: brightness(0.45);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,167,199,.8), rgba(0,0,0,.2));
  z-index: -1;
  mix-blend-mode: multiply;
}
.hero-badge {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 600;
  color: #e0f9ff;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 3vw + 1.2rem, 3.2rem);
  line-height: 1.1;
}
.hero-lead {
  font-size: 1.05rem;
  max-width: 32rem;
}
.pill-info {
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .85rem;
}
.section-title {
  font-weight: 800;
  font-size: 1.9rem;
}
.section-subtitle {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  color: var(--primary-dark);
  font-weight: 700;
}
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,167,199,.09);
  color: var(--primary-dark);
  font-size: 1.4rem;
}
.phase-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
  padding: 1.6rem 1.4rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  height: 100%;
}
.phase-chip {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary-dark);
}
.bg-soft-primary {
  background: rgba(0,167,199,.06);
}
.gallery-img {
  border-radius: 1.2rem;
  object-fit: cover;
  width: 100%;
  height: 220px;
}
.testimonial-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,.05);
  padding: 1.8rem 1.6rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  height: 100%;
}
.contact-section {
  background: #012b3a;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0,167,199,.7), transparent 55%);
  opacity: .8;
  z-index: -1;
}
.contact-card {
  border-radius: 1.5rem;
  background: rgba(255,255,255,.06);
  padding: 2.1rem 2rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
}
.form-control, .form-select {
  border-radius: .9rem;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.92);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .15rem rgba(0,167,199,.28);
}
footer {
  background: #001823;
  color: #c7d7e2;
  font-size: .9rem;
}
a {
  color: var(--primary-dark);
}
a:hover {
  color: var(--primary);
}
/* Estilos para el bloque de formulario */
.form-box h5,
.form-box h4,
.form-box h3,
.form-box h2,
.form-box h1 {
    color: #000 !important;  /* Títulos negros */
}

.form-box p {
    color: #444 !important;  /* Texto principal */
}

.form-box ul li {
    color: #666 !important;  /* Bullets / texto secundario */
}

.form-box .small,
.form-box small {
    color: #999 !important;  /* Textos muy pequeños / ubicación */
}

/* Botones */
.form-box .btn-primary {
    background-color: #00A8C8;
    border: none;
    color: white !important;
    font-weight: 600;
}

.form-box .btn-outline-secondary {
    border: 2px solid #666 !important;
    color: #444 !important;
    font-weight: 600;
}

.form-box .btn-outline-secondary:hover {
    background: #f2f2f2;
}
.address-line {
    display: flex;
    align-items: center;
    gap: 8px; /* separación entre icono y texto */
    font-size: 15px;
    color: #666; /* gris medio elegante */
}

.premium-thin {
    font-weight: 300 !important;        /* Ultra delgado */
    font-size: 15px !important;         /* Más pequeño pero elegante */
    letter-spacing: 0.3px !important;   /* Un toque de aire */
    color: #777 !important;             /* Gris suave premium */
    line-height: 1.5;
}
.volver-title {
  font-weight: 700;
  background: linear-gradient(90deg, #0b98d1, #41c0ff, #0b98d1);
  background-size: 200%;
  background-position: 0%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: latidoColor 3s ease-in-out infinite;
}

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

.my-slider {
  margin-top: 30px;
}

.slide-item {
  padding: 10px;
}

.gallery-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.gallery-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 15px;
}
.tns-controls {
  display: none !important;
}
.custom-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.control-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: #0b98d1;
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 152, 209, 0.3);
  transition: all 0.25s ease;
}

.control-btn:hover {
  background: #0878a8;
  box-shadow: 0 12px 28px rgba(11, 152, 209, 0.45);
  transform: translateY(-4px);
}

.control-btn:active {
  transform: scale(0.92);
}
.img-modal {
  display: none;
  position: fixed;
  z-index: 999999 !important;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

.img-modal-inner {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.img-modal-content {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.45);
  display: block;
  animation: zoom .25s ease;
}

@keyframes zoom {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.img-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #333;
  font-size: 26px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
