:root {
  --primary: #1a365d;
  --secondary: #2d5c8a;
  --accent: #c9ab81;
  --light: #f8f9fa;
  --dark: #2d3748;
  --gray: #718096;
  --light-gray: #e2e8f0;
  --font-family: "Titillium Web", sans-serif;
  --font-secondary: "Montserrat", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 3.6rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

h3 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.6rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}



/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo-img {
  height: 55px;
  /* ajusta según el tamaño que desees */
  width: auto;
  display: block;
  object-fit: contain;
  /* mantiene proporción sin deformar */
}

/* Centrado vertical dentro del header */
.logo a {
  display: flex;
  align-items: center;
}

/* Si el logo necesita margen para separarse del menú */
.logo-img {
  margin-right: 10px;
}

nav ul {
  display: flex;
}

nav li {
  margin-left: 30px;
}

nav a {
  font-weight: 500;
  position: relative;
}

nav a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover:after {
  width: 100%;
}

.mobile-menu {
  display: none;
  font-size: 2.4rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(
      135deg,
      rgba(26, 54, 93, 0.9) 0%,
      rgba(45, 92, 138, 0.8) 100%
    ),
    url("/img/hero.webp");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  height: 650px;
}

.hero h1 {
  font-size: 5.6rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-btns .btn {
  padding: 15px 35px;
}

.btn-light {
  background-color: white;
  color: var(--primary);
}

.btn-light:hover {
  background-color: var(--light-gray);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
  background-color: white;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 30px;
}

.about-features {
  margin-top: 30px;
}

.feature {
  display: flex;
  margin-bottom: 25px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--accent);
  font-size: 2.4rem;
  flex-shrink: 0;
}

.feature-content h3 {
  margin-bottom: 10px;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Services Section */

.services {
  background-color: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--accent);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--primary);
  font-size: 3.2rem;
}

.service-card h3 {
  margin-bottom: 15px;
}

.btn-lightt {
  background-color: #2d3748;
  color: var(--primary);
}

.btn-lightt:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Values Section */
.values {
  background-color: white;
}

.values-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.values-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.value-item {
  display: flex;
  align-items: flex-start;
}

.value-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.value-content h3 {
  margin-bottom: 10px;
}

.values-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.values-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.testimonials .section-title h2 {
  color: white;
}

.testimonials .section-title h2:after {
  background-color: var(--accent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1.8rem;
}

.author-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
}

/* Contact Section */
.contact {
  background-color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary);
  font-size: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-text h4 {
  margin: 0;
  font-size: 1.8rem;
}

.contact-text p {
  margin: 0;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  background-color: #25d366;
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
}

.whatsapp-btn i {
  margin-right: 10px;
  font-size: 2rem;
}

.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo h2 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  color: white;
}

.footer-logo h2:after {
  display: none;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.footer-links h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 60px;
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-container,
  .values-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  nav ul {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero p {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Agregar estas correcciones al final de tu archivo CSS */

/* Menú móvil - Correcciones */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 999;
  }

  nav ul.show {
    display: flex;
  }

  nav li {
    margin: 0;
    text-align: center;
  }

  nav a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
  }

  nav a:last-child {
    border-bottom: none;
  }

  .mobile-menu {
    display: block;
    z-index: 1000;
  }

  /* Asegurar que el header tenga posición relativa para el menú desplegable */
  header {
    position: relative;
  }
}

/* Estilos para Nosotros */
.about-hero {
  padding: 260px 0 100px;
  background: linear-gradient(
      135deg,
      rgba(26, 54, 93, 0.9) 0%,
      rgba(45, 92, 138, 0.8) 100%
    ),
    url("/img/hero-nosotros.webp");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  height: 650px;
}

.about-hero h1 {
  font-size: 4.8rem;
  margin-bottom: 20px;
}

