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

:root {
  --color-primary: #f4a11a;
  --color-primary-dark: #d17f00;
  --color-secondary: #e5531a;
  --color-bg: #fff8ef;
  --color-text: #2b2b2b;
  --color-muted: #777777;
  --color-whatsapp: #25D366;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.12);
  --transition-fast: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: #ffffff;
  line-height: 1.6;
}

/* HERO */

.hero {
  position: relative;
  min-height: 85vh;
  background-image: url("../img/hero-portada.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.72), rgba(0,0,0,0.3));
}

.top-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6vw;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background-color: #ffffff;
  object-fit: cover;
}

.nav-title {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.8rem;
  opacity: 0.9;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 6vw 4rem;
  max-width: 720px;
}

.hero-tagline {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.95;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.btn i {
  font-size: 1rem;
}

.btn-main {
  background: var(--color-primary);
  color: #2b1200;
  box-shadow: var(--shadow-soft);
}

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

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  background: rgba(0,0,0,0.25);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1ebe5a;
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* SECTIONS */

.section {
  padding: 4rem 6vw;
  background-color: #ffffff;
}

.section.alt {
  background-color: var(--color-bg);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.section-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* GRID / LAYOUT */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.text-block p + p {
  margin-top: 0.8rem;
}

.image-block {
  display: flex;
  justify-content: center;
}

.img-rounded {
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  object-fit: cover;
}

.shadow {
  box-shadow: var(--shadow-soft);
}

/* ICON LIST */

.icon-list {
  list-style: none;
  margin-top: 1.25rem;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.icon-list i {
  color: var(--color-primary);
}

/* CARDS */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
}

.card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.7rem;
  cursor: pointer;
}

/* SOCIAL */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.social-card i {
  font-size: 1.3rem;
}

.social-label {
  font-weight: 600;
  display: block;
}

.social-user {
  font-size: 0.9rem;
  opacity: 0.9;
}

.social-card.fb {
  background: linear-gradient(135deg, #1877f2, #0d47a1);
}

.social-card.ig {
  background: radial-gradient(circle at 30% 30%, #fdf497 0, #fdf497 15%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.2);
  opacity: 0.95;
}

/* VIDEO */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* UBICACION / MAP */

.highlight {
  font-weight: 600;
}

.map-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.map-note {
  color: var(--color-muted);
}

.map-card {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

.map-card i {
  color: var(--color-secondary);
}

/* CONTACT FORM */

.contact-list {
  list-style: none;
  margin-top: 1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.contact-list i {
  color: var(--color-secondary);
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.form-block {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  border-radius: 0.75rem;
  border: 1px solid #dddddd;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(244,161,26,0.2);
  background-color: #fffdf7;
}

textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}

/* FOOTER */

.site-footer {
  background: #1b120a;
  color: #f5e9d4;
  padding: 1.7rem 6vw;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.footer-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.8);
  background-color: #ffffff;
}

.footer-title {
  font-weight: 600;
}

.footer-subtitle {
  font-size: 0.85rem;
  color: rgba(245,233,212,0.8);
}

.footer-madeby {
  font-size: 0.85rem;
}

.footer-madeby a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-madeby a:hover {
  text-decoration: underline;
}

/* WHATSAPP FLOAT */

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 60;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-float i {
  font-size: 1.7rem;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 36px rgba(0,0,0,0.4);
  background-color: #1ebe5a;
}

/* ANIMATIONS */

.fade-in {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

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

/* RESPONSIVE */

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    padding-top: 2.5rem;
  }

  .top-nav {
    padding-inline: 1.5rem;
  }

  .hero-content {
    padding-inline: 1.5rem;
  }

  .nav-right {
    gap: 0.5rem;
  }

  .btn {
    padding-inline: 1rem;
  }
}

@media (max-width: 720px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .hero-content {
    padding-top: 1.8rem;
  }

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

  .section {
    padding-inline: 1.5rem;
  }

  .cards-grid {
    gap: 1.3rem;
  }

  .site-footer {
    padding-inline: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 75vh;
  }

  .nav-right {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-right .btn {
    flex: 1;
    justify-content: center;
  }

  .gallery-item img {
    height: 130px;
  }

  .form-block {
    padding-inline: 1.1rem;
  }
}
