/* ============================
🎨 General Styles
============================ */
body {
    margin:0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    text-align: center;
  }
  #hero {
    min-height: 100vh;
  }
  
  /* ============================
🧭 Header Section (Updated with Flexbox)
============================ */
header {
    background-color: #ffffff;
    color: #fff;
    padding: 10px 20px;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  nav a.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #9900ff;
  }
  
  ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  
  ul li a {
    color: #686868;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s;
  }
  
  ul li a:hover {
    color: #2c1e4a;
  }
  
  
  /* ============================
🚀 Hero Section with Flexbox
============================ */
#hero {
  display: flex;
  height: 100vh;
  color: #ffffff;
  overflow: hidden;
  flex-direction: row;
}

/* Left side (Text) */
.hero-text {
  flex: 1;
  background-color: #2c1e4a; /* Optional background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px;
  text-align: left;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-button {
  background-color: #ffffff;
  color: #2c1e4a;
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #dddddd;
}

/* Right side (Image) */
.hero-image {
  flex: 1;
  background-image: url("Diseño\ sin\ título\ \(3\).png");
  background-size: cover;
  background-position: center;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .hero-text {
    padding: 60px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  #hero {
    flex-direction: column;
  }

  .hero-text, .hero-image {
    width: 100%;
    flex: none;
  }

  .hero-image {
    height: 300px;
  }

  .hero-text {
    padding: 40px 20px;
    text-align: center;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

  /* ============================
  🏢 About Section
  ============================ */
  #about {
    padding: 50px 20px;
    background-color: #ffffff;
     color: #2c1e4a;
  }
  
 /* ============================
📧 Contact Form with Flexbox
============================ */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
  }
  
/* ============================
📱 Responsive Design
============================ */

/* For Tablets */
@media (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: center;
    }
  
    ul {
      flex-direction: column;
      gap: 10px;
    }
  
    #hero {
      padding-top: 30%;
      height: 70vh;
    }
  
    #hero h1 {
      font-size: 2rem;
    }
  
    #hero p {
      font-size: 1rem;
    }
  }
  
  /* For Mobile Devices */
  @media (max-width: 480px) {
    nav {
      flex-direction: column;
      padding: 10px;
    }
  
    #hero {
      padding-top: 40%;
      height: 60vh;
    }
  
    #hero h1 {
      font-size: 1.5rem;
    }
  
    #hero p {
      font-size: 0.9rem;
    }
  
    .btn {
      padding: 8px 15px;
    }
  
    form {
      width: 90%;
    }
  
    input, textarea, button {
      font-size: 14px;
    }
  }

/* ============================
🔗 Footer Styles
============================ */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #7e7e7e;
    color: #fff;
    padding: 10px 20px;
    margin-top: 20px;
  }

/* ============================
🛠️ Services Section with Grid
============================ */
#services {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
    color: #2c1e4a;
  }
  
  .service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .service {
    background-color: #2c1e4a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
  }
  
  .service:hover {
    transform: translateY(-5px);
  }
  
  .service h3 {
    margin-top: 0;
    color: #ffffff;
  }
  
  .service p {
    color: #ffffff;
  }  

  
/* ============================
🛡️ Seguros Section (Insurance)
============================ */
#seguros {
  display: flex;
  flex-direction: row; /* side-by-side */
  height: 100vh;
  overflow: hidden;
  background-color: #f9f9f9;
  color: #333;
  text-align: center;
  padding: 0; /* Remove inner padding so image fills its space */
}

.seguros-text {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px;
  text-align: left;
}
.seguros-button {
  background-color: #2c1e4a;
  color:#ffffff;
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.seguros-button:hover {
  background-color: #dddddd;
}

.seguros-image {
  flex: 1;
  background-image: url("Blue\ White\ Motivational\ Modern\ Aesthetic\ Sea\ Desktop\ Wallpaper\ \(2\).png"); /* Make sure file path is correct */
  background-size: cover;
  background-position: center;
  border-radius: 0; /* Optional */
}

@media (max-width: 768px) {
  #seguros {
    flex-direction: column;
  }

  .seguros-text,
  .seguros-image {
    width: 100%;
    flex: none;
  }

  .seguros-image {
    height: 300px;
  }

  .seguros-text {
    padding: 40px 20px;
    text-align: center;
    align-items: center;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
}



  /* ============================
🌟 Testimonials Section
============================ */
#testimonials {
    padding: 50px 20px;
    background-color: #f4f4f4;
    text-align: center;
  }
  
  .testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .testimonial {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
  }
  
  .testimonial:hover {
    transform: translateY(-5px);
  }
  
  .testimonial p {
    font-style: italic;
    color: #666;
  }
  
  .testimonial h4 {
    margin-top: 10px;
    color: #333;
  }
/* ============================
🌊 Smooth Scrolling
============================ */
html {
    scroll-behavior: smooth;
  }
  
/* ============================
📱 Mobile Menu Styles
============================ */
.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
  }
  
  @media (max-width: 768px) {
    ul {
      display: none;
      flex-direction: column;
      background-color: #333;
      width: 100%;
      position: absolute;
      top: 60px;
      left: 0;
      padding: 10px 0;
      z-index: 1000;
    }
  
    ul li {
      text-align: center;
      margin: 10px 0;
    }
  
    .menu-icon {
      display: block;
    }
  
    .show-menu {
      display: flex;
    }
  }

/* ============================
⬆️ Scroll to Top Button
============================ */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
  }
  
  .scroll-top-btn:hover {
    background-color: #e65c00;
  }
 
/* ============================
⚠️ Form Error Styles
============================ */
.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
  }

/* ============================
🧹 Clear Button Styles
============================ */
.clear-btn {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .clear-btn:hover {
    background-color: #e60000;
  }
  
