:root {
  --primary: #0597F2;
  --primary-dark: #023373;
  --secondary: #4ED9BF;
  --dark: #212121;
  --light: #f5f5f5;
  --gray: #757575;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  height: 70px;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-img {
  height: 40px;
  margin-right: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links a {
  padding: 8px 15px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.3s;
  border-radius: 4px;
}
.nav-links a:not(.btn):hover {
  color: var(--primary);
  background-color: #f0f0f0;
}
.btn.btn-nav {
  padding: 8px 20px;
  font-size: 0.9rem;
  margin-left: 20px;
}
.btn.btn-nav, .btn.btn-nav:hover {
    color: var(--white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--dark);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1170&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: all 0.4s ease-in-out;
}
.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}
.btn.btn-nav {
    transition: all 0.6s ease-in-out; 
}
.btn.btn-nav:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Sections */
section {
  padding: 70px 0;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: var(--dark);
}
p {
  font-size: 0.95rem;
}

/* How it works */
.how-it-works {
  background-color: var(--white);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}
.step {
  text-align: center;
}
.step-icon {
  position: relative;
  width: 70px;
  height: 70px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.8rem;
}
.step-icon span {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  border: 2px solid var(--white);
}
.step h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Pricing Section */
.pricing {
  background-color: var(--light);
}
.section-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px auto;
}
.billing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  background-color: #e0e0e0;
  border-radius: 8px;
  padding: 5px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.billing-btn {
  padding: 10px 20px;
  border: none;
  background-color: transparent;
  color: var(--dark);
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}
.billing-btn.active {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: stretch;
}
.pricing-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.plan-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}
.plan-description {
  color: var(--gray);
  margin-bottom: 25px;
  min-height: 45px;
}
.price-container {
  margin-bottom: 25px;
}
.price {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dark);
  display: inline;
}
.billing-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray);
}
.features-list {
  list-style: none;
  padding: 0;
  margin-top: 25px;
  border-top: 1px solid #eee;
  padding-top: 25px;
  flex-grow: 1;
}
.features-list li {
  margin-bottom: 15px;
  color: var(--dark);
  display: flex;
  align-items: center;
}
.features-list li i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}
/* ÚLTIMO AJUSTE: Separación para el texto en negrilla */
.features-list li strong {
  margin-left: 5px;
}
.features-list .fa-check {
  color: #28a745;
}
.features-list .fa-times {
  color: #e74c3c;
}
.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}
.pricing-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  position: relative;
}
.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Contact Section */
.contact {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/fondo_contactenos.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.contact h2 {
  color: var(--white);
}
.contact .contact-subtitle {
  color: #f0f0f0;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
}
.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--gray);
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 151, 242, 0.2);
}
textarea {
  resize: vertical;
}
.form-group .error-message {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: #bdbdbd;
  padding: 50px 0 20px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col .footer-logo {
  height: 35px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}
.footer-col p.footer-about {
  font-size: 0.85rem;
  line-height: 1.8;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
  font-size: 0.9rem;
}
.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s, transform 0.3s;
}
.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 0.85rem;
}
.footer-credit {
  font-size: 0.8rem;
  margin-top: 8px;
  color: var(--gray);
}
.footer-credit a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}
.footer-credit a:hover {
  text-decoration: underline;
}

/* Floating Buttons */
.whatsapp-float {
  text-decoration: none !important;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  text-decoration: none !important;
  transform: scale(1.1);
}
.scroll-to-top {
  position: fixed;
  bottom: 78px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

/* Responsive */
@media (min-width: 768px) {
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .nav-links a {
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 6px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -6px); }
  
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px 20px;
    gap: 0;
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
  }
  .nav-links.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav-links a {
    text-align: center;
    padding: 15px 10px;
    margin: 5px 0;
    font-size: 1rem;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: var(--dark);
    justify-content: center;
  }
  .nav-links a:hover {
    background-color: var(--primary-dark);
    color: var(--white);
  }
  .nav-links .btn.btn-nav {
      margin-left: 0;
      background-color: var(--primary);
      border-color: var(--primary);
      color: var(--white);
  }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col ul { padding: 0; }
  .social-icons { justify-content: center; }
}
@media (max-width: 420px) {
  .billing-toggle {
    flex-direction: column;
    width: 100%;
    padding: 10px;
  }
  .billing-btn {
    width: 100%;
    margin: 3px 0;
  }
}

/* Loader del Formulario */
.loader {
  width: 18px;
  height: 18px;
  border: 2px solid #FFF;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  display: none;
}
#form-status.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}
#form-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}