/* ============================================================
   Petronas — Landing Page (index.html)
   ============================================================ */

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--header-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: .02em; }
.brand img { height: 40px; width: auto; }
.brand .name { font-size: 1.12rem; color: var(--text); line-height: 1; }
.brand .name small { display: block; font-size: .62rem; letter-spacing: .28em; color: var(--gold-500); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-weight: 600; font-size: .93rem; color: var(--text-soft); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold-500); transition: width var(--dur); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .8rem; }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); display: grid; place-items: center;
  transition: all var(--dur);
}
.theme-toggle:hover { border-color: var(--gold-500); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* Mobile menu */
.hamburger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); }
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg); z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; text-align: center;
  padding: 2rem; transform: translateX(100%); transition: transform .35s ease;
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.mobile-menu .close { position: absolute; top: 20px; right: 20px; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 72px; }
.hero-inner { max-width: 760px; padding: 60px 0; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); margin-bottom: 1.3rem; }
.hero h1 .gold { background: linear-gradient(120deg, var(--gold-300), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .hero h1 .gold { background: linear-gradient(120deg, var(--gold-500), var(--gold-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.16rem; color: var(--text-soft); max-width: 560px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats .stat strong { font-size: 2rem; color: var(--gold-500); display: block; }
[data-theme="light"] .hero-stats .stat strong { color: var(--gold-600); }
.hero-stats .stat span { color: var(--text-soft); font-size: .9rem; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--muted); animation: float 2s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ---------- Servicios ---------- */
.servicios-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.serv-card { padding: 2rem; }
.serv-card .ico { width: 60px; height: 60px; border-radius: 14px; background: linear-gradient(135deg, rgba(201,162,39,.18), rgba(201,162,39,.08)); display: grid; place-items: center; margin-bottom: 1rem; color: var(--gold-500); }
[data-theme="light"] .serv-card .ico { color: var(--gold-600); }
.serv-card .ico svg { width: 30px; height: 30px; }
.serv-card h3 { margin-bottom: .5rem; font-size: 1.18rem; }
.serv-card p { color: var(--text-soft); font-size: .95rem; }

/* ---------- Propiedades / Carrusel ---------- */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.carousel {
  position: relative; overflow: hidden; border-radius: var(--radius);
}
.carousel-track {
  display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.prop-card { min-width: 100%; padding: .5rem; }
.prop-card-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.prop-card .img { position: relative; min-height: 360px; background-size: cover; background-position: center; }
.prop-card .img .badge { position: absolute; top: 16px; left: 16px; }
.prop-card .img .price-badge { position: absolute; bottom: 16px; left: 16px; background: rgba(8,32,36,.86); color: #fff; padding: .5rem .9rem; border-radius: 10px; font-weight: 800; font-size: 1.05rem; backdrop-filter: blur(4px); }
.prop-card .body { padding: 2rem; display: flex; flex-direction: column; }
.prop-card .body .code { color: var(--muted); font-size: .82rem; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.prop-card h3 { font-size: 1.5rem; margin: .4rem 0 .6rem; }
.prop-card .loc { color: var(--text-soft); display: flex; gap: .4rem; align-items: center; font-size: .92rem; margin-bottom: 1rem; }
.prop-card .loc svg { width: 1em; height: 1em; color: var(--gold-500); flex: none; }
[data-theme="light"] .prop-card .loc svg { color: var(--gold-600); }
.prop-card .attrs { display: flex; gap: 1.2rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.prop-card .attrs span { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-soft); font-size: .9rem; font-weight: 600; }
.prop-card .attrs svg { width: 1.1em; height: 1.1em; color: var(--gold-500); }
[data-theme="light"] .prop-card .attrs svg { color: var(--gold-600); }
.prop-card .desc { color: var(--text-soft); font-size: .95rem; margin-bottom: 1.4rem; }
.carousel-nav { display: flex; gap: .6rem; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all var(--dur); border: none; }
.dot.active { background: var(--gold-500); width: 26px; border-radius: 999px; }
.car-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; transition: all var(--dur); }
.car-btn:hover { border-color: var(--gold-500); color: var(--gold-500); }
.car-btn svg { width: 20px; height: 20px; }

/* ---------- Detalle modal (estilos compartidos en styles.css) ---------- */
.detail-hero { position: relative; height: 320px; background-size: cover; background-position: center; }
.detail-hero .price-badge { position: absolute; bottom: 18px; left: 18px; background: rgba(8,32,36,.86); color: #fff; padding: .6rem 1.2rem; border-radius: 12px; font-weight: 800; font-size: 1.3rem; }
.detail-hero .badge { position: absolute; top: 18px; left: 18px; }
.detail-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: 1rem 1.4rem; }
.detail-gallery img { border-radius: 8px; cursor: pointer; object-fit: cover; height: 90px; width: 100%; border: 2px solid var(--border); transition: border var(--dur); }
.detail-gallery img.active, .detail-gallery img:hover { border-color: var(--gold-500); }
.detail-body { padding: 1.6rem 1.4rem 2rem; }
.detail-body h2 { font-size: 1.8rem; margin-bottom: .3rem; }
.detail-body .code { color: var(--muted); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.detail-body .loc { color: var(--text-soft); margin: .6rem 0; display: flex; gap: .4rem; align-items: center; }
.detail-body .loc svg { width: 1em; height: 1em; color: var(--gold-500); }
[data-theme="light"] .detail-body .loc svg { color: var(--gold-600); }
.detail-features { display: grid; grid-template-columns: repeat(4,1fr); gap: .8rem; margin: 1.5rem 0; }
.detail-features .feat { background: var(--surface-2); padding: 1rem; border-radius: var(--radius-sm); text-align: center; }
.detail-features .feat svg { width: 24px; height: 24px; color: var(--gold-500); margin: 0 auto .4rem; }
[data-theme="light"] .detail-features .feat svg { color: var(--gold-600); }
.detail-features .feat b { display: block; font-size: 1.15rem; }
.detail-features .feat span { color: var(--muted); font-size: .8rem; }
.detail-body p.full { color: var(--text-soft); margin-bottom: 1.5rem; }

/* ---------- Testimonios ---------- */
.tes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.tes-card { padding: 1.8rem; }
.tes-card .stars { color: var(--gold-500); margin-bottom: .8rem; letter-spacing: .1em; }
[data-theme="light"] .tes-card .stars { color: var(--gold-600); }
.tes-card p.quote { color: var(--text-soft); font-size: 1rem; margin-bottom: 1.2rem; }
.tes-card .author { display: flex; align-items: center; gap: .8rem; }
.tes-card .author .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--petro-700), var(--petro-600)); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.tes-card .author b { display: block; }
.tes-card .author span { color: var(--muted); font-size: .85rem; }

/* ---------- Equipo carrusel ---------- */
.team-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.team-slide { min-width: 100%; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; padding: .5rem; }
.team-card { text-align: center; padding: 1.6rem; }
.team-card .photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--gold-500); box-shadow: var(--shadow); }
.team-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-card .role { color: var(--gold-500); font-weight: 700; font-size: .85rem; margin-bottom: .7rem; }
[data-theme="light"] .team-card .role { color: var(--gold-600); }
.team-card p { color: var(--text-soft); font-size: .9rem; margin-bottom: 1rem; }
.team-social { display: flex; justify-content: center; gap: .6rem; }
.team-social a { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; color: var(--text-soft); transition: all var(--dur); }
.team-social a:hover { border-color: var(--gold-500); color: var(--gold-500); }
.team-social svg { width: 16px; height: 16px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card .img { height: 200px; background-size: cover; background-position: center; position: relative; }
.blog-card .img .badge { position: absolute; top: 14px; left: 14px; }
.blog-card .body { padding: 1.4rem; }
.blog-card .meta { color: var(--muted); font-size: .82rem; margin-bottom: .6rem; display: flex; gap: .8rem; }
.blog-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.blog-card p { color: var(--text-soft); font-size: .92rem; margin-bottom: .8rem; }
.blog-card .read { color: var(--gold-500); font-weight: 700; font-size: .9rem; }
[data-theme="light"] .blog-card .read { color: var(--gold-600); }

/* ---------- Contacto ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--gold-500); flex: none; }
[data-theme="light"] .contact-item .ico { color: var(--gold-600); }
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item b { display: block; }
.contact-item a, .contact-item span { color: var(--text-soft); }
.social-row { display: flex; gap: .7rem; }
.social-row a { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text-soft); transition: all var(--dur); }
.social-row a:hover { color: #fff; background: var(--gold-500); transform: translateY(-3px); }
.social-row svg { width: 20px; height: 20px; }
.contact-form { background: var(--surface); border: 1px solid var(--border); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-note { font-size: .85rem; color: var(--muted); }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; color: #fff; box-shadow: 0 10px 30px rgba(37,211,102,.5);
  transition: transform var(--dur);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petro-900); color: #cfe0e3; padding: 60px 0 24px; }
[data-theme="dark"] .site-footer { background: #06151 8; background: #061518; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.site-footer a, .site-footer li { color: #a9c1c5; font-size: .92rem; margin-bottom: .5rem; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .brand .name { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8aa4a8; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120%);
  background: var(--petro-800); color: #fff; padding: .9rem 1.4rem; border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 200; font-weight: 600; transition: transform .35s ease;
  border-left: 4px solid var(--gold-500); max-width: 90%;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive landing ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: grid; place-items: center; }
  .prop-card-inner { grid-template-columns: 1fr; }
  .prop-card .img { min-height: 260px; }
  .tes-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .team-slide { grid-template-columns: repeat(2,1fr); }
  .detail-features { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .hero-stats { gap: 1.6rem; }
  .team-slide { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: repeat(2,1fr); }
}
