/* ========================================
   CENTRO SECO CANUELAS
   Style inspired by ademeure.fr
   ======================================== */

/* ---------- Variables ---------- */
:root {
  --green: #EDC001;
  --green-dark: #EDC001;
  --green-light: #e8f0ec;
  --cream: #faf8f5;
  --white: #ffffff;
  --dark: #1a1a1a;
  --gray-900: #2a2a2a;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-300: #d5d5d5;
  --gray-100: #f2f0ed;
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--green);
  color: var(--white);
}

img { max-width: 100%; height: auto; }

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 100%;
  height: 100%;
  background: var(--white);
  transform-origin: left;
  animation: preloaderFill 1.5s ease-in-out infinite;
}

@keyframes preloaderFill {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- NAVBAR ---------- */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.5s var(--ease);
}

.navbar-custom.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 var(--gray-300);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  transition: color 0.3s ease;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s ease;
}

.navbar-custom.scrolled .logo-text {
  color: var(--green-dark);
}

.navbar-custom.scrolled .logo-sub {
  color: var(--green);
}

.navbar-menu {
  list-style: none;
  display: none;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.navbar-menu .nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-menu .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: left;
}

.navbar-menu .nav-link:hover::after,
.navbar-menu .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-menu .nav-link:hover,
.navbar-menu .nav-link.active {
  color: var(--white);
}

.navbar-custom.scrolled .navbar-menu .nav-link {
  color: var(--gray-700);
}

.navbar-custom.scrolled .navbar-menu .nav-link:hover,
.navbar-custom.scrolled .navbar-menu .nav-link.active {
  color: var(--green-dark);
}

.navbar-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.navbar-cta:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.navbar-cta i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.navbar-cta:hover i {
  transform: translateX(3px);
}

/* Hamburger */
.navbar-hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.navbar-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.35s var(--ease);
  transform-origin: center;
}

.navbar-custom.scrolled .navbar-hamburger span {
  background: var(--dark);
}

.navbar-hamburger.active span {
  background: var(--white) !important;
}

.navbar-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--green-dark);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  text-align: center;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.mobile-nav-links li {
  margin-bottom: 0.25rem;
}

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--white);
  display: inline-block;
  padding: 0.35rem 0;
  position: relative;
  transition: opacity 0.3s ease;
}

.mobile-nav-links a:hover {
  opacity: 0.7;
}

.mobile-nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.mobile-nav-wa:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-info {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

/* Desktop nav */
@media (min-width: 992px) {
  .navbar-menu {
    display: flex;
  }

  .navbar-cta {
    display: inline-flex;
  }

  .navbar-hamburger {
    display: none;
  }
}

/* ========== HERO SPLIT ========== */
.hero-split {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-split-left,
.hero-split-right {
  position: relative;
  flex: 1;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-color: var(--gray-300);
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}

.hero-split-left:hover .hero-img,
.hero-split-right:hover .hero-img {
  transform: scale(1.03);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-left-content,
.hero-right-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 600px;
  animation: heroFadeUp 1s var(--ease) forwards;
}

.hero-secondary-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 500px;
  animation: heroFadeUp 1s var(--ease) 0.2s both;
}

.hero-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  background: var(--green);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  animation: heroFadeUp 1s var(--ease) 0.4s both;
}

.hero-link-btn:hover {
  background: var(--green-dark);
  color: var(--white);
  gap: 1rem;
}

.hero-sqm {
  position: absolute;
  z-index: 2;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.hero-sqm strong {
  color: var(--white);
  font-size: 1.1rem;
}

.hero-sqm-left {
  top: auto;
  bottom: 2.5rem;
  right: 2.5rem;
  text-align: right;
  display: none;
}

.hero-sqm-right {
  top: auto;
  bottom: 2.5rem;
  right: 2.5rem;
  text-align: right;
  display: none;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {
  .hero-split {
    flex-direction: row;
  }

  .hero-split-left,
  .hero-split-right {
    min-height: 100vh;
    min-height: 100svh;
    width: 50%;
  }

  .hero-left-content,
  .hero-right-content {
    padding: 4rem;
  }

  .hero-sqm-left,
  .hero-sqm-right {
    display: block;
  }
}

/* ========== SECTION COMMON ========== */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.5rem;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--green);
}

.section-tag-light {
  color: rgba(255,255,255,0.7);
}

.section-tag-light::before {
  background: rgba(255,255,255,0.4);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.section-heading-light {
  color: var(--white);
}

.section-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
  font-weight: 300;
}

