/* ===================================================
   Grupo La Gaviota — Brochure Website Styles
   Colors: #D0661F → #FF7D31 (gradient), #565656 (dark)
   Font: Ubuntu
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #D0661F;
  --orange: #FF7D31;
  --dark: #565656;
  --dark-light: #929292;
  --white: #ffffff;
  --off-white: #f8f7f5;
  --gray: #AEAEAC;
  --light-gray: #BEBEBE;
  --gradient: linear-gradient(135deg, var(--red), var(--orange));
  --font: 'Ubuntu', sans-serif;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img {
  height: 50px;
  transition: height var(--transition);
}

.navbar.scrolled .navbar__logo img {
  height: 40px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.navbar.scrolled .navbar__links a {
  color: var(--dark);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
}

.navbar.scrolled .lang-toggle {
  background: rgba(56, 51, 49, 0.06);
  border-color: var(--light-gray);
  color: var(--dark);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.navbar.scrolled .lang-toggle:hover {
  background: rgba(56, 51, 49, 0.1);
}

.lang-toggle__icon {
  font-size: 1rem;
}

.lang-toggle__label {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile menu toggle */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.navbar__burger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.navbar.scrolled .navbar__burger span {
  background: var(--dark);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../branding/renders/lamosa_piedra_soby.webp') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(56, 51, 49, 0.85) 0%,
    rgba(224, 47, 48, 0.6) 50%,
    rgba(231, 103, 52, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 2rem;
}

.hero__logo {
  width: 180px;
  margin: 0 auto 2rem;
  animation: fadeInDown 1s ease;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--gradient);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp 1s ease 0.6s both;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(224, 47, 48, 0.4);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  opacity: 0.7;
}

/* --- Section Shared --- */
.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--off-white);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section__line {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section__desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--dark-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- About Section --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about__image::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gradient);
  border-radius: 12px;
  opacity: 0.15;
  z-index: -1;
}

.about__text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.about__text p {
  color: var(--dark-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

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

.about__feature-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about__feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

.about__feature span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Brands Section --- */
.brands__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.brand-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--light-gray);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--red);
}

.brand-card__logo {
  height: 60px;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: grayscale(30%);
  transition: filter var(--transition);
}

.brand-card:hover .brand-card__logo {
  filter: grayscale(0%);
}

.brand-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-card__link {
  font-size: 0.75rem;
  color: var(--red);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(5px);
  transition: all var(--transition);
}

.brand-card:hover .brand-card__link {
  opacity: 1;
  transform: translateY(0);
}

/* Text-only brand cards (no logo available) */
.brand-card__name--solo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 0;
}

/* --- Contact Section --- */
.contact__general {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact__stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact__store {
  background: var(--off-white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--light-gray);
}

.contact__store-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid transparent;
  border-image: var(--gradient) 1;
}

.contact__store-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact__info p {
  color: var(--dark-light);
  font-size: 1rem;
  line-height: 1.7;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__item-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

.contact__item-text {
  display: flex;
  flex-direction: column;
}

.contact__item-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.contact__item-value {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 500;
}

.contact__item-value a {
  transition: color var(--transition);
}

.contact__item-value a:hover {
  color: var(--red);
}

.contact__map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  min-height: 400px;
  background: var(--light-gray);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
}

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

.footer__logo img {
  height: 36px;
  opacity: 0.9;
}

.footer__copy {
  font-size: 0.85rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--gradient);
  border-color: transparent;
}

.footer__social a svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.7);
}

.footer__social a:hover svg {
  fill: var(--white);
}

/* --- WhatsApp FAB --- */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.whatsapp-fab__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-fab__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-fab__btn svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.whatsapp-fab__menu {
  position: absolute;
  bottom: 72px;
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.whatsapp-fab.open .whatsapp-fab__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-fab__option {
  display: block;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: var(--dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition);
}

.whatsapp-fab__option:last-child {
  border-bottom: none;
}

.whatsapp-fab__option:first-child {
  border-radius: 12px 12px 0 0;
}

.whatsapp-fab__option:last-child {
  border-radius: 0 0 12px 12px;
}

.whatsapp-fab__option:hover {
  background: #f0faf3;
}

.whatsapp-fab__option strong {
  display: block;
  font-size: 0.9rem;
  color: #25D366;
}

.whatsapp-fab__option span {
  font-size: 0.8rem;
  color: var(--dark-light);
}

/* --- Facebook Section --- */
.facebook {
  text-align: center;
}

.facebook__embed {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.facebook__embed .fb-page,
.facebook__embed iframe {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

/* --- Animations --- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Responsive --- */
@media (max-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact__stores {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__image {
    order: -1;
  }

  .about__image img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    color: var(--dark) !important;
    font-size: 1.1rem;
  }

  .lang-toggle {
    color: var(--dark) !important;
    background: rgba(56, 51, 49, 0.06) !important;
    border-color: var(--light-gray) !important;
  }

  .navbar__burger {
    display: flex;
  }

  .navbar__burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px);
  }

  .navbar__burger.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px);
  }

  .brands__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .brand-card {
    padding: 1.5rem 1rem;
    min-height: 140px;
  }

  .brand-card__logo {
    height: 45px;
  }

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

  .section {
    padding: 4rem 0;
  }

  .hero__logo {
    width: 140px;
  }
}

@media (max-width: 480px) {
  .brands__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 0 1.25rem;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .facebook__embed .fb-page {
    max-width: 100%;
  }

  .whatsapp-fab {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .whatsapp-fab__btn {
    width: 52px;
    height: 52px;
  }

  .whatsapp-fab__btn svg {
    width: 28px;
    height: 28px;
  }
}
