:root {
  --primary-color: #FFC300;
  --secondary-color: #414141;
  --text-color: #333;
}

html, body {
  overflow-x: hidden; /* como último recurso */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
}

ul.no-list-style {
  list-style: none;
}

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

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 0 20px 80px;
}

.hero header {
  color: #fff;
  padding: 15px 0;
}

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

.hero header .logo {
  width: 336px;
}

.hero .phone {
  background: var(--primary-color);
  border-radius: 20px;
}

.hero .phone a {
  color: var(--secondary-color);
  display: inline-block;
  padding: 10px 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
}

.hero .phone a i {
  font-size: 25px;
}

.hero .titles {
  padding: 100px 0;
}

.hero h1 {
  font-size: 66px;
  font-weight: bold;
  text-transform: uppercase;
}

.hero p {
  font-size: 35px;
  font-weight: bold;
  color: var(--primary-color);
}

.hero .btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 5px;
  font-weight: bold;
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero header .container {
    flex-direction: column;
    gap: 10px;
  }

  .hero header .logo {
    width: 80%;
    max-width: 250px;
  }

  .hero header .phone a {
    padding: 8px 20px;
    font-size: 16px;
  }

  .hero .titles {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 20px;
  }
}

/* Sections */
section {
  padding: 40px 20px;
}

/* Normas */
.normas {
  background: url('../img/foto_fondo.webp') center/cover no-repeat;
  position: relative;
  color: #000;
  padding: 40px 20px;
}

.normas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.normas .container {
  position: relative;
  z-index: 2;
}

.normas h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

.norma {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.norma-number {
  font-size: 80px;
  font-weight: bold;
  color: #000;
  position: relative;
}

.norma-number::before,
.norma-number::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background: #ffc300;
}

.norma-number::before {
  top: 0;
  left: -20px;
}

.norma-number::after {
  bottom: 0;
  right: -20px;
}

.norma-text {
  padding-left: 30px;
}

.norma-text p {
  margin-bottom: 10px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .norma {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .norma-number {
    font-size: 60px;
  }
}

/* Benefits */
.benefits {
  text-align: center;
  padding: 40px 20px;
}

.benefits h2 {
  font-size: 45px;
  font-weight: bold;
}

.benefits .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 15px;
}

.benefit {
  display: flex;
  align-items: center;
  flex: 0 1 45%;
  gap: 20px;
  text-align: left;
}

.benefit-img {
  min-width: 150px;
  min-height: 150px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
}

.benefit-text h3 {
  font-size: 18px;
  font-weight: bold;
}

.benefit-text p {
  font-size: 16px;
}

@media (max-width: 768px) {
  .benefit {
    flex-direction: column;
    text-align: center;
  }

  .benefit-img {
    margin-bottom: 10px;
  }
}

/* Solution */
.solution-banner {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: left;
  padding: 200px 20px;
}

.solution-banner h2 {
  font-size: 52px;
  font-weight: bold;
  max-width: 600px;
  line-height: 1.2;
  padding-left: 50px;
}

.solution .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.solution h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.solution-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.solution-list ul {
  flex: 1 1 45%;
  list-style: disc inside;
}

.solution-list li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .solution-banner h2 {
    font-size: 28px;
  }

  .solution-list {
    flex-direction: column;
  }

  .solution-list ul {
    flex: 1 1 100%;
  }
}

/* Phrase */
.phrase-container {
  background-size: cover;
  background-position: center;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phrase-container span {
  background: #ffc300;
  color: #000;
  font-weight: bold;
  font-size: 20px;
  padding: 10px 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .phrase-container {
    height: 150px;
  }

  .phrase-container span {
    font-size: 16px;
    padding: 8px 12px;
  }
}

/* Contact */
.contact h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-image {
  display: flex;
}

.contact-image img {
  object-fit: contain;
  max-height: 100%;
}

.contact-form form {
  display: grid;
  gap: 10px;
}

.contact-form .row {
  display: flex;
  gap: 10px;
}

.contact-form input,
.contact-form button {
  padding: 15px;
  font-size: 14px;
  margin: 10px 0;
}

.contact-form button {
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.contact-info {
  margin-top: 20px;
  text-align: center;
}

.contact-info .whatsapp {
  display: inline-block;
  background: #25D366;
  color: #fff;
  font-weight: bold;
  padding: 10px;
  text-decoration: none;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 20px;
}

.contact-info p,
.contact-info a {
  margin: 15px 0;
  color: #000;
  text-decoration: underline;
  font-size: 18px;
}

/* Responsive contact */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .row {
    flex-direction: column;
  }

  .contact-image img {
    width: 100%;
  }
}

/*Modal */
#success-modal {
  display: none;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  background: #fff;
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  text-align: center;
  width: 90%;
  max-width: 400px;
  animation: fadeIn 0.3s ease-out;
}

#success-modal h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

#success-modal p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555;
}

#success-modal button {
  background: var(--primary-color);
  color: var(--secondary-color);
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

#success-modal button:hover {
  background: #ffb100;
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -30%);
  }
}