/* ==========================================================================
   ESTILOS GENERALES - INSPIRADOS EN LA TARJETA REFORMAS BRAHIAN FERNANDO
   ========================================================================== */

:root {
  --navy: #1B2533;
  --navy-dark: #121923;
  --navy-light: #263447;
  --gold: #C59B6D;
  --gold-light: #D6B38B;
  --gold-dark: #A67E52;
  --bg-light: #F4F5F7;
  --white: #FFFFFF;
  --text-dark: #1E2631;
  --text-muted: #5A6577;
  --border-color: #E2E6EC;
  --shadow-sm: 0 4px 12px rgba(27, 37, 51, 0.08);
  --shadow-md: 0 10px 28px rgba(27, 37, 51, 0.14);
  --transition: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  background-color: var(--navy-dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(197, 155, 109, 0.25);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E5E9F0;
  transition: var(--transition);
}

.topbar-contact a:hover {
  color: var(--gold);
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-socials a {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.topbar-socials a:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 900;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-sub-top {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--navy);
}

.brand-main {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--navy);
}

.brand-sub-bottom {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  border-radius: 6px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--navy);
  color: var(--white);
}

.nav-link.active {
  border-bottom: 3px solid var(--gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3rem;
}

main {
  flex: 1;
}

.page-section {
  display: none;
  animation: fadeIn 0.35s ease;
}

.page-section.active {
  display: block;
}

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

.hero-card-style {
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 540px;
  align-items: stretch;
}

.hero-left {
  padding: 60px 40px 60px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #EDEFF2;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(197, 155, 109, 0.18);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
  width: fit-content;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--gold-dark);
}

.hero-slogan {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--gold);
  max-width: 520px;
}

.hero-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}

.hero-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}

.btn-primary:hover {
  background-color: var(--navy-light);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--white);
}

.hero-right {
  position: relative;
  background-color: var(--navy);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  display: flex;
  flex-direction: column;
}

.hero-right-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-services-ribbon {
  position: absolute;
  bottom: 30px;
  left: 0;
  background-color: var(--gold);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 2px;
  padding: 12px 32px 12px 45px;
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.values-bar {
  background-color: var(--navy);
  color: var(--white);
  padding: 16px 0;
  border-top: 3px solid var(--gold);
}

.values-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
}

.values-list li {
  font-weight: 600;
  letter-spacing: 3px;
  font-size: 0.9rem;
  color: #E8ECEF;
  position: relative;
}

.values-list li:not(:last-child)::after {
  content: "|";
  color: var(--gold);
  margin-left: 35px;
}

.section-padding {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  background-color: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 6px 18px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-radius: 3px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 28px;
}

.service-card {
  background-color: var(--navy);
  color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-bottom: 3px solid var(--gold);
}

.service-card-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.service-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(197, 155, 109, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
}

.service-card-desc {
  color: #CBD5E1;
  font-size: 0.94rem;
  margin-bottom: 20px;
  flex: 1;
}

.service-card-link {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card-link:hover {
  color: var(--gold-light);
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 9px 20px;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--gold);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.work-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.work-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.work-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.work-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-img-wrapper img {
  transform: scale(1.06);
}

.work-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

.work-info {
  padding: 22px;
}

.work-location {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.work-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.work-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image-box {
  position: relative;
}

.about-image-box img {
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border-bottom: 6px solid var(--gold);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat-box {
  background: var(--navy);
  color: var(--white);
  padding: 18px 12px;
  border-radius: 8px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: #E2E8F0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-card-dark {
  background: var(--navy);
  color: var(--white);
  padding: 36px;
  border-radius: 10px;
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(197, 155, 109, 0.16);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-box {
  background: var(--white);
  padding: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-dark);
}

.map-container {
  margin-top: 45px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--navy);
}

.map-container iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.social-banner {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 50px 0;
  text-align: center;
}

.social-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  min-width: 210px;
  justify-content: center;
  border-bottom: 3px solid var(--gold);
  transition: var(--transition);
}

.social-pill:hover {
  transform: translateY(-4px);
  background: var(--navy-light);
}

.legal-box {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.legal-box h3 {
  color: var(--navy);
  margin: 24px 0 10px;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

.legal-box p, .legal-box ul {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal-box ul {
  padding-left: 22px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  color: var(--white);
  padding: 18px 24px;
  z-index: 1100;
  border-top: 3px solid var(--gold);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
  display: none;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.88rem;
  color: #E2E8F0;
  max-width: 760px;
}

.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1000;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: var(--transition);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-whatsapp {
  background-color: #25D366;
}

.float-call {
  background-color: var(--navy);
  border: 2px solid var(--gold);
}

.float-tooltip {
  position: absolute;
  right: 70px;
  background: var(--navy-dark);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
}

.footer {
  background-color: var(--navy-dark);
  color: #CBD5E1;
  padding-top: 55px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-left {
    padding: 45px 24px;
  }
  .hero-right {
    clip-path: none;
    min-height: 300px;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .values-list li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    border-top: 2px solid var(--gold);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: center;
  }
  .hero-title {
    font-size: 2rem;
  }
  .floating-actions {
    right: 14px;
    bottom: 16px;
  }
  .float-btn {
    width: 52px;
    height: 52px;
  }
}
