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

html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
}

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

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 {
  padding: 15px 0;
}

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

.hero .logo {
  width: 336px;
  max-width: 100%;
}

.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);
  width: 100%;
}

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

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

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

  .hero .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;
}

/* Benefits */
.benefits {
  text-align: center;
}

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

.benefits .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.benefit {
  flex: 0 1 calc(33.333% - 20px);
  text-align: center;
  padding: 15px;
}

.benefit-img {
  width: 300px;
  height: 330px;
  margin: 0 auto 20px;
  background: #ffc300;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit:nth-child(1) .benefit-img {
  background-image: url(../img/mantenimiento.webp);
}

.benefit:nth-child(2) .benefit-img {
  background-image: url(../img/modelos.webp);
}

.benefit:nth-child(3) .benefit-img {
  background-image: url(../img/asesoria.webp);
}

.benefit p {
  font-size: 16px;
  line-height: 1.4;
  color: #333;
}

@media (max-width: 768px) {
  .benefit {
    flex: 0 1 100%;
  }

  .benefit-img {
    width: 150px;
    height: 180px;
  }
}

/* Categories */
.categories h2 {
  font-weight: bold;
  font-size: 45px;
  text-align: center;
}

.categories p {
  font-size: 25px;
  text-align: center;
}

.categories .buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.categories .btn-secondary {
  flex: 1 1 250px;
  background: var(--primary-color);
  text-transform: uppercase;
  color: var(--secondary-color);
  font-weight: bold;
  text-align: center;
  padding: 15px;
}

/* Operation */
.operation {
  margin: 40px 0;
  min-height: 400px;
  color: #fff;
  background: url('../img/optimiza.webp') center center / cover no-repeat;
}

.operation-grid {
  display: grid;
  min-height: 400px;
}

.operation-content {
  display: grid;
  align-content: center;
  justify-content: end;
  text-align: right;
  padding: 20px;
  max-width: 50%;
  margin-left: auto;
  text-align: center;
}

.operation-content h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.operation-content pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 16px;
  margin-bottom: 10px;
}

.operation-content .btn {
  display: inline-block;
  background: #FFC300;
  color: #000;
  text-decoration: none;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 5px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .operation-content {
    max-width: 90%;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
  }
}

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

.policies .content {
  display: flex;
  padding: 20px 0;
}

.policies .text {
  flex: 1 1 50%;
  padding: 0 20px;
}

.policies ul.no-list-style > li {
  margin-bottom: 20px;
}

.policies ul ul {
  margin-left: 20px;
}

.policies .image {
  flex: 1 1 50%;
  text-align: center;
  max-width: 50%;
}

.policies .image img {
  max-height: 400px;
  object-fit: cover;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .policies .content {
    flex-direction: column;
  }

  .policies .image, .policies .text {
    max-width: 100%;
    padding: 10px 0;
  }
}

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

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

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

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

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

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

.contact-form button {
  background: #FFC300;
  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%;
  font-size: 20px;
}

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

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

}

/*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%);
  }
}