/* Estilos de Ritmo Sereno 45 */

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #333;
  background-color: #F6F5EF;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  color: #4E9F3D;
}

p {
  margin-bottom: 1em;
}

a {
  color: #C84B31;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Cabecera */
.header {
  background-color: #4E9F3D;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.header .subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #F6F5EF;
}

/* Hero */
.hero {
  position: relative;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  max-width: 800px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #FFEECF;
}

.hero p {
  font-size: 1.2rem;
  color: #FFF8E7;
}

/* Bienvenida */
.welcome {
  padding: 50px 0;
  background-color: #F6F5EF;
}

.welcome-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.welcome-text {
  flex: 1 1 60%;
}

.welcome-text h2 {
  margin-bottom: 10px;
}

.welcome-image {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Programas */
.programs {
  padding: 50px 0;
  background-color: #FFF9E6;
}

.programs h2 {
  text-align: center;
  margin-bottom: 30px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.program-item {
  background-color: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 20px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.program-item:hover {
  transform: translateY(-4px);
}

.program-item h3 {
  margin-bottom: 8px;
  color: #C84B31;
}

.program-item .price {
  margin-top: 10px;
  font-weight: bold;
  color: #4E9F3D;
}

/* Testimonios */
.reviews {
  padding: 50px 0;
  background-color: #F7F6CF;
}

.reviews h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #C84B31;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.review-item {
  background-color: #fff;
  border-left: 4px solid #C84B31;
  border-radius: 6px;
  padding: 15px;
  font-style: italic;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.review-item span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #4E9F3D;
}

.review-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.review-form-wrapper h3 {
  margin-bottom: 15px;
  color: #4E9F3D;
}

.review-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-form-wrapper input,
.review-form-wrapper textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.review-form-wrapper button {
  background-color: #C84B31;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.review-form-wrapper button:hover {
  background-color: #A43B21;
}

/* Pop-up */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.popup-content button {
  margin-top: 20px;
  background-color: #C84B31;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.popup-content button:hover {
  background-color: #A43B21;
}

/* Contacto */
.contact {
  padding: 50px 0;
  background-color: #fff;
}

.contact h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #4E9F3D;
}

.contact p {
  text-align: center;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form label {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.contact-form .consent-label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.contact-form .consent-label input {
  margin-right: 8px;
}

.contact-form button {
  background-color: #4E9F3D;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #3E7E31;
}

/* Footer */
.footer {
  background-color: #4E9F3D;
  color: #fff;
  padding: 30px 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-info p {
  margin-bottom: 5px;
}

.footer-links a {
  color: #FFF9E6;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-container {
    flex-direction: column;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
