/* ============================================
   ESTUDIO JURÍDICO — ELEGANTE / CLÁSICO
   ============================================ */

/* ---------- RESET ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy:       #0d1b2a;
    --navy-light: #1b2838;
    --navy-mid:   #1a1a3e;
    --blue:       #2a2a5e;
    --gold:       #c9a84c;
    --gold-light: #d4af37;
    --gold-pale:  #f0dfa0;
    --white:      #f7f0e3;
    --off-white:  #efe5d3;
    --cream:      #faf6ed;
    --cream-dark: #e8dcc8;
    --gray:       #8a8a8a;
    --gray-light: #b0b0b0;
    --text:       #2c2c2c;
    --text-light: #5a5a5a;
    --shadow:     0 4px 24px rgba(0,0,0,.12);
    --shadow-lg:  0 12px 48px rgba(0,0,0,.18);
    --radius:     8px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Inter', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---------- UTILITY ---------- */
.gold { color: var(--gold); }

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--navy);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .875rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .02em;
    transition: var(--transition);
    cursor: pointer;
}

.btn--primary {
    background: var(--gold);
    color: var(--navy);
    border: 2px solid var(--gold);
}
.btn--primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.4);
}
.btn--outline:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--white);
}

.btn--full { width: 100%; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(13,27,42,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,.15);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(13,27,42,.98);
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--white);
    transition: var(--transition);
}
.header__logo:hover { opacity: .85; }

.logo-icon {
    font-size: 1.75rem;
    color: var(--gold);
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1.2;
}

.logo-slogan {
    font-size: .65rem;
    color: var(--gold-pale);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 300;
}

/* NAV */
.nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav__link {
    position: relative;
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 400;
    color: rgba(255,255,255,.7);
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: var(--transition);
    border-radius: var(--radius);
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%; right: 50%;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    border-radius: 2px;
}
.nav__link:hover,
.nav__link.active {
    color: var(--white);
}
.nav__link:hover::after,
.nav__link.active::after {
    left: 1rem; right: 1rem;
}

/* HEADER ACTIONS */
.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-admin {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.25rem;
    background: rgba(201,168,76,.12);
    border: 1px solid rgba(201,168,76,.35);
    border-radius: var(--radius);
    color: var(--gold);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: var(--transition);
}
.btn-admin:hover {
    background: var(--gold);
    color: var(--navy);
}
.btn-admin__icon {
    font-size: 1rem;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO / INICIO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 2rem 4rem;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(13,27,42,.97) 0%, rgba(26,26,62,.92) 50%, rgba(42,42,94,.88) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" x="10" font-size="80" opacity=".03">&#9878;</text></svg>');
    background-size: cover;
    z-index: -1;
}

.hero__bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--white), transparent);
}

.hero__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp .8s ease-out;
}

.hero__label {
    display: inline-block;
    padding: .4rem 1.25rem;
    background: rgba(201,168,76,.15);
    border: 1px solid rgba(201,168,76,.3);
    border-radius: 50px;
    color: var(--gold);
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero__text {
    font-size: 1.1rem;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* STATS */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    animation: fadeInUp 1s ease-out .3s both;
}

.stat {
    text-align: center;
}

.stat__number {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat__suffix {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold);
}

.stat__label {
    display: block;
    font-size: .8rem;
    color: var(--gray-light);
    margin-top: .35rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    padding: 2.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 0;
    background: var(--gold);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(201,168,76,.2);
}
.service-card:hover::before {
    height: 100%;
}

.service-card__icon {
    font-size: 2.25rem;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: .75rem;
}

.service-card__text {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   PAGE HEADER (shared)
   ============================================ */
.page-header {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--white), transparent);
}

.page-header__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--white);
    margin-bottom: .75rem;
    position: relative;
    z-index: 1;
}

