/* =========== Integra Arquitectos Styles =========== */

/* — Google Fonts — */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;600&display=swap');

/* — Variables — */
:root {
  --color-white: #fff;
  --color-gold: #c8a970;
  --color-dark: #0f0f0f;
}

/* — Reset y base — */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-dark);
  color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
}

/* — Flex universal para footer sticky — */
main,
.servicios-section,
.especialidades-acordeon,
.contacto-section,
.quienes-somos-section,
.contador-section {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}

/* ========== NAVBAR ========== */
.main-header {
height: 140px;
position: relative;

/* eliminamos la altura fija y usamos padding */

padding: 24px 0;
background: rgba(230, 230, 230, 0.12);

transition: height 0.3s ease, background 0.3s, box-shadow 0.3s;

transition: padding 0.3s ease, background 0.3s, box-shadow 0.3s;
}
.main-header.scrolled {

height: 80px;

/* reducimos sólo el padding */

padding: 8px 0;
box-shadow: 0 2px 12px rgba(0,0,0,.5);
background: rgba(25,25,25,.95);
}

#navbar-blueprint {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: transparent;
  z-index: 1400;
}
.navbar-wide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}
.nav-logo img {
  height: 150px;
  width: auto;
  transition: height .3s;
}
.main-header.scrolled .nav-logo img {
  height: 60px;
}
.nav-list-wide {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-list-wide a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-list-wide a:hover,
.nav-list-wide a.active {
  color: var(--color-dark);
  background: var(--color-gold);
}
/* ========== HERO ========== */
.hero-full {
  position: relative;
  min-height: 85vh;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20,20,20,0.88) 65%, rgba(30,30,30,0.72) 100%);
}
.hero-text-group {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding: 0 16px;
}
.hero-title-main {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.1;
  background: linear-gradient(90deg, #ffe6b3 20%, #c8a970 60%, #fffbe1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-right: 2px solid var(--color-gold);
  padding-right: 2px;
  margin-bottom: 0.6em;
  white-space: nowrap;
}
.hero-subtop {
  font-size: clamp(1.12rem, 2.5vw, 1.45rem);
  color: #e0e0e0;
  margin-bottom: 1.2em;
  font-weight: 500;
}
.hero-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1.08rem;
  font-weight: bold;
  color: var(--color-white);
  background: transparent;
  border: 2px solid var(--color-white);
  border-radius: 30px;
  transition: background 0.3s, color 0.3s;
  margin-top: 0.3em;
}
.hero-btn:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* ========== QUIÉNES SOMOS ========== */
.quienes-somos-section {
  position: relative;
  background: url('./img/quienes-somos.jpg') center/cover no-repeat;
  padding: 60px 0;
}
.quienes-somos-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,20,20,0.7) 60%, rgba(30,30,30,0.5));
  z-index: 1;
}
.quienes-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  padding: 0 20px;
}
.quienes-text { flex: 1; }
.quienes-text h2 {
  font-size: 2.6rem;
  color: var(--color-gold);
  margin-bottom: 0.5em;
}
.quienes-text p {
  line-height: 1.8;
  font-size: 1rem;
  color: #f0f0f0;
}
.quienes-image { flex: 1; display: flex; justify-content: center; }
.quienes-image img {
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ========== SERVICIOS SECTION ========== */
.servicios-section {
  position: relative;
  background: url('./img/servicios.jpg') center/cover no-repeat;
  padding: 80px 0;
}
.servicios-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(20,20,20,0.8) 60%, rgba(30,30,30,0.6));
  z-index: 1;
}
.servicios-container {
  position: relative;
  z-index: 2;
  max-width:1240px;
  margin:0 auto;
  padding:0 20px;
}
.servicios-title {
  font-size: 2.4rem;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 1em;
}
.servicio-bloque {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: rgba(25,25,25,0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 2em;
}
.servicio-text { flex: 1 1 300px; }
.servicio-text h3 { font-size: 1.4rem; color: var(--color-gold); margin-bottom: 0.5em; }
.servicio-text p { line-height:1.6; font-size:1rem; }
.servicio-img { flex: 1 1 200px; display:flex; justify-content:center; }

/* ========== ESPECIALIDADES ACCORDEÓN ========== */
.especialidades-acordeon {
  position: relative;
  padding: 60px 0;
  background: transparent;
}
.especialidades-video-bg,
.especialidades-bg-overlay {
  inset:0;
  position:absolute;
  width:100%;
  height:100%;
}
.especialidades-video-bg {
  z-index:0;
  object-fit:cover;
  filter:brightness(0.5) contrast(1.1);
}
.especialidades-bg-overlay {
  z-index:1;
  background:linear-gradient(90deg, rgba(20,20,20,0.4),rgba(20,20,20,0.8));
}
.especialidades-titulo,
.especialidades-acordeon > p,
.especialidades-acordeon .hero-btn {
  position: relative;
  z-index: 2;
}
.especialidades-titulo {
  font-size:2.2rem;
  color:var(--color-gold);
  text-align:center;
  margin-bottom:1em;
}
.especialidades-acordeon > p {
  text-align:center;
  font-size:1rem;
  max-width:750px;
  margin:0 auto 1em;
}
.especialidades-acordeon .hero-btn {
  display:inline-block;
  margin:auto;
}
.especialidades-acordeon .acordeon-list,
.especialidades-acordeon .hero-btn {
  position: relative;
  z-index: 10;
}
.acordeon-list {
  margin-top: 1em;
  margin-bottom: 2em;
}
.acordeon-item {
  background: rgba(25,25,25,0.47);
  margin: 0 0 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: box-shadow 0.2s;
  overflow: hidden;
}
.acordeon-titulo {
  padding: 22px 30px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  transition: background 0.2s;
  position: relative;
  letter-spacing: 0.5px;
}
.acordeon-titulo::after {
  content: '▼';
  position: absolute;
  right: 36px;
  font-size: 1.1em;
  color: var(--color-gold);
  transition: transform 0.3s;
}
.acordeon-item.active .acordeon-titulo {
  background: rgba(200,169,112,0.08);
}
.acordeon-item.active .acordeon-titulo::after {
  transform: rotate(-180deg);
}
.acordeon-contenido {
  padding: 0 32px;
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.01);
  color: #eee;
  font-size: 1rem;
  transition: max-height 0.5s cubic-bezier(.77,0,.18,1), padding 0.2s;
}
.acordeon-item.active .acordeon-contenido {
  padding: 22px 32px 32px 32px;
  max-height: 1500px;
}
.acordeon-contenido p {
  text-align: center;
}

