/* ============== VARIABLES & RESET ============== */
:root {
  --color-principal: #0a3480;
  --color-secundario: #f8f9fa;
  --color-texto: #2d3748;
  --color-accento: #e63946;
  --color-destacado: #f1faee;
  --sombra-suave: 0 4px 6px rgba(0, 0, 0, 0.05);
  --sombra-intensa: 0 10px 20px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background-color: var(--color-secundario);
  color: var(--color-texto);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============== TIPOGRAFÍA PREMIUM ============== */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--color-principal), #1a73e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  color: var(--color-principal);
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accento);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* ============== LAYOUT PRINCIPAL ============== */
.container {
  display: flex;
  min-height: 100vh;
  flex-direction: row-reverse;
}

.content {
  flex: 1;
  padding: 0;
  margin-right: 320px;
  min-height: 100vh;
}

/* ============== MENÚ LATERAL PROFESIONAL ============== */
.menu {
  width: 320px;
  background: linear-gradient(135deg, var(--color-principal), #0c2461);
  padding: 3rem 1.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.menu .logo {
  width: 140px;
  height: 140px;
  margin-bottom: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  background-color: white;
  padding: 8px;
  box-shadow: var(--sombra-intensa);
  transition: all 0.3s ease;
}

.menu .logo:hover {
  transform: scale(1.05);
}

.menu .logo:hover img {
  border-color: rgba(255, 255, 255, 0.6);
}

.menu h1 {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  text-align: center;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: white;
}

.menu-links {
  flex-grow: 1;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.5rem;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accento) rgba(255,255,255,0.1);
}

.menu li {
  margin: 0.8rem 0;
  position: relative;
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.8rem 1.2rem;
  background-color: transparent;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
}

.menu a i {
  margin-right: 12px;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accento);
  transition: all 0.3s;
}

.menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.menu a:hover::after {
  width: 80%;
}

.menu a.active {
  background-color: white;
  color: var(--color-principal);
  font-weight: 600;
}

.menu a.active::after {
  width: 80%;
  background: var(--color-accento);
}

/* ============== BOTÓN HAMBURGUESA ============== */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.hamburger-btn:hover {
  color: var(--color-accento);
  transform: scale(1.1);
}

/* ============== BANNER DESTACADO ============== */
.featured-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 52, 128, 0.8), transparent 60%);
}

/* ============== SECCIONES ============== */
section {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  margin: 2rem auto 5rem;
  max-width: 1200px;
  box-shadow: var(--sombra-suave);
  transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-intensa);
}

.service-card:nth-last-child(2) {
  margin-bottom: 1.5rem;
}

#contacto .contact-info h3 {
  margin-top: 1.5rem;
}

/* ============== COMPONENTES PROFESIONALES ============== */
.cta-button {
  display: inline-block;
  background: var(--color-accento);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(230, 57, 70, 0.2);
  text-decoration: none;
  margin-top: 1rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(230, 57, 70, 0.3);
  background: #d62d3a;
}

/* ============== FOOTER CORPORATIVO ============== */
footer {
  margin-right: 320px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--color-principal), #0c2461);
  padding: 4rem 2rem;
}

.payment-methods i {
  color: white;
  font-size: 2rem;
  margin-right: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-col h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
  color: white;
  margin-right: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: white;
}

.copyright {
  padding-top: 2rem;
  border-top: 1px solid rgb(255, 255, 255);
  font-size: 0.9rem;
  color: white;
  opacity: 0.8;
}

/* ============== RESPONSIVE DESIGN ============== */
@media (max-width: 1200px) {
  section {
    margin: 2rem 3rem 4rem;
  }
}

@media (max-width: 992px) {
  .menu {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    height: auto;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }
  
  .menu .logo {
    width: 50px;
    height: 50px;
    margin: 0;
  }
  
  .menu h1 {
    font-size: 1.2rem;
    margin: 0 auto 0 0.5rem;
    white-space: nowrap;
  }
  
  .menu-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, var(--color-principal), #0c2461);
    flex-direction: column;
    transition: right 0.3s ease;
    padding: 1rem 0;
    margin: 0;
    z-index: 999;
  }
  
  .menu-links.active {
    right: 0;
  }
  
  .menu li {
    margin: 0;
    width: 100%;
  }
  
  .menu a {
    padding: 1rem;
    border-radius: 0;
    justify-content: flex-start;
  }
  
  .hamburger-btn {
    display: block;
  }
  
  .content {
    margin-top: 70px;
    margin-right: 0;
  }
  
  footer {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 1.8rem;
    margin: 1.2rem;
    border-radius: 10px;
  }
  
  .featured-image {
    height: 300px;
  }

  footer {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  section {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .featured-image {
    height: 280px;
  }
  
  .menu-links {
    width: 100%;
  }
}