/* ============================================
   ERA Advisory Group LLC — Premium Site
   Exact Design Replication based on Reference
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@200..800&family=Inter:wght@300;400;500;600&family=Caudex:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* Exact Color Palette */
  --header-footer-bg: #0d1b2a;
  /* Deep elegant navy */
  --main-bg: #f5f7fa;
  /* Light textured gray */
  --card-bg: #ffffff;
  /* Warm white */
  --button-bg: #111111;
  /* Deep black */
  --text-main: #1e293b;
  /* Dark gray gần black */
  --text-sub: #64748b;
  /* Soft medium gray */
  --white: #ffffff;

  /* Fonts */
  --font-serif: 'Newsreader', serif;
  --font-sans: 'Inter', sans-serif;
}

/* ── Reset ──────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--main-bg);
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.96), rgba(245, 247, 250, 0.96)),
    url('Imagenes/ebd4096_original.jpg');
  /* Suble texture */
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-sub);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1800px;
  /* Even wider for ultra-wide monitors */
  margin: 0 auto;
  padding: 0 4vw;
  /* Fluid side padding */
}

/* ── Header ─────────────────────────────────── */
.header {
  background: linear-gradient(rgba(13, 27, 42, 0.75), rgba(13, 27, 42, 0.75)), url('Imagenes/ebd4096_original.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
  max-width: 100%;
  padding: 10px 20px;
  /* Reduced padding to move logo and menu to the edges */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--white);
}

.header-brand img {
  height: 80px;
  width: auto;
}

.header-brand span {
  font-family: 'Caudex', serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  /* Removed the dots */
}

.nav-list li a {
  color: #a0aec0;
  text-decoration: none;
  font-family: 'Caudex', serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  padding: 5px 0;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--white);
  border-bottom: 2px solid var(--white);
}

/* Contact button in header */
.nav-contact-btn {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px !important;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.nav-contact-btn:hover {
  background: var(--white);
  color: var(--header-footer-bg) !important;
  border-color: var(--white) !important;
}

/* ── Hero ───────────────────────────────────── */
.home-hero {
  padding: clamp(80px, 10vh, 140px) 0 clamp(120px, 15vh, 180px);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.4) 20%, transparent 60%), url('Imagenes/Junta.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Align content to the left */
}

.hero-content {
  max-width: 850px;
  /* Increased from 650px to fill more space */
  background: rgba(28, 48, 71, 0.75);
  /* Lightened Navy Blue with more transparency */
  padding: clamp(30px, 5vw, 60px);
  border-radius: 25px;
  backdrop-filter: blur(12px);
  /* Slightly more blur for the lighter background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Brighter border */
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(-40px);
  /* Moves the container upwards */
}

