/*
Theme Name: Smart Bite Landing
Theme URI: https://example.com/smartbite-landing
Author: Smart Bite
Author URI: https://example.com
Description: Tema ligero para la landing page de Smart Bite, integrado con el plugin TC Hero Sections.
Version: 1.0.0
Text Domain: smartbite-landing
*/

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #212020;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
}

p{
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}

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

a:hover {
  color: #DB0E52;
}

footer a{
    text-decoration: underline;
}

nav a:hover{
    text-decoration: underline;
    color: #EFB730;
}

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

.sb-logo{
    padding: 0 30px;
    display: flex;
    justify-content: center;
}

.custom-logo{
    max-width: 160px;
}

/* Layout general de la landing */
.sb-page {
  min-height: 100vh;
  background-color: #ffffff;
}

.sb-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: #fff;
  text-align: center;
  background: transparent;
  transition: background-color 0.3s ease, position 0.3s ease;
}

header .sb-col {
    flex: 1 1 65%;
  }
header div.sb-col.sb-col--text  {
    padding: 10px 0;
  }

.sb-header.scrolled {
  position: fixed;
  background: #DB0E52;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sb-header.scrolled .sb-logo a,
.sb-header.scrolled .sb-nav-list a {
  color: #fff;
}

.sb-header.scrolled .sb-nav-list a:hover{
    color: #EFB730;
}

.sb-nav-list{
    padding: 0;
    margin: 0;
}

.sb-header ul li{
    list-style: none;
    display: inline-block;
    margin-right: 20px;
}

.sb-main{
  background-image: url(./img/logo_bkg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sb-section {
  position: relative;
  padding: 40px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero.sb-section{
    height: 100vh;
}  

#hero .sb-col.sb-col--text  {
    padding: 55px 0 5px 0;
}

.sb-section--hero {
  background: #DB0E52;
  color: #fff;
}
.sb-section--gradient {
    background: #EB3A74;
background: radial-gradient(circle, rgba(235, 58, 116, 1) 0%, rgba(219, 14, 82, 1) 50%);
  color: #fff;
}

.sb-section--yellow {
  background: #ffc52e;
  color: #fff;
}

.sb-section--green {
  background: #9bd45a;
}

/* Template CTA - Imagen full width con texto absoluto a la derecha */
.sb-section--cta {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.sb-section--cta__image {
  width: 100%;
  position: relative;
  height: 680px;
}

.sb-section--cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  display: block;
}

.sb-section--cta__content {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  width: 100%;
  padding: 20px;
  z-index: 10;
  color: #fff;
  font-size: 150%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Template End - Dos secciones: amarilla arriba (1/3), verde abajo (2/3) */
.sb-section--end {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 100vh;
}

.sb-section--end__bottom {
  background: #AAC74F;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  position: relative;
}

.sb-section--end__content {
  flex: 0 0 auto;
  max-width: 100%;
  width: 100%;
  padding-right: 0;
  margin-bottom: 40px;
  text-align: left;
  order: 1;
}

.sb-section--end__phone {
  flex: 0 0 auto;
  max-width: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  order: 2;
}

.sb-section--end__phone img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-right: -40px;
  margin-bottom: -40px;
}

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

.sb-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.sb-flex-start {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
}

.sb-flex--between {
  justify-content: space-between;
}

.sb-padding-left {
  padding-left: 0 !important;
}
.sb-padding-right {
  padding-right: 0 !important;
}

.sb-col {
  flex: 1 1 100%;
}

.sb-col--text {
  padding: 20px 0;
}

.sb-col--image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Orden para template features-left (mobile: texto arriba, imagen abajo) */
.sb-section--features-left .sb-col--text {
  order: 1;
}

.sb-section--features-left .sb-col--image {
  order: 2;
}

.sb-col--image--hero {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .sb-col--image--hero img{
    margin-bottom: -280px;
  }

.sb-badge {
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.sb-title{
    margin-bottom: 15px;
}

.sb-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.sb-list li {
  margin-bottom: 6px;
}

.sb-store-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.sb-store-buttons img {
  width: 140px;
}

/* FAQ */
.sb-faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.sb-faq-title {
  font-size: 32px;
  font-weight: 700;
  color: #212020;
  margin-bottom: 40px;
  text-align: left;
}

.sb-faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
}

.sb-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  color: #212020;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.3s ease;
}

.sb-faq-question:hover {
  color: #DB0E52;
}

.sb-faq-item.is-open .sb-faq-question {
  color: #212020;
  border-bottom: 2px solid #DB0E52;
  padding-bottom: 10px;
  margin-bottom: 10px;
  transition: border-bottom 0.3s ease, padding-bottom 0.3s ease, margin-bottom 0.3s ease;
}

.sb-faq-toggle {
  font-size: 24px;
  color: #DB0E52;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.sb-faq-item.is-open .sb-faq-toggle {
  transform: rotate(45deg);
}

.sb-faq-answer {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  padding-left: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.sb-faq-item.is-open .sb-faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 15px;
}

/* Footer */
.sb-footer {
  background: #f9f9fb;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.sb-footer-logo {
  max-width: 200px;
  height: auto;
  display: block;
  margin-bottom: 15px;
}

.sb-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.sb-footer-col {
  flex: 1 1 160px;
}

.sb-footer-bottom {
  text-align: center;
  color: #777;
}

/* Newsletter Form */
.sb-newsletter-form--inputs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.newsletter-form__message{
    margin-top: 10px;
}

.sb-newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 9999px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  color: #222;
  background: #fff;
  transition: border-color 0.3s ease;
  width: 100%;
}

.sb-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: #EB3A74;
}

.sb-newsletter-form input[type="email"]::placeholder {
  color: #999;
}

.sb-newsletter-submit {
  padding: 12px;
  background: #EB3A74;
  border: 2px solid #EB3A74;
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.sb-newsletter-submit:hover {
  background: #DB0E52;
  border-color: #DB0E52;
}

.sb-newsletter-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(235, 58, 116, 0.3);
}

.sb-newsletter-submit svg {
  width: 20px;
  height: 20px;
}

.sb-section--features-left .sb-col--image {
    position: relative;
    min-height: 500px;
  }

.sb-section--features-left .sb-col--image img {
    width: 520px;
    max-width: none;
    position: absolute;
    right: -215px;
  }

.sb-section--features-right .sb-col--image {
    position: relative;
    min-height: 500px;
  }

.sb-section--features-right .sb-col--image img {
    width: 520px;
    max-width: none;
    position: absolute;
    left: -160px;
  }

/* Responsivo */
@media (min-width: 768px) {
  /* Layout 40% texto / 60% imagen en escritorio para todas las secciones con .sb-col--text / .sb-col--image */
  .sb-col--text {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .sb-col--image, .sb-col--image--hero {
    flex: 0 0 55%;
    max-width: 55%;
  }

  /* En desktop, invertir el orden del template features-left para que la imagen quede a la izquierda */
  .sb-section--features-left .sb-col--text {
    order: 2;
  }

  .sb-section--features-left .sb-col--image {
    order: 1;
  }

  .sb-section {
    padding: 20px 80px;
  }
  .sb-header{
    padding: 20px 80px;
  }

  .custom-logo{
    max-width: 200px;
}

  header div.sb-col.sb-col--text {
    padding: 20px 0;
  }

  h1 {
    font-size: 38px;
  }
  h2 {
    font-size: 28px;
  }
  h3 {
    font-size: 22px;
  }
  h4 {
    font-size: 18px;
  }
  h5 {
    font-size: 16px;
  }
  h6 {
    font-size: 14px;
  }

  .sb-padding-left {
    padding-left: 5.5rem !important;
  }
  .sb-padding-right {
    padding-right: 2rem !important;
  }

  .sb-section--features-left .sb-col--image {
    position: relative;
    min-height: auto;
  }

  .sb-section--features-left .sb-col--image img {
    position: relative;
    right: -50px;
    width: auto;
    max-width: 100%;
  }

  .sb-section--features-right .sb-col--image {
    position: relative;
    min-height: auto;
  }

  .sb-section--features-right .sb-col--image img {
    position: relative;
    left: 50px;
    width: auto;
    max-width: 100%;
  }

  .sb-logo{
    padding: 0 30px;
    display: flex;
    justify-content: start;
    }

    #hero.sb-section {
        height: 80vh;
      }

    #hero .sb-col.sb-col--text  {
        padding: 20px 0;
    }

    .sb-col--image--hero img{
        margin-bottom: 0;
      }
}