.page-header__subtitle {
    font-size: 1.05rem;
    color: var(--gray-light);
    font-weight: 300;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   QUIÉNES SOMOS
   ============================================ */
.about {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    align-items: center;
}

.about__title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.about__content p {
    font-size: .95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about__image-placeholder {
    background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}
.about__image-placeholder p {
    font-size: .85rem;
    color: var(--gray-light);
    margin-top: .5rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* TEAM */
.team {
    padding: 4rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.team-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: var(--gold);
    border: 2px solid rgba(201,168,76,.25);
    overflow: hidden;
}

.team-card__name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: .25rem;
}

.team-card__role {
    font-size: .8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}

.team-card__desc {
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   NOVEDADES
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.news-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.news-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.news-card__image {
    height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
    position: relative;
}

.news-card--featured .news-card__image {
    height: 100%;
    min-height: 260px;
}

.news-card__badge {
    background: var(--gold);
    color: var(--navy);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .3rem .85rem;
    border-radius: 50px;
}

.news-card__body {
    padding: 1.5rem;
}

.news-card__date {
    font-size: .75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .5rem;
}

.news-card__title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: .75rem;
    line-height: 1.35;
}

.news-card__text {
    font-size: .88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   NOTICIAS
   ============================================ */
.noticias {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.noticia {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.noticia::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transition: var(--transition);
}
.noticia:hover {
    box-shadow: var(--shadow);
    border-color: rgba(201,168,76,.15);
}
.noticia:hover::before {
    transform: scaleY(1);
}

.noticia__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: .75rem;
}

.noticia__category {
    background: rgba(201,168,76,.12);
    color: var(--gold);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .25rem .75rem;
    border-radius: 50px;
}

.noticia__date {
    font-size: .8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.noticia__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: .75rem;
    line-height: 1.35;
}

.noticia__excerpt {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.noticia__link {
    font-size: .85rem;
    font-weight: 500;
    color: var(--gold);
    transition: var(--transition);
}
.noticia__link:hover {
    color: var(--gold-light);
}

/* ============================================
   CONTACTO
   ============================================ */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.contact__info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.contact__info-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}
.contact__info-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(201,168,76,.2);
}

.contact__info-icon {
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: .75rem;
    line-height: 1;
}

.contact__info-card h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: .5rem;
}

.contact__info-card p {
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* FORM */
.contact__form {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.contact__form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .875rem 1rem;
    font-size: .9rem;
    font-family: var(--font-sans);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    font-size: .9rem;
    color: var(--gray);
    pointer-events: none;
    transition: var(--transition);
}

.form-group textarea ~ label {
    top: 1rem;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -.5rem;
    left: .75rem;
    font-size: .7rem;
    background: var(--cream);
    padding: 0 .35rem;
    color: var(--gold);
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 500;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a8a' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    color: var(--white);
    padding-top: 4rem;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand .logo-icon {
    font-size: 1.5rem;
}

.footer__brand .logo-name {
    font-size: 1rem;
}

.footer__text {
    font-size: .85rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer__links h4 {
    font-family: var(--font-serif);
    font-size: .95rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer__links a {
    display: block;
    font-size: .85rem;
    color: var(--gray-light);
    padding: .3rem 0;
    transition: var(--transition);
}
.footer__links a:hover {
    color: var(--white);
    padding-left: .35rem;
}

.footer__bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: .8rem;
    color: var(--gray);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(.97);
    transition: var(--transition);
    text-align: center;
}
.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 1rem; right: 1.25rem;
    font-size: 1.75rem;
    color: var(--gray);
    transition: var(--transition);
    line-height: 1;
}
.modal__close:hover { color: var(--text); }

.modal__icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.modal__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: .5rem;
}

.modal__text {
    font-size: .88rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.modal__form .btn {
    margin-top: .5rem;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    background: var(--navy);
    color: var(--white);
    padding: 1rem 1.75rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(120%);
    transition: var(--transition);
    border-left: 3px solid var(--gold);
}
.toast.active {
    transform: translateY(0);
}

.toast__icon {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section {
    display: none;
    animation: fadeInUp .5s ease-out;
}
.section.active { display: block; }

/* Scroll-triggered fade */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   WHATSAPP WIDGET
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
}

.whatsapp-float__btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
}
.whatsapp-float__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

.whatsapp-float__btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,.3);
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}

.whatsapp-float__tooltip {
    background: var(--navy);
    color: var(--white);
    padding: .6rem 1rem;
    border-radius: var(--radius);
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow);
    position: relative;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    pointer-events: none;
}
.whatsapp-float__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--navy);
    border-right: none;
}
.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* WhatsApp Chat Panel */
.whatsapp-chat {
    position: fixed;
    bottom: 6.5rem;
    left: 2rem;
    z-index: 1500;
    width: 360px;
    max-height: 480px;
    background: var(--cream);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.95);
    transition: var(--transition);
}
.whatsapp-chat.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-chat__header {
    background: #075e54;
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.whatsapp-chat__header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.whatsapp-chat__header-info h4 {
    font-size: .9rem;
    font-weight: 600;
}
.whatsapp-chat__header-info p {
    font-size: .7rem;
    opacity: .8;
}
.whatsapp-chat__close {
    margin-left: auto;
    color: #fff;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
}

.whatsapp-chat__body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5l5 5-5 5-5-5z' fill='%23e0d5c0' opacity='.3'/%3E%3C/svg%3E");
    background-size: 30px;
}

