/* === Do Gordo — Shared Stylesheet === */

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

:root {
  --gold: #E8961F;
  --red: #C0392B;
  --dark: #2C3E50;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --gold-light: #F5C96A;
  --dark-light: #34495E;
  --shadow: 0 4px 16px rgba(0,0,0,.1);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  padding: .8rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

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

.navbar-logo img { height: 30px; filter: brightness(0) invert(1); }

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

.navbar-links a {
  color: var(--cream);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}

.navbar-links a:hover { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cream);
  border-radius: 3px;
  transition: transform .3s, opacity .3s;
}

/* hamburger animation */
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, var(--gold) 100%);
  color: var(--cream);
  padding: 6rem 1rem 4rem;
}

.hero-content { max-width: 700px; }

.hero-mascot {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid var(--gold);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(232,150,31,.3);
}

.hero-logo { height: 90px; margin: 0 auto 1rem; filter: brightness(0) invert(1); }

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.hero .subtitle {
  font-size: 1.2rem;
  opacity: .9;
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Mini hero (about page) --- */
.mini-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--cream);
  text-align: center;
  padding: 6rem 1rem 3rem;
}

.mini-hero h1 { font-size: 3rem; margin-bottom: .5rem; }
.mini-hero .subtitle { font-size: 1.15rem; opacity: .85; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: none;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--gold); color: var(--dark); }
.btn-secondary { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn-secondary:hover { background: var(--cream); color: var(--dark); }
.btn-red { background: var(--red); color: var(--white); }
.btn-small { padding: .55rem 1.4rem; font-size: .9rem; }

/* --- Sections --- */
section { padding: 5rem 0; }

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: .5rem;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--dark-light);
  font-size: 1.05rem;
}

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

/* --- Service Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform .3s;
  text-align: center;
}

.card:hover { transform: translateY(-6px); }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
  color: var(--dark);
}

.card p { color: var(--dark-light); font-size: .95rem; }

/* --- Methodology --- */
.methodology-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.methodology-item {
  background: var(--white);
  border-left: 5px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
}

.methodology-item h3 {
  color: var(--red);
  font-size: 1.3rem;
  margin-bottom: .4rem;
}

.methodology-item p { color: var(--dark-light); font-size: .95rem; }

.methodology-link {
  text-align: center;
  margin-top: 2rem;
}

.methodology-link a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
}

/* --- Stats --- */
.stats {
  background: var(--dark);
  color: var(--cream);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'Bangers', cursive;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label { font-size: .95rem; margin-top: .3rem; opacity: .85; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  font-style: italic;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  font-family: 'Bangers', cursive;
  color: var(--gold);
  position: absolute;
  top: .2rem;
  left: 1rem;
  line-height: 1;
}

.testimonial p { padding-top: 1.5rem; color: var(--dark-light); font-size: .95rem; }

.testimonial-author {
  margin-top: 1rem;
  font-weight: 600;
  font-style: normal;
  color: var(--dark);
}

/* --- Store --- */
.store-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.store-card:hover { transform: translateY(-6px); }

.store-img-wrapper {
  position: relative;
  overflow: hidden;
}

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

.store-badge {
  position: absolute;
  top: 12px;
  right: -35px;
  background: var(--red);
  color: var(--white);
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 2px;
  padding: .4rem 3rem;
  transform: rotate(35deg);
}

.store-card h3 {
  font-size: 1.4rem;
  color: var(--dark);
  margin: 1.2rem 1.5rem .4rem;
}

.store-card p {
  color: var(--dark-light);
  font-size: .92rem;
  padding: 0 1.5rem;
}

.store-sizes {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .8rem;
}

.store-sizes span {
  background: var(--cream);
  border: 2px solid var(--dark);
  border-radius: 50px;
  padding: .2rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark);
}

.store-price {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  color: var(--red);
  padding: .8rem 1.5rem .5rem;
}

.store-card .btn {
  margin: auto 1.5rem 1.5rem;
}

