/* Navbar */
.navbar-nav .nav-link:hover {
  color: #ffc107 !important;
}

/* Hero carousel - altura fija */
.hero-img {
  height: 480px;
  object-fit: cover;
  filter: brightness(0.6);
}

/* Carousel caption centrada verticalmente */
.carousel-caption {
  top: 0;
  bottom: 0;
}

:root {
  --navy:      #0a2342;
  --ocean:     #1a5276;
  --teal:      #148f77;
  --wave:      #1abc9c;
  --sand:      #f0e6d3;
  --light:     #f4f7f6;
  --white:     #ffffff;
  --dark:      #1c2833;
  --gray:      #7f8c8d;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --shadow:    0 4px 20px rgba(10,35,66,0.12);
  --radius:    10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* NAVBAR */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--navy); padding: 0 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo img { height: 50px; object-fit: contain; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem; padding: 0.25rem 0; border-bottom: 2px solid transparent; transition: all 0.3s; }
.nav-links a:hover { color: var(--wave); border-bottom-color: var(--wave); }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 60%, var(--teal) 100%); color: white; min-height: 500px; display: flex; align-items: center; }
.hero-content { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.hero-content h1 { font-family: var(--font-head); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.05; margin-bottom: 1.2rem; }
.hero-content h1 span { color: var(--wave); }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; max-width: 480px; }

/* BOTONES */
.btn-primary { display: inline-block; background: var(--wave); color: var(--navy); font-weight: 700; padding: 0.75rem 2rem; border-radius: var(--radius); border: none; cursor: pointer; transition: all 0.3s; }
.btn-primary:hover { background: #17a589; transform: translateY(-2px); }

/* SECCIONES */
.section { padding: 5rem 1.5rem; }
.bg-light { background: var(--light); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--navy); text-align: center; margin-bottom: 2.5rem; letter-spacing: 1px; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--wave); margin: 0.5rem auto 0; border-radius: 2px; }

/* CARDS GRID */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

/* CARD BASE */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(10,35,66,0.18); }

/* CATEGORÍA CARD */
.categoria-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; text-align: center; background: linear-gradient(145deg, var(--navy), var(--ocean)); color: white; cursor: pointer; }
.categoria-card .card-title { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 1px; }
.categoria-card .card-link { margin-top: 0.75rem; color: var(--wave); font-size: 0.9rem; font-weight: 600; }

/* PRODUCTO CARD */
.producto-card { display: flex; flex-direction: column; }
.card-img-wrap { height: 200px; overflow: hidden; background: var(--light); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.producto-card:hover .card-img-wrap img { transform: scale(1.07); }
.card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.badge { display: inline-block; background: var(--teal); color: white; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; text-transform: uppercase; width: fit-content; }
.card-title { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.card-desc  { font-size: 0.85rem; color: var(--gray); flex: 1; }
.card-price { font-size: 1.3rem; font-weight: 700; color: var(--teal); margin-top: 0.5rem; }

/* MISIÓN */
.mision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mision-card { background: var(--light); border-radius: var(--radius); padding: 2rem; border-left: 4px solid var(--wave); }
.mision-card h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem; }
.mision-card p  { color: var(--gray); line-height: 1.7; }

/* FOOTER */
.footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 3rem 1.5rem 1.5rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 50px; margin-bottom: 1rem; }
.footer-brand p  { font-size: 0.9rem; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { font-family: var(--font-head); font-size: 1.1rem; color: white; margin-bottom: 0.75rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a  { font-size: 0.9rem; transition: all 0.3s; }
.footer-links a:hover { color: var(--wave); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; text-align: center; font-size: 0.8rem; opacity: 0.6; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .mision-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 1.5rem; }
}




/* 

PRODUCTOS

*/
/* PÁGINA BANNER */
.page-banner { background: linear-gradient(135deg, var(--navy), var(--ocean)); color: white; padding: 3rem 2rem; }
.page-banner h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.5rem); max-width: 1200px; margin: 0 auto; }

/* PRODUCTOS LAYOUT */
.productos-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.sidebar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; position: sticky; top: 80px; }
.sidebar h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); margin-bottom: 1rem; }
.cat-list { display: flex; flex-direction: column; gap: 0.25rem; }
.cat-list a { display: block; padding: 0.55rem 0.75rem; border-radius: 6px; font-size: 0.9rem; color: var(--dark); transition: all 0.3s; }
.cat-list a:hover, .cat-list a.active { background: var(--ocean); color: white; }
.empty-state { text-align: center; padding: 3rem; color: var(--gray); font-size: 1.1rem; }

@media (max-width: 768px) {
  .productos-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}





/* CONTACTO */
.contacto-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contacto-info h2 { font-family: var(--font-head); font-size: 2rem; color: var(--navy); margin-bottom: 1rem; }
.contacto-info p  { color: var(--gray); margin-bottom: 1.5rem; }
.info-list { display: flex; flex-direction: column; gap: 0.75rem; }
.info-list li { color: var(--dark); font-size: 0.95rem; }
.contacto-form-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.contacto-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; font-size: 0.875rem; color: var(--navy); }
.form-group input, .form-group textarea { padding: 0.7rem 1rem; border: 1.5px solid #dde3e9; border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem; outline: none; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--wave); box-shadow: 0 0 0 3px rgba(26,188,156,0.15); }
.form-group textarea { resize: vertical; }
.alert { padding: 0.85rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.alert-success { background: #d5f5e3; color: #1e8449; }
.alert-error   { background: #fde8e8; color: #c0392b; }
.btn-full { width: 100%; text-align: center; }

@media (max-width: 768px) {
  .contacto-layout { grid-template-columns: 1fr; }
}

/* ACERCA */
.acerca-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.acerca-text h2 { font-family: var(--font-head); font-size: 2rem; color: var(--navy); margin-bottom: 1rem; }
.acerca-text h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--ocean); margin: 1.5rem 0 0.5rem; }
.acerca-text p  { color: var(--gray); margin-bottom: 0.75rem; line-height: 1.7; }
.acerca-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { background: linear-gradient(135deg, var(--navy), var(--ocean)); color: white; border-radius: var(--radius); padding: 1.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num   { font-family: var(--font-head); font-size: 2.5rem; color: var(--wave); }
.stat-label { font-size: 0.85rem; opacity: 0.85; }

@media (max-width: 768px) {
  .acerca-layout { grid-template-columns: 1fr; }
  .acerca-stats  { grid-template-columns: 1fr 1fr; }
}