:root {
  --primary-color: #F70D4D;
  --secondary-color: #ff7fa8;
  --background-color: #fff0f5;
  --text-color: #333;
  --font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Reset bàsic */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  top: 0;
}

.logo {
  height: 50px;
  margin: 1rem 0;
}

.top-bar {
  background-color: #FEE6ED;
  font-size: 14px;
  padding: .5rem 0;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
}

.hero-img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  object-position: right;
  filter: brightness(0.8);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fadeInUp 1s ease-out forwards;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.3;
}

.hero-text p {
  text-align: left;
  margin: auto;
  padding: 1rem 0;
  max-width: 50%;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  border-color: transparent;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, var(--primary-color), #ff7fa8);
}

/* Benefits */
.benefits {
  padding: 4rem 0;
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit .icon {
  width: 60px;
  height: 60px;
}

.benefit h3 {
  color: var(--primary-color);
  margin-top: 1rem;
}

/* Comparison */
.comparison {
  background: #f9f9f9;
  padding: 4rem 0;
}

.comparison-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.comparison .col {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 320px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.comparison .col:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.comparison h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Testimonial */
.testimonial {
  padding: 4rem 0;
  text-align: center;
  font-style: italic;
}

.testimonial .author {
  margin-top: 1rem;
  font-weight: bold;
  color: #555;
}

/* Form */
.form-section {
  background: #fff0f5;
  padding: 4rem 0;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  margin-top: 20px;
  margin-bottom: 20px;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="url"],
.signup-form select {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

.signup-form label {
  font-weight: bold;
  text-align: left;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem 0;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.9rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text {
    width: 100%;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text p {
    max-width: 80%;
  }
  .comparison-grid {
    flex-direction: column;
    align-items: center;
  }
  .signup-form {
    padding: 1.5rem;
  }
}

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(0, 0); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}


/* Botó flotant Back to Top */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: none;
  z-index: 999;
}

#backToTop:hover {
  background-color: #ff7fa8;
  transform: translateY(-3px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 0;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  padding: 10px 15px;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}

.modal-body {
  padding: 2rem;
  text-align: center;
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.modal-icon.success {
  background-color: #d4edda;
  color: #155724;
}

.modal-icon.error {
  background-color: #f8d7da;
  color: #721c24;
}

.modal-body h3 {
  margin-bottom: 1rem;
  color: #333;
}

.modal-body p {
  color: #666;
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 20% auto;
    width: 95%;
  }

  .modal-body {
    padding: 1.5rem;
  }
}
