/* Variables CSS */
:root {
  --primary-color: #e19ef1;
  --primary-light: #14b8a6;
  --text-color: #333;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --heading-font: "TAN Angleton", sans-serif;
  --body-font: "Open Sans", sans-serif;
}

/* Reset y estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.section {
  padding: 60px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 50px;
  }
}

.section-header h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
}

.section-header p {
  font-size: 1rem;
  color: #666;
}

@media (min-width: 768px) {
  .section-header p {
    font-size: 1.1rem;
  }
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

@media (min-width: 768px) {
  .btn {
    padding: 12px 30px;
  }
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.main-header {
  padding: 12px 0;
}

@media (min-width: 768px) {
  .main-header {
    padding: 15px 0;
  }
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

@media (min-width: 768px) {
  .logo img {
    height: 60px;
  }
}

/* Menú de navegación */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  z-index: 101;
}

.menu-toggle:hover {
  color: var(--primary-light);
}

.menu-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.3);
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 100;
  padding-top: 70px;
  overflow-y: auto;
}

.nav-menu.active {
  right: 0;
}

@media (min-width: 992px) {
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    gap: 30px;
    box-shadow: none;
    padding-top: 0;
    overflow-y: visible;
    max-width: none;
  }
}

.nav-menu li {
  width: 100%;
}

@media (min-width: 992px) {
  .nav-menu li {
    width: auto;
    position: relative;
  }
}

.nav-menu a {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .nav-menu a {
    padding: 10px 0;
    border-bottom: none;
    position: relative;
  }
  .nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
  }
  .nav-menu a:hover::after,
  .nav-menu a.active::after {
    width: 100%;
  }
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

@media (max-width: 991px) {
  .nav-menu a:hover {
    background-color: rgba(15, 118, 110, 0.05);
  }
}

/* Overlay para el menú móvil */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    height: 80vh;
    min-height: 500px;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(184, 96, 170, 0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 700px;
    text-align: left;
  }
}

.hero-content h1 {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

@media (min-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
  }
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 992px) {
  .about-content {
    flex-direction: row;
    gap: 50px;
    align-items: center;
  }
}

.about-image {
  flex: 1;
  margin: 0 auto;
  max-width: 400px;
}

@media (min-width: 992px) {
  .about-image {
    max-width: none;
  }
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .about-text h3 {
    font-size: 2rem;
  }
}

.about-text .subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .about-text .subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
}

.credentials {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 768px) {
  .credentials {
    margin-top: 30px;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

.credential-item h4 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .credential-item h4 {
    margin-bottom: 15px;
  }
}

.credential-item ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .credential-item ul li {
    margin-bottom: 10px;
    font-size: 1rem;
  }
}

.credential-item ul li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
  height: 600px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-image {
    height: 600px;
  }
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .service-content {
    padding: 20px;
  }
}

.service-content h3 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 1.3rem;
}

@media (min-width: 768px) {
  .service-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
  }
}

.service-content p {
  font-size: 0.9rem;
  margin-top: auto;
}

@media (min-width: 768px) {
  .service-content p {
    font-size: 1rem;
  }
}

/* Success Cases Section */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
}

.case-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.case-image {
  height: 600px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

.case-content {
  padding: 15px;
}

@media (min-width: 768px) {
  .case-content {
    padding: 20px;
  }
}

.case-content h3 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.case-type {
  color: #666;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.case-details {
  margin-bottom: 12px;
}

.case-details p {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .case-details p {
    font-size: 1rem;
  }
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.testimonial {
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 5px;
  font-style: italic;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .testimonial {
    padding: 15px;
    font-size: 1rem;
  }
}

.testimonial-author {
  margin-top: 8px;
  text-align: right;
  font-weight: 600;
  font-style: normal;
  font-size: 0.9rem;
}


/* Gallery Section - Modificado para coincidir con casos de éxito */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
  height: 100%;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  height: 600px;
  overflow: hidden;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}
/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

.contact-info {
  background-color: var(--primary-color);
  color: white;
  padding: 25px;
  border-radius: 10px;
  order: 2;
}

@media (min-width: 768px) {
  .contact-info {
    padding: 30px;
  }
}

@media (min-width: 992px) {
  .contact-info {
    order: 1;
  }
}

.contact-info h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

@media (min-width: 768px) {
  .contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}

.info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .info-item {
    gap: 15px;
    margin-bottom: 25px;
  }
}

.info-item i {
  font-size: 1.3rem;
  color: white;
  margin-top: 3px;
}

@media (min-width: 768px) {
  .info-item i {
    font-size: 1.5rem;
  }
}

.info-item h4 {
  font-family: var(--heading-font);
  margin-bottom: 3px;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .info-item h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
  }
}

.info-item p {
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .info-item p {
    font-size: 1rem;
  }
}

.social-links h4 {
  font-family: var(--heading-font);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .social-links h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
  }
}

.social-icons {
  display: flex;
  gap: 12px;
}

@media (min-width: 768px) {
  .social-icons {
    gap: 15px;
  }
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
  .social-icons a {
    width: 40px;
    height: 40px;
  }
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.contact-form {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  order: 1;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 30px;
  }
}

@media (min-width: 992px) {
  .contact-form {
    order: 2;
  }
}

.contact-form h3 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

@media (min-width: 768px) {
  .contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}

.form-group {
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .form-group {
    margin-bottom: 20px;
  }
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .form-group label {
    margin-bottom: 8px;
    font-size: 1rem;
  }
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 1rem;
  }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}

/* Map Section */
.map-section {
  height: 300px;
}

@media (min-width: 768px) {
  .map-section {
    height: 400px;
  }
}

.map-container {
  height: 100%;
  width: 100%;
}

.map-container iframe {
  height: 100%;
  width: 100%;
}

/* Footer */
.footer {
  background-color: #c6da52;
  color: rgb(0, 0, 0);
  padding: 40px 0 20px;
}

@media (min-width: 768px) {
  .footer {
    padding: 60px 0 20px;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (min-width: 576px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 40px;
  }
}

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: #000000;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-logo p {
    font-size: 0.9rem;
  }
}

.footer h3 {
  font-family: var(--heading-font);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .footer h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
  }
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-links ul li,
  .footer-services ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
}

.footer-links a {
  color: #000000;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-services ul li {
  color: #000000;
}

.footer-contact p {
  color: #000000;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-contact p {
    margin-bottom: 10px;
    gap: 10px;
    font-size: 0.9rem;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #000000;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    padding-top: 20px;
    font-size: 0.9rem;
  }
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .whatsapp-btn {
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Estilos para notificación de éxito */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #10b981;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-weight: 600;
  font-family: Arial, sans-serif;
  display: none;
}
