/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -----------------------------
   ESTILO GLOBAL - FONDO TENUE + AZUL MARINO
-------------------------------*/
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0a1f3a;
  position: relative;
  min-height: 100vh;
  margin: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/fondo-despacho.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.15;
  z-index: -1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

:root {
  --color-bg: #0a1f3a;
  --color-primary: #ffffff;
  --color-secondary: #d4af37;
  --color-light: #ffffff;
  --color-gray: #152a4a;
  --border-gold: 2px solid var(--color-secondary);
}

/* -----------------------------
   HEADER Y LOGO + TEXTO
-------------------------------*/
.header {
  background-color: rgba(10, 31, 58, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-primary);
  padding: 1.2rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: var(--border-gold);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-img {
  height: 80px;
  width: auto;
  max-width: 250px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.03);
}

.logo-text {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .logo-img {
    height: 65px;
    max-width: 200px;
  }

  .logo-text {
    font-size: 1.2rem;
  }
}

/* -----------------------------
   MENÚ RESPONSIVE
-------------------------------*/
.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-list a:hover {
  color: var(--color-secondary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 70px;
    left: -100%;
    background-color: rgba(10, 31, 58, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
    height: calc(100vh - 70px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 3rem 0;
    transition: left 0.4s ease;
    z-index: 999;
    border-top: var(--border-gold);
  }

  .nav-list.show {
    left: 0;
  }
}

/* -----------------------------
   HERO SECTION
-------------------------------*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  text-align: center;
  padding-top: 90px;
  position: relative;
}

.hero-content {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-content h1 span {
  color: var(--color-secondary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #ffffff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: none;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-bg);
  border: 2px solid var(--color-secondary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-secondary);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.6);
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 85vh;
    padding-top: 80px;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  .btn-primary {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 80vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* -----------------------------
   SERVICIOS
-------------------------------*/
.services {
  padding: 5rem 0;
  background-color: rgba(15, 35, 60, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  margin: 3rem auto;
  max-width: 95%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: rgba(25, 45, 75, 0.7);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--color-secondary);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.service-card p {
  color: #e0e0e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* -----------------------------
   NOSOTROS
-------------------------------*/
.about {
  padding: 5rem 0;
  background-color: rgba(15, 35, 60, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  margin: 3rem auto;
  max-width: 95%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-box {
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--color-secondary);
  background-color: rgba(25, 45, 75, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mv-box h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mv-box p {
  text-align: justify;
  line-height: 1.7;
  color: #e0e0e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* -----------------------------
   FORMULARIO DE CONTACTO CENTRADO
-------------------------------*/
.contact-section {
  padding: 5rem 0;
  background-color: rgba(15, 35, 60, 0.8);
  backdrop-filter: blur(4px);
  margin: 3rem auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section .section-title {
  color: white;
  margin-bottom: 2.5rem;
  text-align: center;
}

.contact-wrapper-centered {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  margin-top: 1rem;
  padding: 14px 30px;
  font-size: 1.1rem;
  align-self: center;
}

.contact-info-centered {
  width: 100%;
  color: white;
  background-color: rgba(25, 45, 75, 0.7);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.contact-info-centered h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--color-secondary);
}

.contact-info-centered p {
  margin: 0.8rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
}

.social-links-small {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 1.3rem;
}

.social-links-small a {
  color: white;
  transition: color 0.3s ease;
}

.social-links-small a:hover {
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 0;
  }

  .contact-info-centered {
    padding: 1.5rem;
  }

  .contact-wrapper-centered {
    gap: 2rem;
  }
}

/* -----------------------------
   FOOTER
-------------------------------*/
.footer {
  background-color: rgba(10, 31, 58, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
  border-top: var(--border-gold);
  margin-top: 3rem;
}

.footer-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-content p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #ccc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  padding: 12px 30px;
  width: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
  background-color: white;
  color: var(--color-bg);
  text-shadow: none;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  padding: 12px 30px;
  border: none;
  width: auto;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
}

.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.3rem;
}

.social-links a {
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
  color: var(--color-secondary);
  transform: translateY(-3px);
  text-shadow: 0 2px 4px rgba(212, 175, 55, 0.4);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* -----------------------------
   MEDIA QUERIES
-------------------------------*/
@media (max-width: 768px) {
  .mission-vision {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.8rem;
  }
}