@media (min-width: 1024px) {
  .sb-section {
    padding: 50px 80px;
  }
  .sb-header{
    padding: 20px 80px 0px 80px;
  }

  .sb-logo{
    padding: 0;
}

  h1 {
    font-size: 54px;
  }
  h2 {
    font-size: 42px;
  }
  h3 {
    font-size: 24px;
  }
  h4 {
    font-size: 20px;
  }
  h5 {
    font-size: 18px;
  }
  h6 {
    font-size: 16px;
  }

  /* Template CTA - Desktop: height automático y contenido a la derecha */
  .sb-section--cta__image {
    height: auto;
  }

  .sb-section--cta__content {
    top: 50%;
    bottom: auto;
    left: 10%;
    right: auto;
    transform: translateY(-50%);
    max-width: 50%;
    width: auto;
    text-align: left;
  }

  /* Template End - Desktop: ajustes específicos */
  .sb-section--end{
    min-height: 50vh;
  }
  .sb-section--end__bottom {
    flex-direction: row;
    align-items: center;
    padding: 40px 0;
    position: relative;
  }

  .sb-section--end__content {
    flex: 0 0 45%;
    max-width: 50%;
    padding-right: 60px;
    text-align: left;
    margin-bottom: 0;
    order: 1;
  }

  .sb-section--end__phone {
    flex: 0 0 55%;
    max-width: 45%;
    position: absolute;
    right: 0;
    bottom: 0;
    order: 2;
  }

  .sb-section--end__phone img {
    margin-right: 0;
    margin-bottom: 0;
  }
  .sb-newsletter-form input[type="email"] {
    width: auto;
  }

  .sb-col--image--hero img{
    margin-bottom: -320px;
  }
}