.whatsapp-chat__msg {
    max-width: 80%;
    padding: .6rem 1rem;
    border-radius: 12px;
    margin-bottom: .5rem;
    font-size: .85rem;
    line-height: 1.5;
    position: relative;
}
.whatsapp-chat__msg--received {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.whatsapp-chat__msg--sent {
    background: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}
.whatsapp-chat__msg-time {
    display: block;
    font-size: .65rem;
    color: #999;
    text-align: right;
    margin-top: .25rem;
}

.whatsapp-chat__footer {
    padding: .75rem;
    border-top: 1px solid rgba(0,0,0,.08);
    display: flex;
    gap: .5rem;
    background: var(--cream);
}
.whatsapp-chat__footer input {
    flex: 1;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 50px;
    padding: .6rem 1rem;
    font-size: .85rem;
    font-family: var(--font-sans);
    outline: none;
    background: #fff;
}
.whatsapp-chat__footer input:focus {
    border-color: #25d366;
}
.whatsapp-chat__footer button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.whatsapp-chat__footer button:hover {
    background: #20b858;
}

/* ============================================
   MENSAJES DE CLIENTES
   ============================================ */
.client-messages {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.client-messages__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.client-messages__title span {
    font-size: 1.25rem;
    color: var(--gold);
}

.client-msg-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: .5rem;
}

.client-msg-list::-webkit-scrollbar {
    width: 6px;
}
.client-msg-list::-webkit-scrollbar-track {
    background: var(--cream-dark);
    border-radius: 3px;
}
.client-msg-list::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.client-msg {
    background: var(--cream);
    border: 1px solid rgba(0,0,0,.06);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem;
    transition: var(--transition);
}
.client-msg:hover {
    box-shadow: var(--shadow);
}

.client-msg__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}

.client-msg__name {
    font-weight: 600;
    color: var(--navy);
    font-size: .9rem;
}

.client-msg__date {
    font-size: .7rem;
    color: var(--gray);
}

.client-msg__area {
    display: inline-block;
    background: rgba(201,168,76,.12);
    color: var(--gold);
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem .6rem;
    border-radius: 50px;
    margin-bottom: .5rem;
}

.client-msg__text {
    font-size: .88rem;
    color: var(--text-light);
    line-height: 1.65;
}

.client-msg__reply {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px dashed rgba(0,0,0,.08);
}

.client-msg__reply-label {
    font-size: .7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    margin-bottom: .25rem;
}

.client-msg__reply-text {
    font-size: .85rem;
    color: var(--navy);
    font-style: italic;
}

.client-messages__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
    font-size: .9rem;
}

.client-messages__empty span {
    display: block;
    font-size: 2.5rem;
    margin-bottom: .75rem;
    color: var(--gold);
}

/* ============================================
   ADMIN EDITOR PANEL
   ============================================ */
.admin-panel {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: var(--cream);
    overflow-y: auto;
    display: none;
}
.admin-panel.active {
    display: block;
    animation: fadeInUp .4s ease-out;
}

.admin-panel__header {
    background: var(--navy);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-panel__header-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.admin-panel__header-left span {
    font-size: 1.25rem;
    color: var(--gold);
}

.admin-panel__header h2 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
}

.admin-panel__logout {
    padding: .4rem 1rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    color: var(--white);
    font-size: .8rem;
    cursor: pointer;
    transition: var(--transition);
}
.admin-panel__logout:hover {
    background: rgba(255,255,255,.2);
}

.admin-panel__body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-panel__tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--cream-dark);
    padding-bottom: .5rem;
    flex-wrap: wrap;
    overflow-x: auto;
}

.admin-tab {
    padding: .6rem 1.25rem;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
}
.admin-tab:hover {
    color: var(--navy);
    background: var(--cream-dark);
}
.admin-tab.active {
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-bottom: 1px solid var(--white);
    margin-bottom: -2px;
}

