@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #111111;
  --secondary: #1c1c1c;
  --accent: #c9c9c9;
  --light: #f5f5f5;
  --white: #ffffff;
  --gray: #777777;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  --radius: 18px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--primary);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.navbar a:hover::after {
  width: 100%;
}

.navbar a:focus-visible,
.btn:focus-visible,
.carousel-button:focus-visible,
.map-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.contacto .btn:focus-visible,
.contacto .map-link:focus-visible {
  outline-color: rgba(17, 17, 17, 0.55);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  background: url("img/Vidriera Abisai .PNG") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--white);
}

.hero-content h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.hero-content p {
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

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

/* GENERAL SECTIONS */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 800;
}

.section-title p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
}

/* NOSOTROS */
.nosotros {
  background: #fafafa;
}

.nosotros-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.nosotros-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.2rem;
}

.nosotros-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 100%;
}

/* SERVICIOS */
.servicios {
  background: var(--primary);
  color: var(--white);
}

.servicios .section-title h2,
.servicios .section-title p {
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

/* GALERIA */
.galeria {
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.06), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.showcase-carousel {
  background: var(--white);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.showcase-intro {
  max-width: 700px;
}

.showcase-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-intro h3 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.showcase-intro p {
  color: #555;
  max-width: 58ch;
}

.showcase-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.carousel-button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-button:hover {
  transform: translateY(-2px);
  background: #2b2b2b;
}

.showcase-counter {
  min-width: 82px;
  text-align: center;
  font-weight: 700;
  color: #555;
}

.showcase-viewport {
  position: relative;
  min-height: 540px;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.showcase-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.showcase-media,
.showcase-panel {
  min-height: 100%;
}

.showcase-media {
  overflow: hidden;
  border-radius: 24px;
  background: #ececec;
}

.showcase-media img {
  height: 100%;
  object-fit: cover;
}

.showcase-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(160deg, #111111 0%, #2c2c2c 100%);
  color: var(--white);
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-panel h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.showcase-panel p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.2rem;
}

.showcase-points {
  display: grid;
  gap: 0.85rem;
}

.showcase-points li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
}

.showcase-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #111111, #2b2b2b);
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 800px;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  font-weight: 800;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* CONTACTO */
.contacto {
  background: #f8f8f8;
}

.contacto-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.contacto-info {
  background: var(--white);
  width: min(100%, 700px);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-style: normal;
}

.contacto-info p {
  margin-bottom: 0.8rem;
  color: #444;
  font-size: 1rem;
}

.contacto-buttons {
  display: flex;
  justify-content: center;
}

.contacto-map {
  width: min(100%, 700px);
  background: var(--white);
  padding: 0.9rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contacto-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}

.map-link {
  display: inline-flex;
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* FOOTER */
.footer {
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 30px 0;
}

.footer p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .nosotros-content,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nosotros-content {
    grid-template-columns: 1fr;
  }

  .nosotros-image {
    order: -1;
  }

  .showcase-header,
  .showcase-slide {
    grid-template-columns: 1fr;
  }

  .showcase-header {
    align-items: start;
  }

  .showcase-controls {
    justify-content: space-between;
    width: 100%;
  }

  .showcase-viewport {
    min-height: 860px;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero {
    min-height: 85vh;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 80px 0;
  }

  .contacto-info {
    width: 100%;
  }

  .contacto-map iframe {
    height: 300px;
  }

  .showcase-carousel {
    padding: 1.2rem;
  }

  .showcase-controls {
    flex-wrap: wrap;
  }

  .carousel-button {
    flex: 1 1 160px;
  }

  .showcase-viewport {
    min-height: auto;
  }

  .showcase-slide {
    position: relative;
    display: none;
  }

  .showcase-slide.is-active {
    display: grid;
  }

  .showcase-media img {
    max-height: 340px;
  }

  .showcase-panel {
    padding: 1.5rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
}

@media (max-width: 768px) {
  .brand {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .brand-logo {
    width: 100px;
    height: 100px;
  }

  .logo {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 2.1rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .service-card,
  .contacto-info {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}