/* Variables CSS */
:root {
  --primary-color: #2c5f8d;
  --secondary-color: #4a8bc2;
  --accent-color: #e67e22;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  font-size: 16px;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
}

/* Header */
header {
  background-color: var(--bg-white);
}

.header-image {
  width: 100%;
  height: auto;
}

/* Navegación */
nav {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-menu li {
  flex: 1;
}

.nav-menu a {
  display: block;
  color: white;
  text-align: center;
  padding: 15px 10px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 15px;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Contenido principal */
main {
  padding: 40px 20px;
  min-height: 60vh;
}

.page-title {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
}

/* Grid de contenido */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.content-column {
  padding: 20px;
}

.content-text {
  text-align: justify;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.8;
}

.content-image {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.image-left {
  float: left;
  margin: 0 20px 20px 0;
  max-width: 300px;
}

.image-center {
  margin: 20px auto;
  display: block;
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.service-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.service-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-list {
  list-style: none;
  text-align: left;
  padding: 0;
}

.service-list li {
  padding: 8px 0;
  color: var(--text-light);
  position: relative;
  padding-left: 25px;
}

.service-list li:before {
  content: "✓";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Información de contacto */
.contact-info {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  margin: 30px 0;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-item {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item strong {
  color: var(--primary-color);
  min-width: 120px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

footer a {
  color: white;
  text-decoration: underline;
}

footer a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
  }

  .nav-menu.active {
    display: flex;
  }

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

  .nav-menu a {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .image-left {
    float: none;
    margin: 20px auto;
    max-width: 100%;
  }

  .page-title {
    font-size: 1.5rem;
  }

  main {
    padding: 20px 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .page-title {
    font-size: 1.3rem;
  }

  .content-column {
    padding: 10px;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-item strong {
    min-width: auto;
  }
  
  .contact-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-header img {
    max-width: 150px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Utilidades */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

/* Clases de utilidad adicionales */
.max-width-150 {
  max-width: 150px;
}

.max-width-225 {
  max-width: 225px;
}

.inline-block {
  display: inline-block;
}

.flex-images {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Estilos para h2 en contenido */
.content-text h2 {
  color: var(--primary-color);
  margin-top: 30px;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Estilos para enlaces en mapas */
a.map-link {
  display: block;
}

a.map-link:hover img {
  opacity: 0.9;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Contenedor flex para imagen y título en contacto */
.contact-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-header h3 {
  margin: 0;
}
