* {
  box-sizing: border-box;
}

:root {
  --black: #111111;
  --white: #ffffff;
  --soft: #f5f5f3;
  --gray: #6f6f6f;
  --border: #deded9;
  --accent: #f05a0b;
  --accent-dark: #c94700;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--black);
  background: #ffffff;
  line-height: 1.6;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  }
.logo {
    width: 180px;
    height: 55px;
    object-fit: contain;
    background: white;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--black) 55%, var(--accent) 55%);
  font-weight: 800;
  font-size: 24px;
}

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

.brand-text strong {
  font-size: 19px;
  letter-spacing: .04em;
}

.brand-text small {
  font-size: 9px;
  letter-spacing: .18em;
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  font-size: 13px;
  font-weight: 600;
}

.nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  transition: .2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-light {
  background: white;
  border-color: white;
  color: var(--black);
}

.btn-light:hover {
  background: transparent;
  color: white;
}

.desktop-cta {
  margin-left: 8px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
}

.hero {
  min-height: 720px;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
background-image:
  linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.40)),
  url("Imagenes/Frances.jpeg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.08)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 90px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 120px;
  max-width: 900px;
  margin-left: max(calc((100vw - var(--max))/2), 20px);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.hero .eyebrow {
  color: white;
  opacity: .85;
}

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.06;
  margin: 0;
}

h1 {
  max-width: 870px;
  font-size: clamp(44px, 6vw, 80px);
}

h2 {
  font-size: clamp(38px, 4.4vw, 60px);
}

h3 {
  line-height: 1.2;
}

.hero-copy {
  max-width: 760px;
  margin: 26px 0 30px;
  font-size: 18px;
  color: rgba(255,255,255,.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-info {
  border-bottom: 1px solid var(--border);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-grid > div {
  padding: 42px 34px;
  border-right: 1px solid var(--border);
}

.quick-grid > div:last-child {
  border-right: 0;
}

.quick-number {
  font-size: 11px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .12em;
}

.quick-grid h3 {
  margin: 8px 0 8px;
}

.quick-grid p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
}

.section {
  padding: 110px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading > p:not(.eyebrow) {
  color: var(--gray);
  font-size: 17px;
  margin-top: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0,0,0,.7));
}

.project-1 {
    grid-column: span 7;
    background:
        linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.55)),
        url("Imagenes/Cocina moderna con isla y comedor.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.project-2 {
    grid-column: span 5;
    background:
        linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.55)),
        url("Imagenes/Felix De Jesus tope.png") center/cover no-repeat;
}

.project-3 {
    grid-column: span 6;
    background:
        linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.55)),
        url("Imagenes/Baño moderno con doble lavabo y ducha de mármol.png") center/cover no-repeat;
}
.project-4 {
    grid-column: span 6;
    background:
        linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.55)),
        url("Imagenes/Vestidor Minimalista en Tonos Neutros.png") center/cover no-repeat;
}

