@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy-deep: #1B2B3A;
  --navy-medium: #2C3E50;
  --slate: #556B7C;
  --warm-beige: #E8DCC8;
  --cream: #F5F1E8;
  --rose-gold: #B76E79;
  --soft-gold: #C9A961;
  --white: #FFFFFF;
  --charcoal: #2D2D2D;

  --font-serif: 'Libre Baskerville', serif;
  --font-display: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;

  --shadow-soft: 0 2px 20px rgba(27, 43, 58, 0.08);
  --shadow-medium: 0 8px 30px rgba(27, 43, 58, 0.12);
  --shadow-hover: 0 12px 40px rgba(27, 43, 58, 0.15);
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* === HEADER SUPERIOR === */
.header-dorado {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--soft-gold);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-dorado-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.5px;
}

.header-item i {
  color: var(--soft-gold);
  font-size: 0.9rem;
}

.header-item.redes {
  gap: 1rem;
}

.header-item.redes a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 97, 0.15);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 50%;
  color: var(--soft-gold);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.header-item.redes a:hover {
  background: var(--soft-gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

/* === HEADER PRINCIPAL === */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 43, 58, 0.1);
  z-index: 999;
  box-shadow: 0 2px 15px rgba(27, 43, 58, 0.05);
  transition: top 0.2s ease;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 75px;
  transition: all 0.3s ease;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2.8rem;
  align-items: center;
}

.nav ul li a {
  position: relative;
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--soft-gold);
  transition: width 0.3s ease;
}

.nav ul li a:hover,
.nav ul li a.active {
  color: var(--rose-gold);
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
  width: 100%;
}

.nav ul li.contacto a {
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--soft-gold) 100%);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.25);
}

.nav ul li.contacto a::after {
  display: none;
}

.nav ul li.contacto a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.35);
  color: var(--white);
}

/* === HERO SERVICIOS === */
.hero-abogados {
  width: 100%;
  height: 360px;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 110px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(27,43,58,0.88) 0%, rgba(44,62,80,0.75) 60%, rgba(27,43,58,0.5) 100%);
}

.hero-content-abg {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 1200px;
  width: 100%;
  padding: 0 3rem;
  text-align: left;
}

.hero-content-abg h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -1px;
}

/* === INTRO SERVICIOS === */
.intro-servicios {
  max-width: 1000px;
  margin: 5rem auto 3rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.intro-servicios h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.intro-servicios p {
  font-size: 1.1rem;
  color: var(--slate);
  margin-bottom: 2rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}

.intro-items {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.intro-items .item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 1rem;
}

.intro-items .item span {
  color: var(--soft-gold);
}

/* === GRID SERVICIOS === */
.grid-servicios {
  max-width: 1200px;
  margin: 3rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem;
}

.card-servicio {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
}

.card-servicio:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-background {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.card-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,43,58,0.92) 0%, rgba(27,43,58,0.4) 60%, transparent 100%);
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: white;
  padding: 2rem 1.8rem;
  width: 100%;
}

.card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.card-content p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  color: var(--cream);
  line-height: 1.7;
}

.btn-detalles2 {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--soft-gold);
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.btn-detalles2:hover {
  color: var(--warm-beige);
  gap: 0.8rem;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-medium) 100%);
  color: white;
  padding: 6rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(183, 110, 121, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  position: relative;
}

.cta-section p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--cream);
  position: relative;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--soft-gold) 100%);
  color: var(--white);
  padding: 1.2rem 3rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(183, 110, 121, 0.3);
  position: relative;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(183, 110, 121, 0.4);
}

/* === TESTIMONIOS === */
.testimonios {
  padding: 6rem 3rem;
  background: var(--cream);
}

.testimonios h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--navy-deep);
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -1px;
}

.testimonios-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 5rem;
}

.testimonios-slider {
  display: flex;
  gap: 2.5rem;
  transition: transform 0.5s ease;
}

.testimonio-card {
  flex: 0 0 calc(33.333% - 1.8rem);
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(27, 43, 58, 0.05);
}

.testimonio-card::before {
  content: '"';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--rose-gold);
  opacity: 0.15;
  line-height: 1;
}

.testimonio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--soft-gold);
}

.perfil {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.foto-perfil {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose-gold);
}

.testimonio-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy-deep);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.fecha {
  font-size: 0.85rem;
  color: var(--slate);
  display: block;
}

.rating {
  color: var(--soft-gold);
  margin: 10px 0;
  font-size: 18px;
}

.estrella-icon {
  width: 18px;
  height: 18px;
  margin-right: 2px;
}