/* ========== INTRO ========== */
.intro-section {
  padding: 6rem 0;
  background: var(--white);
}

.intro-text-block {
  padding-right: 0;
}

.intro-image {
  width: 100%;
  height: 400px;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.25rem;
}

.placeholder-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px dashed var(--gray-300);
  background: rgba(255,255,255,0.7);
}

@media (min-width: 992px) {
  .intro-section {
    padding: 8rem 0;
  }

  .intro-text-block {
    padding-right: 3rem;
  }

  .intro-image {
    height: 480px;
  }
}

/* ========== FEATURES ========== */
.features-section {
  padding: 4rem 0;
  background: var(--cream);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s var(--ease);
}

.feature-icon-wrap i {
  font-size: 1.25rem;
  color: var(--green);
}

.feature-item:hover .feature-icon-wrap {
  background: var(--green);
}

.feature-item:hover .feature-icon-wrap i {
  color: var(--white);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

@media (min-width: 576px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

/* ========== SERVICES SPLIT ========== */
.services-split {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.services-split-img {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.split-bg-img {
  position: absolute;
  inset: 0;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease);
}

.services-split-img:hover .split-bg-img {
  transform: scale(1.02);
}

.services-split-content {
  background: var(--green-dark);
  padding: 3rem 1.5rem;
}

.services-inner {
  max-width: 600px;
}

.services-split-content .section-tag {
  color: rgba(255,255,255,0.6);
}

.services-split-content .section-tag::before {
  background: rgba(255,255,255,0.3);
}

.services-split-content .section-heading {
  color: var(--white);
}

.services-split-content .section-desc {
  color: rgba(255,255,255,0.6);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s var(--ease);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:hover {
  padding-left: 0.5rem;
}

.service-item i {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.1rem;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.service-item:hover i {
  color: var(--white);
}

.service-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.service-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

@media (min-width: 992px) {
  .services-split {
    flex-direction: row;
    min-height: 700px;
  }

  .services-split-img {
    width: 45%;
    height: auto;
  }

  .services-split-content {
    width: 55%;
    padding: 5rem 4rem;
    display: flex;
    align-items: center;
  }
}

/* ========== CTA BTN ========== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--green);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  gap: 1rem;
}

.cta-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.cta-btn:hover i {
  transform: translateX(3px);
}

.cta-btn-light {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.cta-btn-light:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--green-dark);
}

.cta-btn-full {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.85rem;
}

.cta-btn-small {
  padding: 0.65rem 1.5rem;
  font-size: 0.75rem;
}

/* ========== CTA BAND ========== */
.cta-band {
  padding: 3rem 0;
  background: var(--green);
}

.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.cta-band-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.cta-band-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  margin: 0;
}

@media (min-width: 768px) {
  .cta-band-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ========== MODELS - FLIP CARDS ========== */
.models-section {
  padding: 6rem 0;
  background: var(--white);
  overflow: hidden;
}

.models-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.models-header .section-tag {
  padding-left: 0;
}

.models-header .section-tag::before {
  display: none;
}

.models-gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 1.5rem 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--gray-100);
}

.models-gallery::-webkit-scrollbar {
  height: 4px;
}

.models-gallery::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.models-gallery::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 2px;
}

/* FLIP CARD CONTAINER */
.model-card-flip {
  min-width: 320px;
  max-width: 420px;
  height: 580px;
  flex-shrink: 0;
  scroll-snap-align: start;
  perspective: 1000px;
}

.model-card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
  transform-style: preserve-3d;
}

.model-card-flip.flipped .model-card-flip-inner {
  transform: rotateY(180deg);
}

.model-card-flip-front,
.model-card-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--cream);
  border: 1px solid var(--gray-300);
  overflow: hidden;
}

.model-card-flip-front {
  display: flex;
  flex-direction: column;
}

.model-card-flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* REGULAR CARD (sin flip - A tu medida) */
.model-card {
  min-width: 320px;
  max-width: 420px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--cream);
  border: 1px solid var(--gray-300);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.model-card:hover {
  border-color: var(--green);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.model-card-img {
  width: 100%;
  height: 260px;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.model-card:hover .model-card-img {
  opacity: 0.95;
}

.model-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.model-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
}

.model-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--dark);
  margin: 0.5rem 0;
}

.model-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1rem;
  flex: 1;
}

.model-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.model-link:hover {
  color: var(--green-dark);
  gap: 0.75rem;
}

.flip-trigger {
  margin-top: auto;
}

