/* =============================================
   CARVEL S.A.S. — Stylesheet
   carvelsas.com
   ============================================= */

/* ── VARIABLES ── */
:root {
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark:  #9A7A2E;
  --black:      #0A0A0A;
  --dark:       #111111;
  --dark2:      #1A1A1A;
  --dark3:      #222222;
  --gray:       #8A8A8A;
  --light:      #F5F0E8;
  --white:      #FFFFFF;
}

/* ── RESET & BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Comfortaa', sans-serif;
  background: var(--black);
  color: var(--light);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: padding 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(1.1);
  forced-color-adjust: none;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.nav-logo-text .brand-sub {
  font-size: 0.6rem;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover        { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 8px 20px !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.2em !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

.nav-cta::after { display: none !important; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,168,76,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(201,168,76,0.4);
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  transition: all 0.3s;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.25);
}

.btn-whatsapp svg {
  width: 20px; height: 20px;
  fill: white;
}

/* ── SECTION BASE ── */
section { padding: 100px 5%; }

.section-header { margin-bottom: 64px; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
}

.section-tag.centered { justify-content: center; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 20px;
}

.divider.centered { margin: 20px auto 0; }

.section-header.centered { text-align: center; max-width: 600px; margin: 0 auto 64px; }

/* ── HERO ── */
#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 5% 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(201,168,76,0.04) 0%, transparent 50%),
    linear-gradient(135deg, #0A0A0A 0%, #111111 50%, #0d0d0d 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: 32px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  animation: fadeInUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 8px;
  animation: fadeInUp 0.8s 0.15s ease both;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gray);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s 0.25s ease both;
}

.hero-desc {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245,240,232,0.65);
  max-width: 520px;
  margin-bottom: 44px;
  animation: fadeInUp 0.8s 0.35s ease both;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.45s ease both;
}

.hero-stats {
  position: absolute;
  right: 8%; top: 30%;
  transform: translateY(-30%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInRight 1s 0.5s ease both;
}

.stat-item {
  text-align: center;
  padding: 16px 24px;
  border: 1px solid rgba(201,168,76,0.15);
  background: rgba(201,168,76,0.03);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-top: 6px;
}

/* ── NOSOTROS ── */
#nosotros { background: var(--dark); }

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

.nosotros-img-side {
  position: relative;
  width: 100%;
  min-height: 500px;
}

.nosotros-foto {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
}

.nosotros-foto img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.85) sepia(0.2);
  transition: filter 0.4s ease;
}

.nosotros-foto:hover img {
  filter: brightness(0.95) sepia(0.1);
}

.nosotros-logo-display {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: var(--dark2);
  border: 1px solid rgba(201,168,76,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nosotros-logo-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.nosotros-logo-display img {
  width: 75%;
  object-fit: contain;
  filter: brightness(1.1) drop-shadow(0 0 30px rgba(201,168,76,0.2));
  position: relative;
  z-index: 1;
}

.nosotros-corner {
  position: absolute;
  width: 30px; height: 30px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
}

.nosotros-corner.tl { top: -8px; left: -8px; border-top-width: 2px; border-left-width: 2px; }
.nosotros-corner.tr { top: -8px; right: -8px; border-top-width: 2px; border-right-width: 2px; }
.nosotros-corner.bl { bottom: -8px; left: -8px; border-bottom-width: 2px; border-left-width: 2px; }
.nosotros-corner.br { bottom: -8px; right: -8px; border-bottom-width: 2px; border-right-width: 2px; }

.years-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--black);
}

.years-badge .years-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}

.years-badge .years-text {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nosotros-text p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(245,240,232,0.7);
  margin-bottom: 20px;
  text-align: justify;
}

.nosotros-text p strong {
  color: var(--gold);
  font-weight: 500;
}

.nosotros-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.value-item {
  padding: 16px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.04);
}

.value-item h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.value-item p {
  font-size: 0.78rem !important;
  font-weight: 300 !important;
  color: var(--gray) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ── SERVICIOS ── */
#servicios { background: var(--black); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(201,168,76,0.08);
}