/* Contact Modal */
.sb-footer-contact {
  text-align: right;
  margin-right: 15px;
}

.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sb-btn--primary {
  background: #EB3A74;
  color: #fff;
}

.sb-btn--primary:hover {
  background: #DB0E52;
}

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

.sb-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sb-contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sb-contact-modal--open {
  display: flex;
}

.sb-contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.sb-contact-modal__dialog {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  margin: 0 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.sb-contact-modal__title {
  font-size: 24px;
  margin: 0 0 12px;
}

.sb-contact-modal__intro {
  margin: 0 0 20px;
  font-size: 14px;
  color: #555;
}

.sb-contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.sb-contact-form__field {
  margin-bottom: 16px;
}

.sb-contact-form__field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.sb-contact-form__field input,
.sb-contact-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sb-contact-form__field input:focus,
.sb-contact-form__field textarea:focus {
  border-color: #EB3A74;
  box-shadow: 0 0 0 1px rgba(235, 58, 116, 0.25);
}

.sb-contact-form__field--recaptcha {
  margin-top: 8px;
}

.sb-contact-form__actions {
  margin-top: 8px;
  text-align: right;
}

.sb-contact-form__message {
  margin-top: 12px;
  font-size: 14px;
}

.sb-contact-form__message--success {
  color: #0f9d58;
}

.sb-contact-form__message--error {
  color: #d93025;
}

.sb-modal-open {
  overflow: hidden;
}