/* ========== CONTADOR SECTION ========== */
.contador-section {
  position: relative;
  background: url('./img/blueprint.jpg') center/cover no-repeat;
  padding: 60px 0;
}
.contador-section::before {
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.5);
  z-index:1;
}
.contador-container {
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  gap:32px;
}
.contador-card {
  background:rgba(0,0,0,0.7);
  border-radius:12px;
  padding:24px 32px;
  text-align:center;
}
.contador-numero {
  font-size:2.5rem;
  color:var(--color-gold);
  margin-bottom:0.3em;
}
.contador-label {
  font-size:1rem;
}

/* ========== CONTACTO ========== */
.contacto-section {
  position: relative;
  background: url('./img/contacto.jpg') center/cover no-repeat;
  padding: 70px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contacto-section::before {
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.54);
  z-index:1;
}
.contacto-card {
  position:relative;
  z-index:2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 38px;
  background: rgba(30, 30, 30, 0.92);
  border-radius: 22px;
  box-shadow: 0 8px 44px rgba(0,0,0,0.16);
  padding: 36px 38px;
  max-width: 1080px;
  width: 95vw;
  min-height: 380px;
}
.contacto-izq, .contacto-der {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 360px;
}
.contacto-izq {
  align-items: flex-start;
  background: rgba(24,24,24,0.93);
  border-radius: 15px;
  padding: 22px 20px;
  margin-right: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.contacto-mapa-box {
  width: 100%;
  margin-bottom: 18px;
}
.contacto-dir h3 {
  color: var(--color-gold);
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 700;
}
.contacto-dir p {
  color: #ffe5bb;
  font-size: 1rem;
  line-height: 1.4;
}
.contacto-separador {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  max-width: 66px;
  gap: 4px;
}
.separador-linea {
  width: 2.5px;
  height: 55px;
  background: linear-gradient(to bottom, #C8A970 0%, #C8A97022 100%);
  border-radius: 8px;
  animation: separador-anim 1.2s infinite alternate;
}
@keyframes separador-anim {
  0% { height: 38px; opacity: 0.85; }
  100% { height: 62px; opacity: 1; }
}
.separador-icono {
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: icono-rotar 4s linear infinite;
}
@keyframes icono-rotar {
  0% { transform: rotate(-12deg);}
  100% { transform: rotate(348deg);}
}
.contacto-der {
  align-items: flex-start;
  background: rgba(17,17,17,0.97);
  border-radius: 15px;
  padding: 22px 24px;
  margin-left: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.contacto-der h2 {
  color: var(--color-gold);
  margin-bottom: 9px;
  font-size: 1.18rem;
  font-weight: 800;
}
.contacto-der p {
  color: #fff8e4;
  margin-bottom: 13px;
  font-size: 1rem;
}
.contacto-der form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.contacto-der input,
.contacto-der textarea {
  padding: 10px;
  border: none;
  border-radius: 7px;
  background: rgba(255,255,255,0.94);
  font-size: 1rem;
  margin-bottom: 0;
  resize: none;
}
.contacto-der textarea {
  min-height: 60px;
}
.contacto-der button {
  padding: 12px;
  font-size: 1.1rem;
  border: none;
  border-radius: 30px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.contacto-der button:hover {
  background: #fff3cf;
}

/* ========== FOOTER ========== */
footer {
  background: var(--color-dark);
  color: #ccc;
  text-align: center;
  padding: 10px 0 6px 0;
  margin-top: 0;
  flex-shrink: 0;
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
footer p {
  color: #ccc;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
  opacity: 1;
  display: block;
  visibility: visible;
}

footer,
footer .container,
footer p {
  color: #eee !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  background: none !important;
  z-index: 2000 !important;
}


/* ========== ANIMACIONES ========== */
.fade-in, .animate-fade-up {
  opacity:0;
  transform:translateY(20px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible, .animate-fade-up.visible {
  opacity:1;
  transform:none;
}

/* ========== RESPONSIVE ========== */
@media (max-width:1024px) {
  .quienes-content, .servicio-bloque {
    flex-direction:column;
    align-items:center;
  }
  .contacto-card {
    flex-direction: column;
    gap: 28px;
    padding: 18px 8px;
    min-width: 90vw;
  }
  .contacto-separador {
    flex-direction: row;
    min-width: unset;
    max-width: unset;
    justify-content: center;
    margin: 20px 0;
  }
  .separador-linea {
    display: none;
  }
}
@media (max-width:768px) {
  .nav-list-wide { gap:16px; }
  .hero-text-group { padding:12px; }
  .contador-container { flex-direction:column; gap:16px; }
  .servicio-bloque { padding: 16px; }
}
@media (max-width:600px) {
  .main-header { min-height: 80px; }
  .nav-logo img { height: 60px; }
  .hero-title-main { font-size:1.6rem; }
  .acordeon-titulo { font-size:1rem; padding:12px; }
  .acordeon-item.active .acordeon-contenido { max-height:3000px; }
}


/* ========== RESPONSIVE PERSONALIZADO ========== */
@media (max-width: 1024px) {
  .navbar-wide {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px;
  }

  .nav-list-wide {
    flex-direction: column;
    width: 100%;
    gap: 16px;
    padding: 10px 0;
  }

  .nav-list-wide a {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .quienes-content,
  .servicio-bloque {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .servicio-img img {
    max-width: 100%;
    height: auto;
  }

  .especialidades-acordeon {
    padding: 40px 16px;
  }

  .acordeon-contenido {
    padding: 0 16px;
  }

  .contacto-card {
    flex-direction: column;
    padding: 20px;
  }

  .contacto-izq,
  .contacto-der {
    max-width: 100%;
    margin: 0;
  }

  .footer .container {
    padding: 0 16px;
  }

  .contador-container {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .main-header {
    min-height: 80px;
  }

  .nav-logo img {
    height: 60px;
  }

  .hero-title-main {
    font-size: 1.6rem;
    white-space: normal;
  }

  .hero-subtop {
    font-size: 1rem;
  }

  .hero-btn {
    font-size: 1rem;
    padding: 10px 24px;
  }

  .acordeon-titulo {
    font-size: 1rem;
    padding: 14px;
  }

  .contacto-dir p {
    font-size: 0.95rem;
  }

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

  .contador-numero {
    font-size: 2rem;
  }

  .contador-label {
    font-size: 0.95rem;
  }
}



/* ===== MENÚ HAMBURGUESA PARA MÓVILES ===== */

.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 2001;
  background: none;
  border: none;
}
.hamburger-toggle span {
  width: 28px;
  height: 3px;
  background: var(--color-white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger-toggle {
    display: flex;
    position: absolute;
    top: 24px;
    right: 24px;
  }

  .navbar-wide {
    position: relative;
  }

  .nav-list-wide {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 1401; /* justo encima del canvas (1400) */
    background: none;
  }

  .nav-list-wide.open {
    max-height: 400px;
    padding: 10px 0;
    transition: max-height 0.4s ease-in;
    /* Fondo semitransparente para que se vea la cuadrícula */
    background: rgba(15, 15, 15, 0.5) !important;
    z-index: 1500 !important;
  }

  .nav-list-wide a {
    display: block;
    padding: 12px 16px;
    font-size: 1.05rem;
  }
}




/* =========== FIN =========== */