/* BACK SIDE STYLES */
.flip-back-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s var(--ease);
  font-size: 0.9rem;
}

.flip-back-btn:hover {
  background: var(--green-dark);
  transform: rotate(90deg);
}

.model-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

.model-gallery-item {
  width: 100%;
  height: 100%;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  position: relative;
}

.model-gallery-item:hover {
  opacity: 0.9;
}

.model-gallery-footer {
  padding: 1.5rem;
  background: var(--cream);
  border-top: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.model-gallery-footer h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--dark);
  margin: 0;
}

/* RESPONSIVE GALLERY GRID */
@media (min-width: 480px) {
  .model-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
  }

  .model-gallery-item:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .models-gallery {
    padding: 0 calc((100vw - 1140px) / 2) 2rem;
  }

  .model-card,
  .model-card-flip {
    min-width: 380px;
  }

  .model-card-flip {
    height: 600px;
  }
}

/* ========== MATERIALES BAND ========== */
.materials-band {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.materials-band-bg {
  position: absolute;
  inset: 0;
}

.materials-bg-img {
  position: absolute;
  inset: 0;
  background-color: var(--gray-900);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.materials-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.85);
}

.materials-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.material-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s var(--ease);
}

.material-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.material-card i {
  font-size: 1.25rem;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 0.1rem;
  background: rgba(45,94,74,0.2);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.material-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.material-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  font-weight: 300;
  margin: 0;
}

@media (min-width: 992px) {
  .materials-band {
    padding: 8rem 0;
  }
}

/* ========== PROCESS ========== */
.process-section {
  padding: 6rem 0;
  background: var(--cream);
}

.process-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.process-header .section-tag {
  padding-left: 0;
}

.process-header .section-tag::before {
  display: none;
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gray-300);
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--green);
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.3s var(--ease);
}

.process-step:hover .step-number {
  background: var(--green);
  color: var(--white);
}

.step-content h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

@media (min-width: 992px) {
  .process-section {
    padding: 8rem 0;
  }
}

/* ========== WHY SECTION ========== */
.why-section {
  padding: 6rem 0;
  background: var(--white);
}

.why-card {
  padding: 2rem;
  background: var(--cream);
  border: 1px solid var(--gray-300);
  height: 100%;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--green);
  transition: height 0.4s var(--ease);
}

.why-card:hover::before {
  height: 100%;
}

.why-card:hover {
  border-color: var(--green);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transform: translateY(-3px);
}

.why-card-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.why-card:hover .why-card-number {
  color: var(--green);
}

.why-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

@media (min-width: 992px) {
  .why-section {
    padding: 8rem 0;
  }
}

/* ========== CONTACT ========== */
.contact-section {
  padding: 6rem 0;
  background: var(--cream);
}

.contact-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-header .section-tag {
  padding-left: 0;
}

.contact-header .section-tag::before {
  display: none;
}

/* Social grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  text-align: center;
  transition: all 0.4s var(--ease);
  text-decoration: none;
}

.social-card i {
  font-size: 1.75rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.social-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.social-card span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.social-card:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.social-card:hover i,
.social-card:hover strong {
  color: var(--white);
}

.social-card:hover span {
  color: rgba(255,255,255,0.6);
}

@media (min-width: 768px) {
  .social-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Contact form block */
.contact-form-block {
  background: var(--white);
  border: 1px solid var(--gray-300);
  overflow: hidden;
}

.contact-form-info {
  background: var(--green-dark);
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.contact-form-info p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.contact-info-item i {
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  width: 20px;
  flex-shrink: 0;
}

.contact-form-area {
  padding: 2.5rem;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.custom-input {
  border: 1px solid var(--gray-300);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,94,74,0.1);
  outline: none;
  background: var(--white);
}

.custom-input::placeholder {
  color: var(--gray-500);
  font-weight: 300;
}

.form-select.custom-input {
  cursor: pointer;
}

@media (min-width: 992px) {
  .contact-section {
    padding: 8rem 0;
  }

  .contact-form-info {
    padding: 3rem;
  }

  .contact-form-area {
    padding: 3rem;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
}

.footer-logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--green);
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.footer-bottom a {
  color: var(--green);
  font-weight: 500;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.6);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  z-index: 900;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .hero-left-content,
  .hero-right-content {
    padding: 6rem 1.5rem 2.5rem;
  }
}