.servicio-card {
  background: var(--dark);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: default;
}

.servicio-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.servicio-card:hover::before  { transform: scaleX(1); }
.servicio-card:hover          { background: var(--dark2); transform: translateY(-4px); }

.servicio-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: var(--gold);
  transition: all 0.4s;
}

.servicio-card:hover .servicio-icon {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.servicio-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.servicio-card p {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray);
}

.servicio-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201,168,76,0.18);
  line-height: 1;
  pointer-events: none;
}

/* ── POR QUÉ CARVEL ── */
#por-que { background: var(--dark); }

.porque-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.porque-left p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(245,240,232,0.65);
  margin-bottom: 16px;
}

.diferenciadores {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dif-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid rgba(201,168,76,0.1);
  background: rgba(201,168,76,0.02);
  transition: all 0.3s;
}

.dif-item:hover {
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.05);
}

.dif-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--black);
}

.dif-text h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dif-text p {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
}

/* ── PROCESO ── */
#proceso { background: var(--black); }

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.proceso-steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
  opacity: 0.3;
}

.paso {
  padding: 0 24px;
  text-align: center;
  position: relative;
}

.paso-num {
  width: 72px; height: 72px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  background: var(--black);
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}

.paso:hover .paso-num {
  background: var(--gold);
  color: var(--black);
}

.paso h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}

.paso p {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
}

/* ── SECTORES ── */
#sectores { background: var(--dark); }

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: rgba(201,168,76,0.08);
  margin-top: 48px;
}

.sector-item {
  background: var(--dark);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s;
}

.sector-item:hover {
  background: var(--dark2);
  transform: translateY(-3px);
}

.sector-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  color: var(--gold);
  stroke: var(--gold);
}

.sector-item h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}

/* ── CONTACTO ── */
#contacto { background: var(--black); }

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contacto-info p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(245,240,232,0.65);
  margin-bottom: 32px;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacto-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(201,168,76,0.03);
}

.detail-icon {
  width: 40px; height: 40px;
  background: rgba(201,168,76,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--gold);
}

.detail-content .detail-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.detail-content .detail-value {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--light);
}

.cta-box {
  padding: 40px;
  border: 1px solid rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.03);
  text-align: center;
}

.cta-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── FOOTER ── */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 50px 5% 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  margin-bottom: 24px;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .brand-name { font-size: 1.8rem; }

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 8px;
}

.footer-links h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links ul  { list-style: none; }
.footer-links li  { margin-bottom: 8px; }

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 300;
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(138,138,138,0.6);
}

.footer-bottom p span { color: var(--gold); }

.footer-legal {
  font-size: 0.66rem;
  font-weight: 300;
  color: rgba(138,138,138,0.4);
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-tooltip {
  background: var(--dark2);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--light);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s;
  pointer-events: none;
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.wa-btn {
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: all 0.3s;
  animation: pulse 2.5s infinite;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

.wa-btn svg {
  width: 28px; height: 28px;
  fill: white;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 12px rgba(37,211,102,0.08); }
}

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

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links                            { display: none; }
  .hero-stats                           { display: none; }
  .nosotros-grid, .porque-grid,
  .contacto-wrapper                     { grid-template-columns: 1fr; gap: 48px; }
  .servicios-grid                       { grid-template-columns: 1fr 1fr; }
  .proceso-steps                        { grid-template-columns: 1fr 1fr; gap: 40px; }
  .proceso-steps::before                { display: none; }
  .sectores-grid                        { grid-template-columns: repeat(3, 1fr); }
  .hero-content                         { max-width: 100%; }
}

@media (max-width: 600px) {
  .servicios-grid   { grid-template-columns: 1fr; }
  .proceso-steps    { grid-template-columns: 1fr; }
  .sectores-grid    { grid-template-columns: 1fr 1fr; }
  .nosotros-values  { grid-template-columns: 1fr; }
}