.admin-section {
    display: none;
}
.admin-section.active {
    display: block;
    animation: fadeInUp .3s ease-out;
}

.admin-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.admin-card__title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.admin-card__title span {
    color: var(--gold);
}

.admin-field {
    margin-bottom: 1rem;
}

.admin-field label {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: .35rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
    width: 100%;
    padding: .7rem 1rem;
    font-size: .88rem;
    font-family: var(--font-sans);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.admin-field input:focus,
.admin-field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

.admin-field textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.admin-btn {
    padding: .6rem 1.5rem;
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.admin-btn--save {
    background: var(--gold);
    color: var(--navy);
}
.admin-btn--save:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.admin-btn--cancel {
    background: var(--cream-dark);
    color: var(--text);
}
.admin-btn--cancel:hover {
    background: #d9cdb5;
}

.admin-btn--danger {
    background: #c0392b;
    color: #fff;
}
.admin-btn--danger:hover {
    background: #a93226;
}

/* Image Upload */
.admin-image-upload {
    position: relative;
    cursor: pointer;
}

.admin-image-upload__preview {
    width: 100%;
    min-height: 180px;
    border: 2px dashed rgba(0,0,0,.15);
    border-radius: var(--radius);
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: var(--gray);
    font-size: .85rem;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}
.admin-image-upload__preview:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.admin-image-upload__preview span {
    font-size: 2rem;
}
.admin-image-upload__preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,.06);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}

/* ============================================
   TEAM CRUD IN ADMIN
   ============================================ */
.team-crud-item {
    background: var(--cream);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.team-crud-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.team-crud-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px dashed rgba(0,0,0,.08);
}

.team-crud-item__name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--navy);
    font-weight: 600;
}

.team-crud-item__actions {
    display: flex;
    gap: .5rem;
}

.team-crud-item__actions button {
    padding: .3rem .7rem;
    border-radius: var(--radius);
    font-size: .75rem;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,.1);
    background: var(--white);
    color: var(--text-light);
    transition: var(--transition);
}
.team-crud-item__actions button:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.team-crud-item__actions button.btn-del:hover {
    border-color: #c0392b;
    color: #c0392b;
}

.team-crud-item__body {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.team-photo-upload {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed rgba(0,0,0,.15);
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.team-photo-upload:hover {
    border-color: var(--gold);
}
.team-photo-upload span {
    font-size: 1.5rem;
    color: var(--gray);
}
.team-photo-upload small {
    font-size: .55rem;
    color: var(--gray);
}
.team-photo-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.team-photo-upload input[type="file"] {
    display: none;
}

.team-crud-item__fields {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.team-crud-item__fields .admin-field {
    margin-bottom: 0;
}

.team-crud-item__fields .admin-field label {
    font-size: .7rem;
}

.team-crud-item__fields .admin-field input,
.team-crud-item__fields .admin-field textarea {
    padding: .55rem .75rem;
    font-size: .85rem;
    background: var(--white);
}

/* Message management in admin */
.admin-msg-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    margin-bottom: .75rem;
    background: var(--cream);
    gap: 1rem;
}

.admin-msg-item__info {
    flex: 1;
}

.admin-msg-item__name {
    font-weight: 600;
    color: var(--navy);
    font-size: .9rem;
}

.admin-msg-item__meta {
    font-size: .75rem;
    color: var(--gray);
    margin: .2rem 0 .4rem;
}

.admin-msg-item__text {
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.admin-msg-item__actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.admin-msg-item__actions button {
    padding: .35rem .7rem;
    border-radius: var(--radius);
    font-size: .75rem;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,.1);
    background: var(--white);
    color: var(--text-light);
    transition: var(--transition);
}
.admin-msg-item__actions button:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.admin-msg-item__actions button.btn-del:hover {
    border-color: #c0392b;
    color: #c0392b;
}

/* Quick stats in admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.admin-stat-card:hover {
    box-shadow: var(--shadow);
}

.admin-stat-card__icon {
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: .5rem;
}

.admin-stat-card__number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.admin-stat-card__label {
    font-size: .75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: .25rem;
}

/* ============================================
   VISUAL EDITOR
   ============================================ */
.admin-panel__header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-panel__visits {
    font-size: .8rem;
    color: var(--gold);
    background: rgba(201,168,76,.1);
    padding: .35rem .85rem;
    border-radius: var(--radius);
    border: 1px solid rgba(201,168,76,.25);
}

.editor-viewport {
    background: var(--cream-dark);
    border-radius: var(--radius);
    overflow: auto;
    position: relative;
    min-height: 500px;
    max-height: 70vh;
    border: 1px solid rgba(0,0,0,.08);
}

.editor-viewport__section {
    transform-origin: top left;
    pointer-events: auto;
}

/* Editable overlay */
.ev-editable {
    position: relative;
    cursor: pointer;
    transition: outline .15s;
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.ev-editable:hover {
    outline-color: var(--gold);
}
.ev-editable::after {
    content: '✎ Editar';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gold);
    color: var(--navy);
    font-size: .6rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.ev-editable:hover::after {
    opacity: 1;
}
.ev-editable-image::after {
    content: '📷 Cambiar imagen';
}
.ev-editable-textarea::after {
    content: '✎ Editar texto';
}

/* Editable cards in admin (services, team, news, press) */
.ev-card-admin {
    position: relative;
}
.ev-card-admin .ev-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,42,.7);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    opacity: 0;
    transition: opacity .2s;
}
.ev-card-admin:hover .ev-card-overlay {
    opacity: 1;
}
.ev-card-overlay button {
    padding: .4rem .85rem;
    border-radius: var(--radius);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.ev-card-overlay .ev-btn-edit {
    background: var(--gold);
    color: var(--navy);
}
.ev-card-overlay .ev-btn-delete {
    background: #c0392b;
    color: #fff;
}
.ev-card-overlay .ev-btn-edit:hover,
.ev-card-overlay .ev-btn-delete:hover {
    transform: scale(1.05);
}

/* Add card */
.ev-add-card {
    border: 2px dashed rgba(201,168,76,.4);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 120px;
    cursor: pointer;
    color: var(--gold);
    font-size: .85rem;
    font-weight: 600;
    transition: var(--transition);
    background: rgba(201,168,76,.05);
}
.ev-add-card:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,.1);
}
.ev-add-card span {
    font-size: 2rem;
    line-height: 1;
}