@media (max-width: 767px) {
  .hero-split-left,
  .hero-split-right {
    min-height: 55vh;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .social-card {
    padding: 1.25rem 0.5rem;
  }

  .social-card i {
    font-size: 1.35rem;
  }

  .social-card strong {
    font-size: 0.8rem;
  }

  .social-card span {
    font-size: 0.65rem;
  }

  .contact-form-info {
    padding: 2rem 1.5rem;
  }

  .contact-form-area {
    padding: 2rem 1.5rem;
  }

  .model-card-flip,
  .model-card {
    min-width: 290px;
  }

  .model-card-flip {
    height: 560px;
  }
}

@media (max-width: 480px) {
  .model-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }

  .model-gallery-item:first-child {
    grid-column: auto;
  }
}

/* ========== MODEL DETAIL PAGES ========== */

/* Hero */
.model-detail-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.model-detail-hero-bg {
  position: absolute;
  inset: 0;
}

.model-detail-hero-img {
  position: absolute;
  inset: 0;
  background-color: var(--gray-300);
  background-size: cover;
  background-position: center;
}

.model-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.model-detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 4rem;
  max-width: 700px;
}

.model-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.model-detail-back:hover {
  color: var(--white);
  gap: 0.75rem;
}

.model-detail-back i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.model-detail-back:hover i {
  transform: translateX(-3px);
}

.model-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.model-detail-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-weight: 300;
  max-width: 550px;
}

/* Info Section */
.model-detail-info {
  padding: 6rem 0;
  background: var(--white);
}

.model-detail-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--gray-300);
  transition: all 0.3s var(--ease);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item:hover {
  padding-left: 0.5rem;
}

.spec-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.spec-icon i {
  font-size: 1.1rem;
  color: var(--green);
  transition: color 0.3s ease;
}

.spec-item:hover .spec-icon {
  background: var(--green);
}

.spec-item:hover .spec-icon i {
  color: var(--white);
}

.spec-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.1rem;
}

.spec-item span {
  font-size: 0.85rem;
  color: var(--gray-700);
  font-weight: 300;
}

/* Gallery Section */
.model-detail-gallery {
  padding: 6rem 0;
  background: var(--cream);
}

.model-detail-gallery-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.model-detail-gallery-header .section-tag {
  padding-left: 0;
}

.model-detail-gallery-header .section-tag::before {
  display: none;
}

/* Gallery Categories (by m2) */
.gallery-category {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.gallery-category:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.gallery-category-header {
  margin-bottom: 1.75rem;
}

.gallery-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.85rem;
}

.gallery-category-tag i {
  font-size: 0.9rem;
}

.gallery-category-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.gallery-category-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

.model-gallery-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  height: 280px;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.gallery-item-large {
  grid-column: span 2;
  height: 380px;
}

.gallery-item-label {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
}

.gallery-item:hover .gallery-item-label {
  opacity: 1;
  transform: translateY(0);
}

/* Features Section */
.model-detail-features {
  padding: 6rem 0;
  background: var(--white);
}

.model-feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--cream);
  border: 1px solid var(--gray-300);
  height: 100%;
  transition: all 0.4s var(--ease);
}

.model-feature-card:hover {
  border-color: var(--green);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.model-feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all 0.3s var(--ease);
}

.model-feature-icon i {
  font-size: 1.5rem;
  color: var(--green);
  transition: color 0.3s ease;
}

.model-feature-card:hover .model-feature-icon {
  background: var(--green);
}

.model-feature-card:hover .model-feature-icon i {
  color: var(--white);
}

.model-feature-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.model-feature-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

/* Responsive */
@media (min-width: 992px) {
  .model-detail-hero {
    min-height: 80vh;
  }

  .model-detail-hero-content {
    padding: 4rem 0 5rem;
  }

  .model-detail-info {
    padding: 8rem 0;
  }

  .model-detail-gallery {
    padding: 8rem 0;
  }

  .model-detail-features {
    padding: 8rem 0;
  }

  .model-gallery-full {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item-large {
    grid-column: span 2;
  }

  .gallery-item {
    height: 320px;
  }

  .gallery-item-large {
    height: 420px;
  }
}

@media (max-width: 575px) {
  .model-gallery-full {
    grid-template-columns: 1fr;
  }

  .gallery-item-large {
    grid-column: span 1;
  }

  .gallery-item {
    height: 220px;
  }

  .gallery-item-large {
    height: 280px;
  }

  .model-detail-hero {
    min-height: 60vh;
  }

  .model-detail-hero-content {
    padding: 6rem 0 3rem;
  }

  .gallery-category {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .gallery-category-title {
    font-size: 1.3rem;
  }
}