.hero-content h1 {
  font-family: 'Caudex', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  /* Slightly larger titles */
  color: var(--white);
  /* White for contrast against dark navy */
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-subheadline {
  font-family: 'Caudex', serif;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  max-width: 700px;
  /* Wider subheadline */
  color: rgba(255, 255, 255, 0.95);
  /* Even more white contrast */
  line-height: 1.6;
}

/* ── Cards ──────────────────────────────────── */
.home-cards {
  padding: 0 0 80px 0;
  /* Removed top padding as grid is pulled up */
}

.home-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

.home-card {
  background: linear-gradient(to bottom, #ffffff 60%, #eceef1 100%);
  padding: 0 35px 45px 35px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  /* Keeps image corners matched to card */
}

.home-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

.home-card-img-wrap {
  width: 100%;
  height: 260px;
  /* Larger image height */
  margin: 0 -35px 35px -35px;
  /* Technical pull to ignore parent padding */
  width: calc(100% + 70px);
  /* Fill the width to be flush */
  overflow: hidden;
}

.home-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Font for Question Marks */
@font-face {
  font-family: 'Clarendon LT';
  src: local('Clarendon LT'), local('ClarendonLT'), url('https://fonts.cdnfonts.com/s/15479/Clarendon LT.woff') format('woff');
}

.home-card h3 {
  font-family: 'Caudex', serif;
  font-size: 2.1rem;
  /* Significantly larger for elegance */
  color: #1a1a1a;
  margin-bottom: 25px;
  font-weight: 400;
}

.home-card h3 .qm-font {
  font-family: 'Clarendon LT', serif;
  font-weight: normal;
}

.home-card p,
.p-list p {
  font-family: 'Caudex', serif;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 12px;
  line-height: 1.4;
  text-align: center;
}

.p-list {
  flex: 1;
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Buttons ────────────────────────────────── */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  /* True black from reference */
  color: var(--white);
  padding: 12px 35px;
  border-radius: 100px;
  /* Perfect pill shape */
  text-decoration: none;
  font-family: 'Caudex', serif;
  /* Matching font */
  font-size: 1.1rem;
  gap: 15px;
  transition: all 0.3s ease;
  width: fit-content;
  margin: auto auto 0 auto;
}

.home-btn:hover {
  background: #333;
  transform: scale(1.05);
}

.home-btn .material-symbols-outlined {
  font-size: 1.2rem;
}

/* ── About Section ──────────────────────────── */
.about-section {
  padding: 80px 0;
  background: rgba(0, 0, 0, 0.02);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: flex-start;
}

.about-text h2 {
  font-family: 'Caudex', serif;
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

.about-text p {
  font-family: 'Caudex', serif;
  margin-bottom: 30px;
}

.about-text .home-btn {
  margin-left: 0;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-visual .team-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.about-visual .team-photos img {
  border-radius: 20px;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.about-more-list {
  background: var(--white);
  padding: 40px;
  border-radius: 40px;
  /* Matching card style */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.about-more-list h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.about-more-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
  list-style: none;
}


.about-more-list ul li {
  font-size: 0.9rem;
  position: relative;
  padding-left: 15px;
}

.about-more-list ul li::before {
  content: '»';
  position: absolute;
  left: 0;
  color: var(--text-sub);
}

/* ── Footer ─────────────────────────────────── */
.footer {
  background: linear-gradient(rgba(13, 27, 42, 0.75), rgba(13, 27, 42, 0.75)), url('Imagenes/ebd4096_original.jpg');
  background-size: cover;
  background-position: center;
  color: #cbd5e1;
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: var(--white);
  font-family: 'Caudex', serif;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-col p,
.footer-col ul li {
  font-family: 'Caudex', serif;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a svg {
  width: 24px;
  height: 24px;
}

.social-icons a:hover {
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ── Mobile ─────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: var(--white);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--header-footer-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 99;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list li a {
    font-size: 1.2rem;
  }

  .home-cards-grid {
    margin-top: -50px;
  }

  .hero-content {
    max-width: 100%;
    padding: 30px;
    margin: 0 10px;
  }

  .hero-content-wrapper {
    justify-content: center;
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  }

  .hero-subheadline {
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .home-cards-grid {
    grid-template-columns: 1fr;
  }

  .home-btn {
    width: 100%;
  }

  .header-brand img {
    height: 60px;
  }

  .header-brand span {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .about-more-list {
    padding: 25px 20px;
    border-radius: 25px;
  }

  .about-more-list ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ── ERA Page Specific Styles (Refined Position) ── */

.era-main {
  background-color: #f8fafc;
  color: var(--text-main);
  overflow-x: hidden;
}

.about-hero {
  position: relative;
  padding: 160px 0 120px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(to right, #f8fafc 45%, rgba(248, 250, 252, 0.9) 60%, transparent 100%),
    url('Imagenes/ebd4096_original.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Building image - Zoomed and moved to focus on architecture */
.about-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: url('Imagenes/Edificios.png') no-repeat;
  background-size: cover;
  background-position: center right;
  opacity: 0.9;
  mask-image: linear-gradient(to left, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent 100%);
  z-index: 1;
}

.about-hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  position: relative;
  z-index: 10;
}

.about-hero-text {
  max-width: 750px;
}

.about-hero-text .sub-title {
  font-family: 'Caudex', serif;
  font-size: 3.5rem;
  /* Significantly enlarged as requested */
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 25px;
  letter-spacing: -0.02em;
}

.about-hero-text .main-title {
  font-family: 'Caudex', serif;
  font-size: clamp(3.2rem, 6.5vw, 5.2rem);
  line-height: 1.02;
  color: #0f172a;
  margin-bottom: 45px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.about-description p {
  font-family: 'Caudex', serif;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 30px;
}

/* Values Grid (Matching Home Hero Style) */
.values-section {
  padding: 120px 0 160px;
  background:
    linear-gradient(rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 0.8)),
    url('Imagenes/ebd4096_original.jpg');
  background-size: cover;
  background-attachment: fixed;
  border-top: 1px solid #e2e8f0;
}

.values-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.value-item {
  background: rgba(28, 48, 71, 0.85);
  /* Matching hero-content from index */
  padding: 55px 40px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
}

.value-item:hover {
  transform: translateY(-15px);
  background: rgba(28, 48, 71, 0.95);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.value-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}

.value-header .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--white);
  opacity: 0.9;
}

.value-item h3 {
  font-family: 'Caudex', serif;
  font-size: 2rem;
  color: var(--white);
  font-weight: 500;
}

.value-item p {
  font-family: 'Caudex', serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
  .about-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-hero-text {
    margin: 0 auto;
  }

  .about-hero::after {
    display: none;
  }

  .values-container {
    grid-template-columns: 1fr;
  }
}

/* ── Team Page Specific Styles ──────────────── */

.equipo-page {
  padding: 80px 0;
  background: var(--main-bg);
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.96), rgba(245, 247, 250, 0.96)),
    url('Imagenes/ebd4096_original.jpg');
  background-attachment: fixed;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 30px;
  position: relative;
  z-index: 10;
}

.team-card {
  flex: 1 1 320px;
  max-width: 380px;
  background: var(--white);
  padding: 45px 30px;
  border-radius: 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.team-card-photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 25px;
  border: 4px solid var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: #f1f5f9;
}

.photo-top {
  object-position: top;
}

.team-card-body h3 {
  font-family: 'Caudex', serif;
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.team-role {
  font-family: 'Caudex', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #1e3a8a;
  /* Professional navy blue */
  margin-bottom: 0;
  font-weight: 500;
}

/* Shared Page Hero Style */
.page-hero {
  margin: 30px 40px 60px;
  padding: 130px 0 110px;
  border-radius: 25px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Specific Backgrounds */
.team-hero {
  background: linear-gradient(rgba(13, 27, 42, 0.4), rgba(13, 27, 42, 0.4)), url('Imagenes/Nuestro_Equipo.png');
  background-size: cover;
  background-position: center;
}

.contact-hero {
  background: linear-gradient(rgba(13, 27, 42, 0.4), rgba(13, 27, 42, 0.4)), url('Imagenes/Roosevelt.avif');
  background-size: cover;
  background-position: center;
}

.consulta-hero {
  background: linear-gradient(rgba(13, 27, 42, 0.4), rgba(13, 27, 42, 0.4)), url('Imagenes/Consulta.png');
  background-size: cover;
  background-position: center;
}

.servicios-hero {
  background: linear-gradient(rgba(13, 27, 42, 0.4), rgba(13, 27, 42, 0.4)), url('Imagenes/Nuestro_Servicio.png');
  background-size: cover;
  background-position: center;
}

.page-hero h1 {
  font-family: 'Caudex', serif;
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.page-hero p {
  font-family: 'Caudex', serif;
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Servicios Page Specific Styles ─────────── */

.servicios-page-content {
  padding: 100px 0;
  background: var(--main-bg);
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.96), rgba(245, 247, 250, 0.96)),
    url('Imagenes/ebd4096_original.jpg');
  background-attachment: fixed;
  background-size: cover;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  /* 6 columns to allow 3-top & 2-bottom centering */
  gap: 30px;
  margin-bottom: 80px;
}

/* Row 1: 3 cards (each span 2 columns) */
.servicios-grid .servicio-card:nth-child(1),
.servicios-grid .servicio-card:nth-child(2),
.servicios-grid .servicio-card:nth-child(3) {
  grid-column: span 2;
}

/* Row 2: 2 cards (each span 2 columns, centered) */
.servicios-grid .servicio-card:nth-child(4) {
  grid-column: 2 / span 2;
  /* Centered below 1 and 2 */
}

.servicios-grid .servicio-card:nth-child(5) {
  grid-column: 4 / span 2;
  /* Centered below 2 and 3 */
}

@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .servicios-grid .servicio-card:nth-child(n) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}

.servicio-card {
  flex: 0 1 350px;
  /* Base width of 350px, can grow slightly, but won't exceed container */
  background: var(--white);
  padding: 50px 40px;
  border-radius: 40px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servicio-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.1);
}

.servicio-icon-box {
  width: 80px;
  height: 80px;
  background: #f8fafc;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: #1e3a8a;
  /* Brand Navy */
  transition: all 0.3s ease;
}

.servicio-card:hover .servicio-icon-box {
  background: #1e3a8a;
  color: var(--white);
  transform: rotate(10deg);
}

.servicio-icon-box .material-symbols-outlined {
  font-size: 2.5rem;
}

.servicio-card h3 {
  font-family: 'Caudex', serif;
  font-size: 1.6rem;
  color: #0f172a;
  margin-bottom: 20px;
  font-weight: 500;
}

.servicio-card p {
  font-family: 'Caudex', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

.servicios-cta {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

/* ── Contact Page Specific Styles ───────────── */

.contacto-page {
  padding: 100px 0;
  background: var(--main-bg);
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.96), rgba(245, 247, 250, 0.96)),
    url('Imagenes/ebd4096_original.jpg');
  background-attachment: fixed;
  background-size: cover;
}

.contacto-list {
  max-width: 900px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto-item {
  background: var(--white);
  padding: 20px 40px;
  border-radius: 100px;
  /* Pill shape from reference */
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.contacto-item:hover {
  transform: translateX(10px);
}

.item-icon-wrap {
  width: 50px;
  height: 50px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
}

.item-icon-wrap .material-symbols-outlined {
  font-size: 1.5rem;
  color: #1e293b;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-family: 'Caudex', serif;
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.item-content p {
  font-family: 'Caudex', serif;
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

.contact-action-btn {
  font-family: 'Caudex', serif;
  padding: 10px 25px;
  border: 1px solid #1e293b;
  border-radius: 50px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-action-btn:hover {
  background: #1e293b;
  color: var(--white);
}

.contact-cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

/* ── Consulta Page Specific Styles ─────────── */

.consulta-page {
  padding: 80px 0;
  background: var(--main-bg);
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.96), rgba(245, 247, 250, 0.96)),
    url('Imagenes/ebd4096_original.jpg');
  background-attachment: fixed;
  background-size: cover;
}

.consulta-form-card {
  max-width: 1000px;
  /* Slightly wider to accommodate sidebar */
  margin: 0 auto;
  background: #d1d5db;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 280px 1fr;
  /* Sidebar + Form */
  overflow: hidden;
  /* Ensures sidebar corners match card */
  padding: 0;
  /* Remove internal padding to let sidebar be flush */
}

.consulta-form-sidebar {
  background: linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.85)), url('Imagenes/ebd4096_original.jpg');
  background-size: cover;
  background-position: center;
  padding: 50px 40px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.consulta-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.consulta-sidebar-item .material-symbols-outlined {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.consulta-sidebar-item h4 {
  font-family: 'Caudex', serif;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--white);
}

.consulta-sidebar-item p {
  font-family: 'Caudex', serif;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

.consulta-form-body {
  padding: 60px 50px;
}

@media (max-width: 900px) {
  .consulta-form-card {
    grid-template-columns: 1fr;
  }

  .consulta-form-sidebar {
    padding: 40px;
    text-align: center;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .consulta-sidebar-item {
    text-align: left;
  }
}

.consulta-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: #0f172a;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.contact-form-styled {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-form-styled label {
  display: block;
  font-family: 'Caudex', serif;
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 10px;
  padding-left: 10px;
}

.contact-form-styled input,
.contact-form-styled textarea {
  width: 100%;
  padding: 16px 25px;
  background: #e5e7eb;
  /* Slightly darker gray for input background */
  border: none;
  border-radius: 50px;
  /* Pill shape */
  font-family: 'Caudex', serif;
  font-size: 1.05rem;
  color: #374151;
  transition: all 0.3s ease;
}

.contact-form-styled input:focus,
.contact-form-styled textarea:focus {
  outline: none;
  background: #f3f4f6;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.contact-form-styled textarea {
  border-radius: 30px;
  min-height: 150px;
  resize: none;
}

.tel-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tel-icon {
  position: absolute;
  left: 20px;
  color: #6b7280;
  font-size: 1.4rem;
}

.tel-input-wrapper input {
  padding-left: 55px;
}

.form-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.form-success {
  display: none;
  background: #10b981;
  color: white;
  padding: 20px;
  border-radius: 30px;
  text-align: center;
  margin-top: 30px;
  font-family: 'Caudex', serif;
}

@media (max-width: 768px) {
  .consulta-form-card {
    padding: 0;
    border-radius: 30px;
  }

  .consulta-form-body {
    padding: 40px 25px;
  }

  .consulta-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .contacto-item {
    border-radius: 30px;
    padding: 25px;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
    justify-content: center;
  }

  .item-icon-wrap {
    margin-right: 0;
  }

  .item-content {
    width: 100%;
  }

  .page-hero {
    margin: 15px 15px 40px;
    padding: 80px 15px;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .team-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}