* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

html,
body {
  width: 100%;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 80px;
}


.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 1100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation: none;
}

.section {
  padding: 80px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* ===== NOSOTROS ===== */
.nosotros {
  background: linear-gradient(to bottom, #f8f9fb, #ffffff);
  padding: 120px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 70px;
}

.historia-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
}

.historia-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f44040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  flex-shrink: 0;
}

h2,
h3,
h4, strong {
  color: #2c3e50;
}

.historia-content h3 {
  margin-bottom: 20px;
}

.historia-content p,
.mv-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.valor-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 40px 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
}

.valor-card h4 {
  margin-bottom: 10px;
}

.valor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.valor-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}


.nosotros h2 {
  text-align: center;
  margin-bottom: 50px;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.nosotros-valores ul {
  list-style: none;
  padding: 0;
}

.nosotros-valores li {
  margin-bottom: 15px;
}

.mision-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #f8f9fb;
  padding: 40px;
  border-radius: 12px;
}

.mision-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: 0.3s;
}

.mv-card h3 {
  margin-bottom: 20px;
}

.mv-card:hover {
  transform: translateY(-6px);
}

.mv-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: #f44040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

.valor-icon {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* Tooltip */
.tooltip-text {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  width: 220px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Flechita */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #2c3e50 transparent transparent transparent;
}

/* Mostrar tooltip */
.valor-card:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}


/* ===== COBERTURA===== */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  color: #555;
}

.cobertura {
  background: #f8f9fb;
}

.cobertura-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.cobertura-mapa img {
  width: 100%;
  max-width: 500px;
}

.cobertura-ciudades {
  display: grid;
  gap: 20px;
}

.ciudad-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.ciudad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.ciudad-card h4 {
  margin-bottom: 5px;
}

.cobertura-mapa iframe {
  width: 100%;
  height: 450px;
  border-radius: 12px;
}

#map {
  height: 500px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== CONTACTO ===== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.contacto-form button {
  padding: 12px;
  background: #f44040;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contacto {
  background: linear-gradient(to bottom, #eaebee, #ffffff);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacto-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}


/* INFO */
.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.info-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f44040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

/* FORM CARD */
.contacto-form {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Floating labels */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 0.95rem;
  transition: 0.3s;
  background: transparent;
}

.form-group textarea {
  min-height: 90px;
  resize: none;
}

.form-group label {
  position: absolute;
  left: 15px;
  top: 10px;
  color: #888;
  pointer-events: none;
  transition: 0.3s;
  background: white;
  padding: 0 5px;
}

/* Animación floating */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
  top: -10px;
  font-size: 0.75rem;
  color: #f44040;
}

/* Focus effect */
.form-group input:focus,
.form-group textarea:focus {
  border-color: #f44040;
  box-shadow: 0 0 0 3px rgba(244, 64, 64, 0.15);
}

/* Botón */
.btn-submit {
  width: 100%;
  padding: 15px;
  border-radius: 50px;
  border: none;
  background: #f44040;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #d93333;
  transform: translateY(-2px);
}

.contacto-header {
  margin-bottom: 5px;
  max-width: 600px;
}

.contacto-header h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.contacto-header p {
  margin-bottom: 30px;
  color: #666;
}

.beneficios-contacto {
  background: white;
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 15px;
}

.beneficio {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}


.info-card a {
  text-decoration: none;
  color: #f44040;
  font-weight: 500;
  transition: 0.3s;
}

.info-card a:hover {
  text-decoration: underline;
}


.btn-submit {
  position: relative;
  overflow: hidden;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  margin-left: 10px;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit.loading .btn-text {
  opacity: 0.6;
}

.btn-submit.loading .btn-loader {
  display: inline-block;
}


/* ===== OVERLAY ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 3000;
}

.cart-overlay.active {
  display: block;
}

/* ===== PANEL ===== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 95%;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  z-index: 3001;
}

.cart-drawer.active {
  right: 0;
}

/* HEADER */
.cart-header {
  padding: 20px;
  background: #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close {
  font-size: 1.5rem;
  cursor: pointer;
}

/* BODY */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ITEM */
.cart-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.cart-item-price {
  color: #f4b400;
  font-weight: bold;
}

.cart-clear {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid #f44040;
  color: #f44040;
  margin-bottom: 10px;
  cursor: pointer;
  border-radius: 6px;
}

.cart-clear:hover {
  background: #f44040;
  color: white;
}

/*Mianturas*/

.modal-thumbnails {
  display: flex;
  gap: 8px;
  margin: 10px 0 20px;
  justify-content: center;
}

.modal-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.modal-thumbnails img:hover {
  opacity: 1;
}

.modal-thumbnails img.active {
  border-color: #2c3e50;
  opacity: 1;
}

#modalImage {
  transition: opacity 0.3s ease;
}

#modalImage.fade-out {
  opacity: 0;
}

#modalImage.fade-in {
  opacity: 1;
}



/* FOOTER CAR*/
.cart-footer {
  padding: 20px;
  border-top: 1px solid #ddd;
}

.cart-subtotal {
  font-weight: bold;
  margin-bottom: 15px;
}

.cart-edit {
  width: 100%;
  padding: 12px;
  background: #2c3e50;
  color: white;
  margin-bottom: 10px;
  border: none;
}

.cart-pay {
  width: 100%;
  padding: 12px;
  background: #f4b400;
  border: none;
}

/*yo*/
.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}

.cart-remove {
  background: none;
  border: none;
  color: #f44040;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 5px;
}

/* ===== PORQUE ELEGIRNOS ===== */
.elegirnos {
  background: #f8f9fb;
  padding: 100px 20px;
}

.elegirnos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.elegir-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.4s ease;
}

.elegir-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.icon-circle {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f44040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

.elegir-card h3 {
  margin-bottom: 15px;
}

.elegir-card p {
  color: #555;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

  .nosotros-grid,
  .mision-vision,
  .contacto-grid {
    grid-template-columns: 1fr;
  }
}


@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation: whatsapp-pulse 1.5s infinite;
}


@media (max-width: 768px) {
  .cobertura-grid {
    grid-template-columns: 1fr;
  }

  .cobertura-mapa {
    text-align: center;
  }
}

/* FOOTER */

.footer {
  background: #1e2a3a;
  color: #ddd;
  padding: 80px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
}

.footer h3,
.footer h4 {
  color: white;
  margin-bottom: 20px;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a {
  text-decoration: none;
  color: #bbb;
  transition: 0.3s;
}

.footer a:hover {
  color: #f44040;
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #999;
}

.footer-social {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: 0.3s ease;
}

.social-icon:hover {
  background: #f44040;
  transform: translateY(-4px);
}


@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}
