@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --dark: #1a2832;
  --steel: #2d4a56;
  --steel-light: #3b636f;
  --accent: #c9a84c;
  --accent-dark: #a8893a;
  --bg: #f4f3ef;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-muted: #6b7280;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 40, 50, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--white);
  letter-spacing: 4px;
  margin: 0;
  cursor: pointer;
  line-height: 1.1;
}

.logo span { color: var(--accent); }

.logo-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 500;
  opacity: 0.85;
  font-family: 'Inter', sans-serif;
  margin-top: 1px;
}

nav { display: flex; gap: 4px; }

nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 2px;
}

nav a:hover {
  color: var(--white);
  background: rgba(201,168,76,0.1);
}

nav a:hover::after { width: 55%; }

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--white);
  background: none;
  border: none;
  padding: 4px 6px;
  line-height: 1;
}

/* ===== HERO ===== */
.portada-contenedor {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  max-height: 820px;
  overflow: hidden;
}

.portada {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.06);
  animation: heroZoom 9s ease forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.portada-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26,40,50,0.35) 0%,
    rgba(26,40,50,0.55) 45%,
    rgba(26,40,50,0.78) 100%
  );
}

.portada-contenido {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: white;
}

.portada-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  margin-bottom: 18px;
}

.portada-titulo {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: 8px;
  margin: 0 0 18px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.65s forwards;
  text-shadow: 0 4px 32px rgba(0,0,0,0.35);
}

.portada-subtitulo {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 38px;
}

.portada-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.1s forwards;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
  border: 2px solid var(--accent);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.38);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}

.portada-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

.portada-scroll::before {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

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

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--dark);
  padding: 32px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: 'Raleway', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
  display: block;
}

/* ===== SECCIONES BASE ===== */
section {
  padding: 90px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  background: var(--white);
}

.section-alt-2 {
  background: #eceae4;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 40px;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 16px;
  line-height: 1.2;
}

h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  margin-top: 14px;
  border-radius: 2px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ===== NOSOTROS ===== */
.nosotros-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.texto-nosotros { flex: 1 1 460px; }

.texto-nosotros p {
  font-size: 1.03rem;
  line-height: 1.85;
  color: #4a4a4a;
  margin-bottom: 1.1rem;
}

.imagen-nosotros {
  flex: 1 1 360px;
  position: relative;
}

.imagen-nosotros::before {
  content: '';
  position: absolute;
  top: -14px;
  right: -14px;
  width: 100%;
  height: 100%;
  border: 2.5px solid var(--accent);
  border-radius: var(--radius);
  z-index: 0;
  opacity: 0.7;
}

.imagen-nosotros img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}

.imagen-nosotros:hover img {
  transform: translate(-4px, -4px);
}

strong {
  color: var(--steel);
  font-weight: 600;
}

/* ===== SERVICIOS ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover::before { transform: scaleX(1); }

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--dark), var(--steel));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 0.93rem;
  margin: 0;
}

/* ===== PROYECTOS ===== */
.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.proyecto {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.proyecto:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.proyecto-img-wrap {
  overflow: hidden;
  height: 210px;
  position: relative;
}

.proyecto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.proyecto:hover img { transform: scale(1.08); }

.proyecto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,40,50,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.proyecto:hover .proyecto-overlay { opacity: 1; }

.proyecto-overlay-icon {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.proyecto p {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.proyectos-cta {
  text-align: center;
  margin-top: 44px;
}

/* ===== CONTACTO ===== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-top: 40px;
  align-items: start;
}

.contacto-info h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px;
}

.contacto-info > p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.contacto-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contacto-item-icon {
  width: 42px;
  height: 42px;
  background: var(--steel);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  color: white;
}

.contacto-item-text strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 600;
}

.contacto-item-text span {
  font-size: 0.95rem;
  color: var(--text);
}

/* Floating label form */
.form-group {
  position: relative;
  margin-bottom: 22px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 16px 8px;
  border: 2px solid #dddbd5;
  border-radius: 10px;
  font-size: 0.97rem;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
  margin: 0;
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(45,74,86,0.1);
}

.form-group label {
  position: absolute;
  top: 13px;
  left: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.22s ease;
  background: var(--white);
  padding: 0 4px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -9px;
  left: 12px;
  font-size: 0.75rem;
  color: var(--steel);
  font-weight: 600;
  letter-spacing: 0.3px;
}

button[type="submit"] {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 15px 36px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.4px;
  width: 100%;
}

button[type="submit"]:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.32);
}

#mensaje-estado {
  margin-top: 14px;
  font-size: 0.92rem;
  text-align: center;
  color: var(--steel);
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: white;
  padding: 56px 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  margin-bottom: 44px;
}

.footer-logo {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  color: white;
  margin-bottom: 3px;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  max-width: 240px;
  line-height: 1.75;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ===== INSTAGRAM FLOTANTE ===== */
.insta-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 13px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-float:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.insta-icon {
  width: 27px;
  height: 27px;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .navbar { padding: 12px 20px; flex-wrap: wrap; }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(26,40,50,0.98);
    gap: 0;
    margin-top: 10px;
  }

  nav.mostrar { display: flex; }

  nav a {
    padding: 13px 24px;
    border-radius: 0;
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  nav a::after { display: none; }

  .menu-toggle { display: block; }

  .portada-titulo { letter-spacing: 5px; }

  section { padding: 60px 20px; }

  .section-inner { padding: 60px 20px; }

  .stats-bar { padding: 24px 20px; }
  .stat-number { font-size: 2rem; }

  .nosotros-contenido { gap: 36px; }
  .imagen-nosotros::before { display: none; }

  .portada-ctas { flex-direction: column; align-items: center; }

  footer { padding: 44px 20px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-top { gap: 32px; }
}

@media (max-width: 480px) {
  .grid-proyectos { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  h2 { font-size: 1.7rem; }
}