.about-hero p {
  font-size: 2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

.team-section {
  padding: 80px 0;
  background-color: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-card {
  background-color: var(--light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-image {
  height: 250px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-info {
  padding: 25px;
  text-align: center;
}

.team-info h3 {
  margin-bottom: 5px;
}

.team-info .position {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 15px;
}

.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 4.8rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.stat-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  font-weight: 600;
}

.history-section {
  padding: 80px 0;
  background-color: var(--light);
}

.history-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.history-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.history-image img {
  width: 100%;
  height: auto;
  display: block;
}

.timeline {
  position: relative;
  margin-top: 40px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 30px;
}

.timeline-year {
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
}

.timeline-content h4 {
  margin-bottom: 10px;
}

/* Estilos para página de Servicios */

.hero-servicios {
  padding: 260px 0 100px;
  background: linear-gradient(
      135deg,
      rgba(26, 54, 93, 0.9) 0%,
      rgba(45, 92, 138, 0.8) 100%
    ),
    url("/img/hero-servicios.webp");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  height: 650px;
}

.hero-servicios p {
  font-size: 2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

.services-detailed {
  background-color: var(--light);
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-content h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.service-features {
  margin: 25px 0;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-features i {
  color: var(--accent);
  margin-right: 10px;
  font-size: 1.4rem;
}

.service-detail-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Proceso de trabajo */
.process-section {
  background-color: white;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.process-step {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.process-step h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

/* Estilos para página de Blog */

.hero-blog {
  padding: 260px 0 100px;
  background: linear-gradient(
      135deg,
      rgba(26, 54, 93, 0.9) 0%,
      rgba(45, 92, 138, 0.8) 100%
    ),
    url("/img/hero-blog.webp");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  height: 650px;
}

.hero-blog p {
  font-size: 2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

.blog-section {
  background-color: var(--light);
}

.blog-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.blog-post {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post:hover .post-image img {
  transform: scale(1.1);
}

.post-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.post-content {
  padding: 30px;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--gray);
}

.post-meta i {
  margin-right: 5px;
}

.post-content h2 {
  margin-bottom: 15px;
}

.post-content h2 a {
  color: var(--dark);
  transition: color 0.3s ease;
}

.post-content h2 a:hover {
  color: var(--accent);
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  margin-top: 15px;
}

.read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Sidebar del blog */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--light-gray);
}

.categories li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
}

.categories a {
  display: flex;
  justify-content: space-between;
  color: var(--dark);
  transition: color 0.3s ease;
}

.categories a:hover {
  color: var(--accent);
}

.categories span {
  background-color: var(--light);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 1.2rem;
}

.popular-post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post-image {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-content h4 {
  margin-bottom: 5px;
  font-size: 1.6rem;
}

.popular-post-content h4 a {
  color: var(--dark);
  transition: color 0.3s ease;
}

.popular-post-content h4 a:hover {
  color: var(--accent);
}

.popular-post-content span {
  font-size: 1.2rem;
  color: var(--gray);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter-form input {
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1.6rem;
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: white;
  border-radius: 4px;
  color: var(--dark);
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background-color: var(--primary);
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .service-detail,
  .blog-container {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .post-meta {
    flex-direction: column;
    gap: 10px;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

/* Estilos para página de Contacto */
.contact-page {
  background-color: var(--light);
}

.contact-page-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

/* Sidebar de información de contacto */
.hero-contacto {
  padding: 260px 0 100px;
  background: linear-gradient(
      135deg,
      rgba(26, 54, 93, 0.9) 0%,
      rgba(45, 92, 138, 0.8) 100%
    ),
    url("/img/hero-contacto.webp");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  height: 650px;
}

.hero-contacto p {
  font-size: 2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-card {
  background-color: white;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.contact-info-card > p {
  margin-bottom: 30px;
  color: var(--gray);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-text h4 {
  margin-bottom: 5px;
  font-size: 1.8rem;
}

.contact-text p {
  margin-bottom: 5px;
  color: var(--dark);
  font-weight: 500;
}

.contact-text span {
  font-size: 1.4rem;
  color: var(--gray);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.whatsapp-btn,
.phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.whatsapp-btn {
  background-color: #25d366;
  color: white;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
}

.phone-btn {
  background-color: var(--primary);
  color: white;
}

.phone-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

.whatsapp-btn i,
.phone-btn i {
  margin-right: 10px;
  font-size: 1.8rem;
}

.office-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.office-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Formulario principal */
.contact-form-main {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  margin-bottom: 15px;
  color: var(--primary);
}

.form-header h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.contact-form .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 5px;
  flex-shrink: 0;
}

.form-checkbox label {
  margin-bottom: 0;
  font-size: 1.4rem;
  line-height: 1.4;
}

.form-checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.8rem;
  width: 100%;
}

.btn-large i {
  margin-right: 10px;
}

/* Sección del mapa */
.map-section {
  background-color: white;
}

.map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-info {
  padding: 30px;
  background-color: var(--light);
  border-radius: 8px;
}

.map-info h3 {
  margin-bottom: 25px;
  color: var(--primary);
}

.transport-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.transport-option {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.transport-option i {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.transport-option h4 {
  margin-bottom: 5px;
  font-size: 1.6rem;
}

.transport-option p {
  margin-bottom: 5px;
  color: var(--dark);
}

.transport-option span {
  font-size: 1.2rem;
  color: var(--gray);
}

/* Sección de FAQ */
.faq-section {
  background-color: var(--light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--light);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--dark);
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer p {
  padding-bottom: 25px;
  margin: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-page-container,
  .map-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-form-main {
    padding: 30px 20px;
  }

  .contact-info-card {
    padding: 30px 20px;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question h3 {
    font-size: 1.6rem;
  }

  .faq-answer {
    padding: 0 20px;
  }
}

/* Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-text h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.8rem;
}

.cookie-text p {
  margin: 0;
  color: var(--dark);
  font-size: 1.4rem;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.btn-cookie-preferences {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-cookie-reject {
  background-color: var(--light-gray);
  color: var(--dark);
}

.btn-cookie-accept {
  background-color: var(--primary);
  color: white;
}

.btn-cookie-preferences:hover {
  background-color: var(--light);
}

.btn-cookie-reject:hover {
  background-color: #d1d5db;
}

.btn-cookie-accept:hover {
  background-color: var(--secondary);
}

/* Estilos para páginas legales */
.legal-content {
  background-color: var(--light);
}

.legal-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
}

.legal-nav {
  position: sticky;
  top: 100px;
  height: fit-content;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-nav h3 {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--light-gray);
  color: var(--primary);
}

.legal-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-nav a {
  color: var(--gray);
  font-size: 1.4rem;
  transition: color 0.3s ease;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}

.legal-nav a:hover {
  color: var(--primary);
}

.legal-nav a:last-child {
  border-bottom: none;
}

.legal-main {
  background-color: white;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.last-updated {
  background-color: var(--light);
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 40px;
  border-left: 4px solid var(--accent);
}

.last-updated p {
  margin: 0;
  color: var(--dark);
}

.legal-section {
  margin-bottom: 50px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--light-gray);
}

.legal-section h3 {
  color: var(--secondary);
  margin: 25px 0 15px;
  font-size: 2rem;
}

.legal-section p {
  line-height: 1.8;
  margin-bottom: 15px;
}

.legal-section ul {
  margin: 20px 0;
  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--dark);
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--secondary);
}

.corporate-info {
  background-color: var(--light);
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
}

.info-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-item strong {
  min-width: 200px;
  color: var(--primary);
}

.contact-legal {
  background-color: var(--light);
  padding: 30px;
  border-radius: 8px;
  margin-top: 50px;
  border-left: 4px solid var(--primary);
}

.contact-legal h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.contact-legal p {
  margin-bottom: 10px;
}

/* Responsive para páginas legales */
@media (max-width: 992px) {
  .legal-container {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 768px) {
  .legal-main {
    padding: 30px 20px;
  }

  .info-item {
    flex-direction: column;
    gap: 5px;
  }

  .info-item strong {
    min-width: auto;
  }
}

/* Modal de Preferencias de Cookies */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background-color: white;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h3 {
  margin: 0;
  color: var(--primary);
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray);
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.cookie-modal-close:hover {
  color: var(--dark);
}

.cookie-modal-body {
  padding: 30px;
}

.cookie-category {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--light-gray);
}

.cookie-category:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.cookie-toggle {
  position: relative;
  margin-top: 5px;
}

.cookie-toggle input {
  display: none;
}

.cookie-toggle-label {
  display: block;
  width: 50px;
  height: 25px;
  background-color: var(--light-gray);
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-toggle-label:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.cookie-toggle input:checked + .cookie-toggle-label {
  background-color: var(--primary);
}

.cookie-toggle input:checked + .cookie-toggle-label:after {
  transform: translateX(25px);
}

.cookie-toggle input:disabled + .cookie-toggle-label {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.cookie-category-info h4 {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 1.6rem;
}

.cookie-category-info p {
  margin: 0;
  color: var(--gray);
  font-size: 1.4rem;
  line-height: 1.5;
}

.cookie-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--light-gray);
  text-align: right;
}

/* Responsive para cookies */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cookie-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cookie-modal-content {
    margin: 20px;
  }

  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding: 20px;
  }
}

/* Estilos para mensajes del formulario */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: 500;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.error-message {
  color: #dc3545;
  font-size: 1.2rem;
  margin-top: 5px;
  display: block;
}

.form-loading {
  text-align: center;
  padding: 20px;
  color: var(--primary);
}

.form-loading i {
  margin-right: 10px;
}

/* Mejoras de usabilidad */
.form-control:invalid {
  border-color: #28a745;
}

.form-control:valid {
  border-color: #28a745;
}

/* Estado del botón */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