.store-card .btn:disabled {
  background: #B0B8C1;
  color: var(--white);
  opacity: .7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Blog --- */
.blog-post {
  max-width: 800px;
  margin: 0 auto 3rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.blog-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.blog-post-title {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: .5rem;
  text-align: left;
}

.blog-post-meta {
  font-size: .85rem;
  color: var(--dark-light);
  font-style: italic;
  opacity: .7;
  margin-bottom: 2rem;
  border-left: 3px solid var(--gold);
  padding-left: .8rem;
}

.blog-post-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.blog-post h3 {
  font-size: 1.4rem;
  color: var(--red);
  margin: 2rem 0 .5rem;
}

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

.blog-post ul {
  color: var(--dark-light);
  margin: 0 0 1rem 1.5rem;
  list-style: disc;
  line-height: 1.7;
}

.blog-post li { margin-bottom: .4rem; }

.blog-post a {
  color: var(--primary);
  text-decoration: underline;
}

.blog-post code {
  background: var(--cream);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9rem;
}

.blog-post pre {
  background: var(--dark);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: .88rem;
  color: var(--cream);
  line-height: 1.6;
}

/* --- Blog Back Link --- */
.blog-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--red);
  font-size: .9rem;
  font-weight: 600;
  transition: opacity .2s;
}

.blog-back:hover { opacity: .7; }

/* --- Blog Listing --- */
.blog-card {
  display: flex;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform .3s;
  color: var(--dark);
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card > img {
  width: 280px;
  min-height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-meta {
  font-size: .8rem;
  color: var(--dark-light);
  opacity: .7;
  margin-bottom: .5rem;
}

.blog-card h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: .5rem;
  text-align: left;
}

.blog-card p {
  font-size: .95rem;
  color: var(--dark-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-link {
  font-weight: 600;
  color: var(--red);
  font-size: .9rem;
}

@media (max-width: 768px) {
  .blog-card { flex-direction: column; }
  .blog-card > img { width: 100%; min-height: 180px; }
}

/* --- Blog Share --- */
.blog-share {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.blog-share-label {
  font-size: .85rem;
  color: var(--dark-light);
  font-weight: 600;
  margin-right: .3rem;
}

.blog-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  transition: opacity .2s;
}

.blog-share a img { filter: brightness(0) invert(1); }

.blog-share a:hover { opacity: .85; }

.blog-share-linkedin { background: #0A66C2; }
.blog-share-whatsapp { background: #25D366; }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .85);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0, 0, 0, .5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: opacity .2s;
}

.lightbox-close:hover { opacity: .7; }

/* --- Contact --- */
.contact-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.contact-content p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--dark-light);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 1.25rem 0;
}

.contact-item { text-align: center; }
.contact-item h4 { color: var(--gold); font-size: 1.2rem; margin-bottom: .3rem; }

@media (max-width: 600px) {
  .contact-details { grid-template-columns: 1fr; }
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  row-gap: .25rem;
  column-gap: 2rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.contact-links h4 {
  width: 100%;
  color: var(--gold);
  font-size: 1.2rem;
  margin: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--dark);
  text-decoration: underline;
  font-size: 1rem;
}

.contact-link:hover { color: var(--gold); }
.contact-link img { width: 18px; height: 18px; opacity: .7; }
.contact-link img[alt="LinkedIn"] { width: 14px; height: 14px; }

/* --- Team Cards --- */
.team-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--dark-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s;
}

.team-card:hover { transform: translateY(-6px); }

.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  margin: 0 auto 1.2rem;
}

.team-card h3 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: .2rem;
}

.team-role {
  font-size: .95rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: .8rem;
}

.team-bio {
  font-size: .92rem;
  color: var(--dark-light);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.team-card .btn { font-size: .85rem; }

/* --- Careers CTA --- */
.careers {
  background: linear-gradient(135deg, var(--gold) 0%, var(--red) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1rem;
}

.careers h2 { font-size: 2.5rem; margin-bottom: .5rem; }
.careers p { font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img { filter: brightness(0) invert(1); }
.footer-brand p {
  margin-top: .5rem;
  font-size: .9rem;
  opacity: .7;
  max-width: 300px;
}


.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--cream); font-size: .9rem; opacity: .7; transition: opacity .2s; }
.footer-nav a:hover { opacity: 1; color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  opacity: .6;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-in.animated {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
  }

  .navbar-links.open { display: flex; }

  .navbar-links a { padding: .6rem 1.5rem; }

  .navbar { position: relative; }

  .hero h1 { font-size: 1.9rem; }
  .hero-logo { height: 70px; }
  .hero-mascot { width: 220px; height: 220px; }

  .section-title { font-size: 2rem; }

  .cards-grid,
  .testimonials-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-number { font-size: 2.2rem; }

  .footer-content { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  .mini-hero h1 { font-size: 2.2rem; }

  .blog-post { padding: 1.5rem; }
  .blog-post-img { height: auto; }
}
