/* Tipografía Sofia Pro */

/* Regular */
@font-face {
    font-family: 'SofiaPro';
    src: url('fonts/Sofia Pro Regular Az.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* Medium */
@font-face {
    font-family: 'SofiaPro';
    src: url('fonts/Sofia Pro Medium Az.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

/* Bold */
@font-face {
    font-family: 'SofiaPro';
    src: url('fonts/Sofia Pro Bold Az.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}


/* Reset básico y tipografías */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f9f0de;
  color: #8A6E48;
  line-height: 1.5;
}

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

/* Header */
.header {
  background-color: #272A2C;
  padding: 1rem 0;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 8px rgba(34, 29, 22, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: 'SofiaPro';
  font-size: 1.25rem;
  color: #D5BA8C;
}

.icon-ice-cream {
  width: 30px;
  height: 30px;
  stroke: #D5BA8C;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-family: 'SofiaPro';
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #D5BA8C;
}

/* Inicio Section */

.inicio-section {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #e4d8c7cc;
  padding: 3rem 1rem;
  background: url('assets/hero-ice-cream-shop.jpg') no-repeat center center/cover;
  overflow: hidden;
}

.inicio-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(39, 42, 44, 0.8) 0%,    /* Centro más transparente */
    rgba(39, 42, 44, 0.8) 30%,   /* Suaviza la transición */
    rgba(39, 42, 44, 0.9) 100%   /* Bordes más oscuros */
  );
  pointer-events: none;
  z-index: 0;
}

.inicio-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(57, 48, 37, 0.05);
  z-index: 0;
}

.inicio-section > .container {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
}

.title {
  font-family: 'SofiaPro';
  font-weight: 700;
  font-size: clamp(40px, 8vw, 60px);
  margin-bottom: 1.5rem;
  color: #FFF9F3;
  line-height: 1.1;
}

.highlight {
  color: #D5BA8C;
}

.highlight2 {
  color: #8A6E48;
}

.subtitle {
  font-size: 1.2rem;
  color: #F5EBDD;
  margin-bottom: 2rem;
  max-width: 700px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Botones */

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  cursor: pointer;
  padding: 0.75rem 1.8rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #D5BA8C;
  color: #1a1816;
  border: none;
}

.btn-primary:hover {
  background-color: #8B701E;
  color: #FFF9F3; /* texto claro para contraste */
}

.btn-outline {
  border: 2px solid #D5BA8C;
  color: #D5BA8C;
  background: transparent;
}

.btn-outline:hover {
  background-color: #8B701E;
  border: 2px solid #8B701E;
  color: #1A1816;
  color: #FFF9F3; /* texto claro para contraste */
}

.ancho-fijo {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Iconos con inline SVG o simples emojis para demo */

.icon-eye::before {
  content: "👁️";
}

.icon-doc::before {
  content: "📋";
}

.icon-chat::before {
  content: "💬";
}

/* Sabores Section */

.sabores-section {
  background-color: #F5EBDD;
  padding: 3rem 0 4rem;
  text-align: center;
}

.section-title {
  font-family: 'SofiaPro';
  font-weight: 700;
  font-size: clamp(40px, 8vw, 56px);
  color: #272A2C;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.section-description {
  font-size: 18px;
  color: #6e635d;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.sabores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.sabor-card {
  background-color: #272A2C;
  color: #D5BA8C;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.4);
  display: flex; /* mantiene apilado vertical */
  flex-direction: column;
  transition: transform 0.3s ease;
}

/* Se saca hover de card porque no es clickeable
.sabor-card:hover {
  transform: translateY(-5px);
}
*/

.img-wrapper {
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.label-nuevo {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #D5BA8C;
  color: #1a1816;
  font-weight: 700;
  font-family: 'SofiaPro';
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.sabor-info {
  padding: 1rem 1.5rem 1.5rem;
  text-align: left;
}

.sabor-info h3 {
  font-family: 'SofiaPro';
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.sabor-info p {
  font-size: 0.9rem;
  color: #F5EBDD;
  margin: 0;
}

.all-flavors-text {
  margin-top: 2.5rem;
  font-size: 16px;
  color: #6e635d;
}

.all-flavors-link {
  margin-top: 0.5rem;
  display: inline-block;
  font-family: 'SofiaPro';
  font-size: 16px;
  font-weight: 700; /* bold */
  color: #4a433f;
  text-decoration: underline;
  cursor: pointer;
}

/* Estilo de la lista de sabores adicionales (desktop/tablet por defecto) */
#sabores-todos ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

#sabores-todos li {
  background-color: #f8f8f8;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-align: center;
}

/* SOLO MOBILE: ajustar a columna única */
@media (max-width: 768px) {
  #sabores-todos ul {
    grid-template-columns: 1fr !important; /* fuerza columna única */
    gap: 0.5rem 0 !important;             /* gap solo vertical */
  }

  #sabores-todos li {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Franquicias Section */

.franquicias-section {
  background-color: #272A2C;
  color: #F5EBDD;
  padding: 4rem 0;
}

.franquicias-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.franquicias-left {
  flex: 1 1 320px;
}

.franquicias-title {
  font-size: clamp(32px, 8vw, 40px);
  margin-bottom: 1rem;
  color: #D5BA8C;
}

.franquicias-text {
  max-width: 400px;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #F5EBDD;
}

.franquicias-btn {
  display: inline-flex;        /* centra contenido correctamente */
  justify-content: center;     /* centra texto horizontal */
  align-items: center;         /* centra texto vertical */
  width: 250px;                /* ancho fijo igual al botón primario */
  max-width: 100%;             /* no crece en pantallas chicas */
  padding: 0.75rem 1.8rem;
  font-size: 1rem;
  text-align: center;          /* respaldo */
  box-sizing: border-box;      /* padding no rompe ancho */
}

.franquicias-right {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.franquicias-item {
  background-color: #272A2C;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  align-items: center;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.4);
}

.num-circle {
  background-color: #D5BA8C;
  color: #272A2C;
  font-weight: 700;
  font-family: 'SofiaPro';
  border-radius: 50%;
  width: 36px;        
  height: 36px;       
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  flex-shrink: 0;      
  line-height: 1;      
}

.franquicias-item > div {
  padding-top: 0;
  padding-bottom: 0; 
  margin-top: 0;
}

.franquicias-item > div > h3 {
  margin-bottom: 0 !important;
}

.franquicias-item > div > p {
  margin-top: 0 !important;
}

.franquicias-item > div > h3 {
  font-size: 16px;       
  margin-bottom: 0.25rem;   
  font-weight: 700;
  font-family: 'SofiaPro';
  color: #D8C4A5;
}

.franquicias-item > div > p {
  font-size: 14px;          
  margin-top: 0;            
  color: #F5EBDD;
  line-height: 1.3;         
}

/* FOOTER (sin cambiar tipografías) */
.footer {
  background-color: #F5EBDD;
  color: #272A2C;
  padding: 24px 2rem 16px; 
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px; 
  margin: 0 auto;     
}

.footer-column { flex: 1 1 250px; min-width: 220px; }

.footer-column h3 {
  font-family: 'SofiaPro';
  font-weight: 700;
  font-size: 16px;
  color: #272A2C; 
}

.footer-column p,
.footer-column ul li { color: #4a433f; font-size: 0.95rem; }

.footer-column ul { list-style: none; padding-left: 0; margin: 0; }
.footer-column ul li { margin-bottom: 0.6rem; }

.footer-column a { color: #4a433f; text-decoration: none; }
.footer-column a:hover { color: #D5BA8C; }

/* Iconos SVG inline para no cambiar fuentes */
.icon {
  width: 20px; 
  height: 20px;
  margin-right: .5rem;
  stroke: #A68A64; 
  fill: none; 
  stroke-width: 2;
  stroke-linecap: round; 
  stroke-linejoin: round;
  vertical-align: -3px;
}

.social-icons { display: flex; gap: 1rem; margin-top: 0.8rem; }
.social-link {
  display: inline-flex;
  align-items: center; 
  justify-content: center;
}
.social-link .icon {
  width: 20px;
  height: 20px; 
  display: block;
}

/* Línea divisoria alineada al grid (dentro de .container) */
.footer-divider {
  border: 0; border-top: 1px solid #4a433f;
  opacity: .2; margin: 24px 0;
}

/* Bottom alineado al container (ya va dentro de .container) */
.footer-bottom {
  display: flex; 
  justify-content: center; 
  align-items: center;
  font-size: 12px; 
  color: #4a433f; 
  flex-wrap: wrap; 
  gap: .5rem;
  max-width: 1200px;
  margin: 0 auto; 
  margin-top: auto; 
}

.footer-bottom .heart { color: #D5BA8C; }


/* Responsive footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-left,
  .footer-right {
    text-align: left;
  }

  .footer-column { flex: 1 1 25px; min-width: 220px; }

}


/* ====== RESPONSIVE HEADER (Mobile ≤ 768px) ====== */
@media (max-width: 768px) {
  .inicio-section .title {
    font-size: clamp(28px, 6vw, 36px); /* achica proporcionalmente */
    max-width: 95%;                   /* reduce márgenes laterales */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;                /* compacto para mantener las dos líneas */
    text-align: center;                /* centrado exacto */
  }

  .inicio-section .subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }  

  .btn-group {
    flex-direction: column; 
    gap: 0.75rem;           
  }

  .btn {
    width: 100%;            
    text-align: center;     
  }

  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: relative; 
  }

  .logo {
    font-size: 1rem;
    gap: 6px;
  }

  .nav-toggle {
    display: inline-flex;
    cursor: pointer;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 100%;    
    right: 0 !important; 
    left: auto !important; 
    min-width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 999; 
  }

  body.nav-open .nav-list {
    display: flex;
  }
}

/* ===== HAMBURGER + MOBILE NAV ===== */
.nav-toggle {
  display: none;               
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: 0.5rem;
  align-items: center;
  justify-content: center;
}

.nav-toggle .hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform .25s ease;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after  { top: 7px; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 998;
  touch-action: none;
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; z-index: 1002; }

  .nav-list {
    position: fixed;
    top: 64px; 
    right: 1rem;
    left: 1rem;
    background: #272A2C;    
    color: white;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    max-height: calc(100vh - 96px);
    overflow-y: auto;

    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 1001;
  }

  .nav-list li { margin: 0; }
  .nav-list a {
    display: block;
    padding: .75rem 0.5rem;
    color: #fff;
    font-weight: 600;
  }
  .nav-list a:hover { color: #D5BA8C; }

  body.nav-open .nav-list {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open .nav-overlay {
    display: block;
  }

  body.nav-open .nav-toggle .hamburger {
    background: transparent;
  }
  body.nav-open .nav-toggle .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
  }
  body.nav-open .nav-toggle .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  body.nav-open .nav-toggle .hamburger::before,
  body.nav-open .nav-toggle .hamburger::after {
    background: #fff;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ====== MOBILE iPhone SE / pantallas muy chicas ====== */
@media (max-width: 375px) {
  .franquicias-left {
    text-align: center; 
    margin: 0 auto;     
  }

  .franquicias-title,
  .franquicias-text {
    text-align: center; 
  }
  
  .franquicias-right {
    gap: 0.75rem; 
  }
  .franquicias-item {
    flex-direction: row;
    padding: 0.5rem 1rem; 
  }
  .num-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .franquicias-btn {
    display: inline-flex;       /* centra contenido correctamente */
    justify-content: center;    /* centra texto horizontal */
    align-items: center;        /* centra texto vertical */
    width: 100%;                /* ocupa todo el ancho disponible */
    max-width: 250px;           /* no crece más que el primario */
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    text-align: center;
    box-sizing: border-box;     /* padding no rompe ancho */
  }

  .inicio-section .title,
  .section-title {
    font-size: 1.8rem; 
  }
  .inicio-section .subtitle,
  .section-description {
    font-size: 16px;
  }

  .sabor-info {
    text-align: left;
  }

  .all-flavors-text {
    font-size: 16px;
  }

}