.project-label {
  position: relative;
  z-index: 2;
  color: white;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.project-label span {
  font-size: 20px;
  font-weight: 700;
}

.project-label small {
  opacity: .8;
}

.gallery-note {
  color: var(--gray);
  margin-top: 18px;
  font-size: 13px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-step {
  background: white;
  padding: 34px;
  min-height: 230px;
  border: 1px solid var(--border);
}

.process-step span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.process-step h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.process-step p {
  color: var(--gray);
  font-size: 14px;
  margin: 0;
}

.finance-section {
    background-image:
        linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.30)),
        url("Imagenes/Cocina moderna en tonos cálidos.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: white;
}

.finance-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.large-copy {
  font-size: 19px;
  color: #3f3f3f;
}

.finance-section .large-copy,
.finance-section .fine-print {
  color: rgba(255,255,255,.72);
}

.fine-print {
  font-size: 12px;
  color: var(--gray);
  margin-top: 28px;
}

.finance-cards {
  display: grid;
  gap: 12px;
}

.finance-card {
  border: 1px solid rgba(255,255,255,.18);
  padding: 24px 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.finance-card strong {
  font-size: 18px;
}

.finance-card span {
  font-size: 12px;
  opacity: .65;
}

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

.about-image {
    min-height: 560px;
    background-image: url("San\ Juan.jpeg");
    background-size: cover;
    background-position: 65% center;
    background-repeat: no-repeat;
    border-radius: 4px;
}

.about-copy p:not(.eyebrow) {
  color: var(--gray);
  font-size: 16px;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 800;
  font-size: 13px;
}

.contact-section {
  background: var(--soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 70px;
}

.contact-details {
  margin: 34px 0;
  display: grid;
  gap: 18px;
}

.contact-details > * {
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.contact-details strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-details span {
  margin-top: 5px;
  font-size: 16px;
}

.map-placeholder {
  min-height: 500px;
  border: 1px solid var(--border);
  background:
    linear-gradient(45deg, transparent 49%, rgba(0,0,0,.03) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(0,0,0,.03) 50%, transparent 51%);
  background-size: 42px 42px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}

.map-placeholder div {
  max-width: 320px;
}

.pin {
  font-size: 40px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.map-placeholder p {
  color: var(--gray);
  font-size: 14px;
}

footer {
  padding: 15px 0 10px;
  background: #090909;
  color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.footer-brand {
  min-width: auto;
}

.footer-grid p {
  color: rgba(255,255,255,.55);
  max-width: 420px;
  font-size: 14px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
}


.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 10px;
  padding-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  background: transparent;
  color: white;
  padding: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

@media (max-width: 980px) {
  .desktop-cta { display: none; }
  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: white;
    padding: 18px 20px 26px;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
  }

  .nav.open { display: flex; }

  .hero {
    min-height: 650px;
  }

  .quick-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-grid > div {
    border-bottom: 1px solid var(--border);
  }

  .finance-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-1,
  .project-2,
  .project-3,
  .project-4 {
    grid-column: span 6;
  }

  .about-image {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header .container {
    width: calc(100% - 24px);
  }

  .brand {
    min-width: auto;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding-block: 90px;
    margin-left: 0;
  }

  h1 {
    font-size: 43px;
  }

  .section {
    padding: 80px 0;
  }

  .quick-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid > div {
    border-right: 0;
  }

  .project-1,
  .project-2,
  .project-3,
  .project-4 {
    grid-column: 1 / -1;
    min-height: 330px;
  }

  .finance-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand img {
  width: 150px;
  height: auto;
  object-fit: contain;
}
/* ===== NUEVA SECCIÓN DE FINANCIAMIENTO ===== */

.finance-section {
    color: #ffffff;
    padding: 120px 0;
    background:
        linear-gradient(
            90deg,
            rgba(17, 17, 17, 0.88) 0%,
            rgba(17, 17, 17, 0.65) 50%,
            rgba(17, 17, 17, 0.20) 100%
        ),
        url("./Imagenes/cocina-financiamiento.png") center/cover no-repeat;
}

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

.finance-copy .eyebrow {
    color: var(--accent);
}

.finance-copy h2 {
    color: #ffffff;
    margin-bottom: 24px;
}

.finance-copy .large-copy {
    color: #d0d0d0;
    max-width: 580px;
}

.finance-copy .fine-print {
    color: #8f8f8f;
    margin-top: 35px;
    font-size: 13px;
}

.finance-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 420px;
    padding: 45px;
    
}

.finance-info-card {
    width: 100%;
    max-width: 480px;
    transform: translateX(80px);
    padding: 30px 45px 18px;
    border: 1px solid #353535;
    background: rgba(18, 18, 18, 0.70);
}

.finance-info-card span {
    display: block;
    color: #ff5a00 !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
}

.finance-info-card h3 {
    color: #ffffff;
    font-size: 32px;
    margin: -5px 0 15px;
}

.finance-info-card p {
    color: #b8b8b8;
    margin-bottom: 30px;
}

.finance-info-card .btn {
    display: inline-block;
}

@media (max-width: 800px) {
  .finance-section .finance-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

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

  .finance-info-card {
    max-width: none;
  }
}
.finance-info-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.site-footer {
    padding-top: 35px;
    padding-bottom: 15px;
}
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    flex-shrink: 0;
}

.whatsapp-icon {
    fill: #25D366;
}

.instagram-icon {
    fill: #E4405F;
}

.facebook-icon {
    fill: #1877F2;
}
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    display: block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    fill: #ffffff;
}

.whatsapp-icon {
    fill: #25D366;
}

.instagram-icon {
    fill: #E4405F;
}

.facebook-icon {
    fill: #1877F2;
}
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}
.footer-contact img.footer-icon {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    min-width: 18px !important;
    object-fit: contain !important;
}
/* GALERÍA DE COCINAS */

.gallery-cocinas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 45px;
    padding-bottom: 70px;
}

.gallery-cocinas img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-cocinas img:first-child {
    grid-column: span 2;
    grid-row: span 2;
    height: 578px;
}

.gallery-cocinas img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

@media (max-width: 700px) {
    .gallery-cocinas {
        grid-template-columns: 1fr;
    }

    .gallery-cocinas img,
    .gallery-cocinas img:first-child {
        grid-column: auto;
        grid-row: auto;
        height: 280px;
    }
}
/* =========================================
   GALERÍA DE COCINAS - DISEÑO DEFINITIVO
   ========================================= */

.gallery-page .gallery-cocinas {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: 40px !important;
    padding-bottom: 70px !important;
}

.gallery-page .gallery-cocinas img {
    display: block !important;
    width: 100% !important;
    height: 350px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.gallery-page .gallery-cocinas img:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 700px) {
    .gallery-page .gallery-cocinas {
        grid-template-columns: 1fr !important;
    }

    .gallery-page .gallery-cocinas img {
        height: 280px !important;
    }
}

/* CARRUSEL AUTOMÁTICO DE PROYECTOS JEDO */

.jedo-carousel {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.jedo-carousel-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: jedoMovimiento 48s linear infinite;
}

.jedo-carousel-slide {
    width: 350px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
}

@keyframes jedoMovimiento {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }
}

@media (max-width: 600px) {
    .jedo-carousel-slide {
        width: 260px;
        height: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jedo-carousel-track {
        animation: none;
    }
}

/* AMPLIAR FOTOGRAFÍAS DEL CARRUSEL */

.jedo-carousel-slide {
    cursor: zoom-in;
}

.jedo-visor {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.jedo-visor.activo {
    display: flex;
}

.jedo-visor img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.jedo-visor-cerrar {
    position: absolute;
    top: 15px;
    right: 25px;
    background: transparent;
    border: none;
    color: white;
    font-size: 42px;
    cursor: pointer;
}

.jedo-carousel:has(.jedo-visor.activo) .jedo-carousel-track {
    animation-play-state: paused;
}

/* CORRECCIÓN DEL VISOR JEDO */
#jedoVisor.activo {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    align-items: center;
    justify-content: center;
}

/* OCULTAR NÚMEROS DE NUESTRO PROCESO */

.process-step > span {
    display: none;
}

/* FOTOGRAFÍAS ADICIONALES DEL CARRUSEL JEDO */

.jedo-carousel-slide[data-imagen="Imagenes/Edwin Ayuso.jpeg"] {
    background-image: url("Imagenes/Edwin Ayuso.jpeg");
}

.jedo-carousel-slide[data-imagen="Imagenes/Elena.jpeg"] {
    background-image: url("Imagenes/Elena.jpeg");
}

.jedo-carousel-slide[data-imagen="Imagenes/Erik.jpeg"] {
    background-image: url("Imagenes/Erik.jpeg");
}

.jedo-carousel-slide[data-imagen="Imagenes/Khalil.jpeg"] {
    background-image: url("Imagenes/Khalil.jpeg");
}

.jedo-carousel-slide[data-imagen="Imagenes/San Juan.jpeg"] {
    background-image: url("Imagenes/San Juan.jpeg");
}

/* FLECHAS DEL VISOR JEDO */

#jedoVisor .jedo-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 26px;
    cursor: pointer;
}

#jedoAnterior {
    left: 20px;
}

#jedoSiguiente {
    right: 20px;
}

#jedoVisor .jedo-flecha:hover {
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 600px) {
    #jedoVisor .jedo-flecha {
        width: 38px;
        height: 38px;
        font-size: 21px;
    }

    #jedoAnterior {
        left: 8px;
    }

    #jedoSiguiente {
        right: 8px;
    }
}
/* PAUSAR CARRUSEL AL PASAR EL MOUSE */

.jedo-carousel:hover .jedo-carousel-track {
    animation-play-state: paused;
}
/* AJUSTE DE PORTADA PARA CELULARES */

@media (max-width: 680px) {
    .hero-content {
        width: calc(100% - 28px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-block: 70px;
    }

    .hero h1 {
        font-size: clamp(32px, 9vw, 43px);
        overflow-wrap: break-word;
    }

    .hero-copy {
        font-size: 15px;
        overflow-wrap: break-word;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}
/* CORREGIR TEXTO CORTADO EN CELULAR */

@media (max-width: 680px) {
    .hero-content {
        min-width: 0;
        box-sizing: border-box;
    }

    .hero h1,
    .hero .eyebrow,
    .hero-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.12;
    }
}