/* Side Panel */
.editor-sidepanel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--cream);
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    transition: right .3s cubic-bezier(.4,0,.2,1);
}
.editor-sidepanel.open {
    right: 0;
}

.editor-sidepanel__header {
    background: var(--navy);
    color: var(--white);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.editor-sidepanel__header h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
}
.editor-sidepanel__close {
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.editor-sidepanel__close:hover {
    background: rgba(255,255,255,.2);
}

.editor-sidepanel__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.editor-sidepanel__body .admin-field {
    margin-bottom: 1rem;
}
.editor-sidepanel__body .admin-field label {
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .3rem;
    display: block;
}
.editor-sidepanel__body .admin-field input,
.editor-sidepanel__body .admin-field textarea,
.editor-sidepanel__body .admin-field select {
    width: 100%;
    padding: .65rem .85rem;
    font-size: .88rem;
    font-family: var(--font-sans);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.editor-sidepanel__body .admin-field input:focus,
.editor-sidepanel__body .admin-field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.editor-sidepanel__body .admin-field textarea {
    resize: vertical;
    min-height: 80px;
}
.editor-sidepanel__body .admin-field small {
    font-size: .72rem;
    color: var(--gray);
    margin-top: .25rem;
    display: block;
}

.editor-sidepanel__actions {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cream-dark);
}

/* Messages list in admin tab */
.ev-msg-item {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.06);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem;
    margin-bottom: .75rem;
}
.ev-msg-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .35rem;
}
.ev-msg-item__name { font-weight: 600; color: var(--navy); font-size: .9rem; }
.ev-msg-item__date { font-size: .7rem; color: var(--gray); }
.ev-msg-item__meta { font-size: .75rem; color: var(--text-light); margin-bottom: .4rem; }
.ev-msg-item__text { font-size: .85rem; color: var(--text-light); line-height: 1.5; }
.ev-msg-item__reply { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed rgba(0,0,0,.08); font-size: .82rem; color: var(--navy); font-style: italic; }
.ev-msg-item__reply span { font-size: .7rem; color: var(--gold); text-transform: uppercase; font-style: normal; font-weight: 600; display: block; margin-bottom: .15rem; }