.google-icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 26px;
  height: 26px;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.verificado img {
  width: 30px;
  height: 30px;
  margin-left: 6px;
  vertical-align: middle;
  padding-bottom: 5px;
  cursor: pointer;
}

.texto {
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.8;
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.5s ease;
  position: relative;
  z-index: 1;
}

.texto.expandido {
  max-height: 1000px;
  overflow: visible;
}

.leer-mas {
  background: none;
  border: none;
  color: var(--rose-gold);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: block;
}

.leer-mas:hover {
  color: var(--soft-gold);
}

.testimonios-container .prev,
.testimonios-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--rose-gold), var(--soft-gold));
  color: var(--white);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
}

.testimonios-container .prev:hover,
.testimonios-container .next:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
}

.testimonios-container .prev { left: 0; }
.testimonios-container .next { right: 0; }

/* === FOOTER === */
.footer {
  background: var(--navy-deep);
  padding: 5rem 3rem 2.5rem;
  color: var(--cream);
  border-top: 3px solid var(--soft-gold);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.footer-logo {
  width: 200px;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 50%;
  color: var(--soft-gold);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--soft-gold);
  color: var(--navy-deep);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.8rem;
  font-size: 1.15rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin: 0.9rem 0;
}

.footer-col ul li a {
  color: var(--cream);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--soft-gold);
  transform: translateX(5px);
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--rose-gold), var(--soft-gold));
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.8px;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
}

.footer-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
}

.footer-contact-box {
  background: rgba(201, 169, 97, 0.08);
  padding: 1.8rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(201, 169, 97, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.footer-contact-box:hover {
  background: rgba(201, 169, 97, 0.12);
  border-color: var(--soft-gold);
}

.footer-contact-box i {
  font-size: 1.8rem;
  color: var(--soft-gold);
}

.footer-contact-box .phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 0.3rem;
}

.footer-contact-box span {
  font-size: 0.85rem;
  color: var(--cream);
}

.footer-email,
.footer-address {
  margin: 1.1rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.footer-email i,
.footer-address i {
  color: var(--soft-gold);
  margin-top: 0.2rem;
}

.footer-email a {
  color: var(--cream);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-email a:hover {
  color: var(--soft-gold);
}

.footer-bottom {
  margin-top: 2.5rem;
  text-align: center;
  padding-top: 2rem;
}

.footer-bottom a {
  margin: 0 1.5rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--soft-gold);
}

/* === MODAL === */
.modal-consulta {
  position: fixed;
  inset: 0;
  background: rgba(27, 43, 58, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content-consulta {
  background: var(--white);
  width: 90%;
  max-width: 720px;
  padding: 4rem 3.5rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 20px 60px rgba(27, 43, 58, 0.3);
  border-top: 4px solid var(--soft-gold);
}

.cerrar-modal {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--slate);
  font-weight: 300;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cerrar-modal:hover {
  color: var(--rose-gold);
  background: rgba(183, 110, 121, 0.1);
  transform: rotate(90deg);
}

.modal-subtitle {
  color: var(--rose-gold);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-display);
  color: var(--navy-deep);
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

.form-consulta label {
  font-weight: 600;
  margin-top: 1.6rem;
  display: block;
  color: var(--navy-deep);
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.form-consulta input,
.form-consulta textarea {
  width: 100%;
  padding: 1.1rem 1.3rem;
  border-radius: 6px;
  border: 1.5px solid rgba(27, 43, 58, 0.15);
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  margin-top: 0.6rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-consulta input:focus,
.form-consulta textarea:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}

.form-consulta textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.check-politica {
  font-size: 0.9rem;
  margin-top: 2.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--slate);
}

.check-politica input[type="checkbox"] {
  width: auto;
  margin-top: 0.3rem;
  accent-color: var(--rose-gold);
  cursor: pointer;
}

.check-politica a {
  color: var(--rose-gold);
  text-decoration: none;
}

.btn-enviar {
  width: 100%;
  background: linear-gradient(135deg, var(--rose-gold), var(--soft-gold));
  color: var(--white);
  padding: 1.3rem;
  font-size: 1rem;
  margin-top: 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.3);
}

.btn-enviar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(183, 110, 121, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .grid-servicios { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-dorado-container,
  .header-container { padding: 1rem 1.5rem; }
  .nav ul { flex-direction: column; gap: 1rem; }
  .hero-abogados { margin-top: 8.5rem; }
  .grid-servicios { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .modal-content-consulta { padding: 3rem 2rem; }
  .testimonio-card { flex: 0 0 100%; }
  .testimonios-container { padding: 2rem 3rem; }
}

@media (max-width: 480px) {
  .hero-content-abg h1 { font-size: 2.5rem; }
}