/*
Theme Name: Casalongue Bove & Asociados
Theme URI: https://example.com/
Author: Casalongue Bove & Asociados
Description: Tema de una sola página para el estudio Casalongue Bove & Asociados.
Version: 1.1.0
Text Domain: casalongue-bove
*/

html { scroll-behavior: smooth; }
body { margin: 0; }
#ep-page { width: 100%; min-height: 100vh; }

  #ep-page {
    --navy: #1c2739;
    --navy-deep: #12192a;
    --paper: #f4f1ea;
    --paper-line: #d8d2c2;
    --ink: #23262b;
    --burgundy: #6e1f2b;
    --gold: #a98046;
    font-family: 'PT Serif', Georgia, serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  #ep-page * { box-sizing: border-box; }
  #ep-page h1, #ep-page h2, #ep-page h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
  }
  #ep-page a { color: inherit; text-decoration: none; }
  #ep-page .ep-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
  }
  #ep-page .ep-rule {
    height: 1px;
    background: var(--paper-line);
    border: none;
    margin: 0;
  }

  /* NAV */
  #ep-page .ep-nav {
    background: var(--navy-deep);
    color: #eee7d8;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--gold);
  }
  #ep-page .ep-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    max-width: 1080px;
    margin: 0 auto;
  }
  #ep-page .ep-brand { display: flex; align-items: center; }
  #ep-page .ep-brand img { height: 52px; width: auto; display: block; filter: brightness(0) invert(1); }
  #ep-page .ep-brand span { color: var(--gold); }
  #ep-page .ep-menu { display: flex; gap: 28px; font-size: 0.95rem; }
  #ep-page .ep-menu a { border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s; }
  #ep-page .ep-menu a:hover { border-color: var(--gold); }
  #ep-page .ep-menu-toggle { display: none; background: none; border: 1px solid var(--gold); color: #eee7d8; font-size: 1rem; padding: 6px 10px; cursor: pointer; }

  /* HERO */
  #ep-page .ep-hero {
    background: var(--navy);
    color: #eee7d8;
    padding: 96px 0 80px;
    text-align: center;
    border-bottom: 4px solid var(--gold);
  }
  #ep-page .ep-hero-kicker {
    font-family: 'PT Serif', serif;
    font-style: italic;
    color: #c9bfa5;
    margin-bottom: 18px;
    font-size: 1.05rem;
  }
  #ep-page .ep-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    max-width: 780px;
    margin: 0 auto 14px;
  }
  #ep-page .ep-hero-sub {
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: #c9bfa5;
    margin: 0;
  }
  #ep-page .ep-hero p {
    max-width: 620px;
    margin: 0 auto 34px;
    color: #d8d0bd;
    font-size: 1.08rem;
  }
  #ep-page .ep-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy-deep);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    padding: 14px 34px;
    border: 1px solid var(--gold);
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s, color .2s;
  }
  #ep-page .ep-btn:hover { background: transparent; color: var(--gold); }
  #ep-page .ep-btn-outline {
    background: transparent;
    color: #eee7d8;
    border: 1px solid #eee7d8;
  }
  #ep-page .ep-btn-outline:hover { background: #eee7d8; color: var(--navy-deep); }

  /* SECTION */
  #ep-page .ep-section { padding: 76px 0; }
  #ep-page .ep-section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 14px;
  }
  #ep-page .ep-section-lede {
    color: #55524a;
    max-width: 620px;
    margin-bottom: 42px;
    font-size: 1.02rem;
  }

  /* SOBRE */
  #ep-page .ep-about {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 56px;
    align-items: start;
  }
  #ep-page .ep-about-portrait {
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #d8d2c2, #c3bca7);
    border: 1px solid var(--paper-line);
    overflow: hidden;
  }
  #ep-page .ep-about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  #ep-page .ep-about-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--navy);
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin: 26px 0;
  }
  #ep-page .ep-credentials {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    font-size: 0.95rem;
    color: #4a473f;
  }
  #ep-page .ep-credentials li {
    padding: 10px 0;
    border-top: 1px solid var(--paper-line);
  }

  /* ÁREAS DE PRÁCTICA */
  #ep-page .ep-areas { border-top: 1px solid var(--paper-line); }
  #ep-page .ep-area {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 26px 0;
    border-bottom: 1px solid var(--paper-line);
  }
  #ep-page .ep-area h3 {
    font-size: 1.15rem;
    color: var(--navy);
  }
  #ep-page .ep-area p { margin: 8px 0 0; color: #4a473f; font-size: 0.98rem; }

  /* NUESTRO EQUIPO */
  #ep-page .ep-team {
    background: var(--navy-deep);
    color: #eee7d8;
  }
  #ep-page .ep-team .ep-section-title { color: #eee7d8; }
  #ep-page .ep-team .ep-section-lede { color: #c9bfa5; }
  #ep-page .ep-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  #ep-page .ep-member { text-align: center; }
  #ep-page .ep-member-photo {
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #2a3550, #1c2739);
    border: 1px solid rgba(238,231,216,0.25);
    overflow: hidden;
    margin-bottom: 16px;
  }
  #ep-page .ep-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  #ep-page .ep-member h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    margin-bottom: 4px;
  }
  #ep-page .ep-member p {
    font-size: 0.9rem;
    color: #c9bfa5;
    margin: 0;
  }
  #ep-page .ep-team-photo {
    margin-top: 48px;
    border: 1px solid rgba(238,231,216,0.25);
  }
  #ep-page .ep-team-photo img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* TESTIMONIOS */
  #ep-page .ep-testimonial {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
  }
  #ep-page .ep-testimonial p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--navy);
  }
  #ep-page .ep-testimonial cite {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-size: 0.9rem;
    color: #6b6656;
  }

  /* CONTACTO */
  #ep-page .ep-contact {
    background: var(--paper);
    border-top: 1px solid var(--paper-line);
  }
  #ep-page .ep-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
  }
  #ep-page .ep-contact-info p { margin: 4px 0; }
  #ep-page .ep-contact-info h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--navy); }
  #ep-page form { display: flex; flex-direction: column; gap: 16px; }
  #ep-page label { font-size: 0.88rem; color: #4a473f; margin-bottom: 4px; display: block; }
  #ep-page input, #ep-page textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--paper-line);
    background: #fff;
    font-family: 'PT Serif', serif;
    font-size: 0.98rem;
    color: var(--ink);
  }
  #ep-page input:focus, #ep-page textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
  }
  #ep-page textarea { resize: vertical; min-height: 110px; }
  #ep-page .ep-form-msg { font-size: 0.9rem; color: var(--burgundy); min-height: 1.2em; }


  #ep-page .ep-contact-map { margin-top: 24px; border: 1px solid var(--paper-line); overflow: hidden; }
  #ep-page .ep-contact-map img { width: 100%; height: auto; display: block; }

  /* FOOTER */
  #ep-page footer {
    background: var(--navy-deep);
    color: #a49c85;
    padding: 32px 0;
    font-size: 0.88rem;
    text-align: center;
  }
  #ep-page footer a { color: #eee7d8; }

  @media (max-width: 780px) {
    #ep-page .ep-menu { display: none; }
    #ep-page .ep-menu-toggle { display: inline-block; }
    #ep-page .ep-about,
    #ep-page .ep-contact-grid { grid-template-columns: 1fr; }
    #ep-page .ep-team-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
    #ep-page .ep-area { grid-template-columns: 1fr; gap: 8px; }
  }

  @media (prefers-reduced-motion: reduce) {
    #ep-page * { transition: none !important; }
  }

  /* Alineación del texto de la sección El estudio */
  #ep-sobre .ep-about > div:last-child p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }

@media (max-width: 780px) {
  #ep-page .ep-nav-inner { position: relative; }
  #ep-page .ep-menu.ep-menu-open {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(169,128,70,.45);
    border-bottom: 1px solid var(--gold);
    padding: 8px 28px 14px;
  }
  #ep-page .ep-menu.ep-menu-open a { padding: 10px 0; }
}