.ev-msg-actions {
    display: flex;
    gap: .4rem;
    margin-top: .5rem;
}
.ev-msg-actions button {
    padding: .3rem .65rem;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: var(--radius);
    font-size: .72rem;
    cursor: pointer;
    background: var(--cream);
    color: var(--text-light);
    transition: var(--transition);
}
.ev-msg-actions button:hover { border-color: var(--gold); color: var(--gold); }
.ev-msg-actions .ev-btn-del:hover { border-color: #c0392b; color: #c0392b; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .nav { display: none; }
    .hamburger { display: flex; }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: rgba(13,27,42,.98);
        padding: 1rem;
        border-top: 1px solid rgba(201,168,76,.15);
        animation: fadeInUp .3s ease-out;
    }
    .nav.open .nav__link {
        padding: .75rem 1.25rem;
        font-size: .95rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    .hero__stats { gap: 2rem; flex-wrap: wrap; }
    .stat__number { font-size: 2rem; }
    .about { grid-template-columns: 1fr; gap: 2rem; }
    .contact { grid-template-columns: 1fr; }
    .news-card--featured { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* ── Admin Panel Mobile ── */
    .admin-panel__header {
        padding: .6rem .75rem !important;
        flex-wrap: wrap !important;
        gap: .4rem !important;
    }
    .admin-panel__header h2 { font-size: .9rem !important; }
    .admin-panel__header-left { gap: .4rem !important; }
    .admin-panel__header-left span { font-size: 1rem !important; }
    .admin-panel__header-right { gap: .4rem !important; }
    .admin-panel__visits { font-size: .65rem !important; padding: .25rem .5rem !important; }
    .admin-panel__logout { padding: .3rem .6rem !important; font-size: .65rem !important; }

    .admin-panel__body {
        max-width: 100% !important;
        padding: .75rem !important;
        overflow-x: hidden !important;
    }

    .admin-panel__tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: .2rem !important;
        padding-bottom: .25rem !important;
        margin-bottom: .75rem !important;
        border-bottom-width: 1px !important;
    }
    .admin-panel__tabs::-webkit-scrollbar { display: none; }
    .admin-tab {
        padding: .45rem .7rem !important;
        font-size: .68rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .editor-viewport {
        min-height: 300px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .ev-card-admin .ev-card-overlay {
        opacity: 1 !important;
        background: rgba(13,27,42,.85) !important;
    }
    .ev-add-card { min-height: 70px !important; }

    .editor-sidepanel {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        transform: translateX(100%) !important;
        transition: transform .3s cubic-bezier(.4,0,.2,1) !important;
    }
    .editor-sidepanel.open {
        transform: translateX(0) !important;
    }
    .editor-sidepanel__body {
        padding: .75rem !important;
        overflow-y: auto !important;
    }
    .editor-sidepanel__body .admin-field input,
    .editor-sidepanel__body .admin-field textarea,
    .editor-sidepanel__body .admin-field select {
        font-size: 16px !important;
        padding: .6rem !important;
    }
    .editor-sidepanel__actions {
        display: flex !important;
        flex-direction: column !important;
        gap: .5rem !important;
        padding: .75rem !important;
    }
    .editor-sidepanel__actions .admin-btn {
        width: 100% !important;
        text-align: center !important;
        padding: .7rem !important;
    }

    .ev-msg-item { flex-direction: column !important; }
    .ev-msg-actions { flex-wrap: wrap !important; gap: .3rem !important; }
    .ev-msg-actions button { flex: 1 1 45% !important; min-width: 0 !important; }
}

@media (max-width: 600px) {
    .header__inner { padding: 0 1rem; height: 64px; }
    .hero { padding: 100px 1.25rem 3rem; }
    .hero__title { font-size: 2rem; }
    .hero__stats { gap: 1.5rem; }
    .services__grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .contact__info { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .modal { padding: 1.5rem; margin: 1rem; }
    .toast { left: 1rem; right: 1rem; bottom: 1rem; font-size: .8rem; }
    .whatsapp-float { bottom: 1.25rem; left: 1.25rem; }

    .admin-tab { padding: .35rem .55rem !important; font-size: .62rem !important; }
    .editor-viewport { min-height: 250px !important; }
    .ev-card-overlay button { padding: .5rem .75rem !important; font-size: .65rem !important; }
    .editor-sidepanel__header { padding: .6rem .75rem !important; }
    .editor-sidepanel__header h3 { font-size: .85rem !important; }
}
