/* ==========================================================================
   CDC ARQUITECTOS - SITIO EN CONSTRUCCIÓN
   Estilos CSS Modernos y Responsivos
   ========================================================================== */

:root {
  /* Paleta de Colores de Marca */
  --color-primary-orange: #df6719;
  --color-primary-orange-hover: #f1782a;
  --color-primary-orange-glow: rgba(223, 103, 25, 0.4);
  --color-white: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.88);
  --color-text-subtle: rgba(255, 255, 255, 0.75);

  /* Estilos de Fondo y Superposición */
  --bg-overlay-top: rgba(14, 22, 30, 0.68);
  --bg-overlay-mid: rgba(12, 19, 27, 0.58);
  --bg-overlay-bottom: rgba(8, 14, 20, 0.85);

  /* Tarjetas Glassmorphism */
  --card-bg: rgba(18, 26, 34, 0.55);
  --card-border: rgba(255, 255, 255, 0.22);
  --card-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  --card-blur: blur(16px);

  /* Tipografía */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-family);
  color: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: #0b1118;
  background-image: 
    linear-gradient(180deg, var(--bg-overlay-top) 0%, var(--bg-overlay-mid) 45%, var(--bg-overlay-bottom) 100%),
    url('../images/fondo.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: clamp(1.5rem, 3.5vh, 3rem) clamp(1rem, 4vw, 2.5rem);
}

/* Efecto de Viñeta Sutil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(5, 9, 14, 0.45) 100%);
  z-index: 1;
}

/* Contenedor Principal */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  min-height: calc(100vh - clamp(3rem, 7vh, 6rem));
  min-height: calc(100dvh - clamp(3rem, 7vh, 6rem));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

/* ==========================================================================
   1. LOGO HEADER
   ========================================================================== */
.brand-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(0.75rem, 2vh, 1.75rem) 0;
}

.brand-logo {
  display: block;
  width: clamp(240px, 32vw, 380px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  /* Imagen limpia: sin efectos, sin filtros, sin sombras ni transparencias */
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ==========================================================================
   2. CONTENIDO HERO / EN CONSTRUCCIÓN
   ========================================================================== */
.hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: auto 0;
  padding: clamp(1.5rem, 3vh, 3.5rem) 0;
  animation: fadeInUp 0.9s ease-out 0.15s both;
}

.title-sub {
  display: block;
  font-size: clamp(1.6rem, 4.2vw, 3.1rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: clamp(1px, 0.3vw, 3px);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 0.15em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.title-main {
  display: block;
  font-size: clamp(2.4rem, 7.8vw, 5.4rem);
  font-weight: 900;
  color: var(--color-primary-orange);
  letter-spacing: clamp(0.5px, 0.2vw, 2px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px var(--color-primary-orange-glow);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   3. TARJETA DE CONTACTO (GLASSMORPHISM)
   ========================================================================== */
.contact-container {
  width: 100%;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.contact-card {
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  padding: clamp(18px, 2.5vw, 26px) clamp(12px, 2vw, 24px);
  position: relative;
  overflow: hidden;
}

/* Reflejo de luz sutil en la tarjeta */
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.contact-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 10px 14px;
  transition: transform var(--transition-fast);
}

/* Divisores Verticales en Desktop */
.contact-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}

/* Iconos de Contacto */
.contact-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  color: var(--color-white);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.contact-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.contact-icon.icon-fill {
  fill: currentColor;
}

.contact-icon.icon-stroke {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item:hover .contact-icon-wrapper {
  transform: translateY(-2px) scale(1.08);
  color: var(--color-primary-orange);
}

/* Títulos de Cada Bloque */
.contact-label {
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Enlaces y Texto de Contacto */
.contact-link {
  font-size: clamp(0.88rem, 1.15vw, 1rem);
  font-weight: 400;
  color: var(--color-text-subtle);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  display: inline-block;
  line-height: 1.4;
  word-break: break-word;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--color-white);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  outline: none;
}

/* Estilo para Horario */
.schedule-info {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-weight: 400;
  color: var(--color-text-subtle);
  line-height: 1.35;
}

.schedule-days {
  display: block;
}

.schedule-hours {
  display: block;
}

/* ==========================================================================
   4. ANIMACIONES
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   5. RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

/* Tablets y Pantallas Medianas (<= 940px) */
@media (max-width: 940px) {
  .contact-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 0;
    padding: 20px 14px;
    border-radius: 20px;
  }

  /* Divisores para rejilla 2x2 */
  .contact-item:not(:last-child)::after {
    display: none;
  }

  .contact-item:nth-child(odd)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    display: block;
  }

  .contact-item:nth-child(1),
  .contact-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 14px;
  }
}

/* Teléfonos Móviles (<= 640px) */
@media (max-width: 640px) {
  body {
    padding: clamp(0.75rem, 2vh, 1.25rem) clamp(0.75rem, 3vw, 1.25rem);
    justify-content: space-between;
  }

  .page-wrapper {
    min-height: calc(100vh - clamp(1.5rem, 4vh, 2.5rem));
    min-height: calc(100dvh - clamp(1.5rem, 4vh, 2.5rem));
    gap: 1rem;
  }

  .brand-header {
    padding: 0.5rem 0;
  }

  .brand-logo {
    width: clamp(200px, 65vw, 280px);
  }

  .hero-content {
    padding: 0.5rem 0;
    margin: auto 0;
  }

  .title-sub {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
    letter-spacing: 1.5px;
  }

  .title-main {
    font-size: clamp(2.1rem, 9.5vw, 2.85rem);
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: clamp(0.88rem, 3.5vw, 1.05rem);
    padding: 0 6px;
    line-height: 1.4;
  }

  .contact-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 0;
    padding: 14px 10px;
    border-radius: 18px;
  }

  .contact-item {
    padding: 6px 4px;
  }

  .contact-icon-wrapper {
    width: 32px;
    height: 32px;
    margin-bottom: 3px;
  }

  .contact-icon {
    width: 22px;
    height: 22px;
  }

  .contact-label {
    font-size: 0.82rem;
    margin-bottom: 2px;
  }

  .contact-link {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .schedule-info {
    font-size: 0.74rem;
    line-height: 1.25;
  }
}

/* Teléfonos muy pequeños (<= 360px) */
@media (max-width: 360px) {
  .contact-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 10px;
  }

  .contact-item:nth-child(odd)::after {
    display: none;
  }

  .contact-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 10px;
  }

  .contact-link {
    font-size: 0.85rem;
  }
}

/* Dispositivos con poco alto de pantalla (Landscape móvil) */
@media (max-height: 650px) and (orientation: landscape) {
  body {
    padding: 1rem;
  }
  .page-wrapper {
    min-height: auto;
    gap: 1rem;
  }
  .hero-content {
    padding: 0.5rem 0;
  }
  .brand-logo {
    width: 200px;
  }
}
