/* =========================================
   Patrocinio Legal de México — style.css
   ========================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--plm-white);
    color: var(--plm-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }

/* === LAYOUT === */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.section__tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--plm-gold);
    margin-bottom: 12px;
}

.section__tag--center { text-align: center; }

.section__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--plm-navy);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--plm-gold-gradient);
    border-radius: 2px;
}

.section__title--center {
    text-align: center;
}

.section__title--center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* === BOTONES === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 38px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn--primary {
    background-color: var(--plm-navy);
    color: var(--plm-white);
    border-color: var(--plm-navy);
}

.btn--primary:hover {
    background-color: var(--plm-gold);
    border-color: var(--plm-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 168, 75, 0.35);
}

.btn--outline {
    background: var(--plm-white);
    color: var(--plm-navy);
    border-color: var(--plm-gold);
}

.btn--outline:hover {
    background: var(--plm-gold);
    color: var(--plm-white);
    transform: translateY(-3px);
}

/* =========================================
   HEADER
   ========================================= */
.header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(28, 49, 94, 0.08);
    transition: var(--transition-smooth);
}

.header--scrolled {
    height: 72px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.header__logo-img {
    height: 55px;
    transition: var(--transition-smooth);
}

.header--scrolled .header__logo-img { height: 44px; }

.header__list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header__link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    color: var(--plm-navy);
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--plm-gold-gradient);
    transition: var(--transition-smooth);
}

.header__link:hover::after { width: 100%; }
.header__link:hover { color: var(--plm-gold); }

.header__link--cta {
    background-color: var(--plm-navy);
    color: var(--plm-white) !important;
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
}

.header__link--cta::after { display: none; }
.header__link--cta:hover { background-color: var(--plm-gold); }

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.header__hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--plm-navy);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.header__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================
   HERO — Rediseñado
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--plm-white);
    padding-top: 90px;
}

/* Swoosh superior derecho — como la papelería */
.hero__deco {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    z-index: 1;
    pointer-events: none;
}

.hero__deco-navy {
    position: absolute;
    top: -250px;
    right: -120px;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: var(--plm-navy);
}

.hero__deco-gold {
    position: absolute;
    top: -260px;
    right: -100px;
    width: 630px;
    height: 630px;
    border-radius: 50%;
    border: 5px solid var(--plm-gold);
    background: transparent;
}

/* Swoosh inferior izquierdo */
.hero__deco-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 220px;
    height: 220px;
    z-index: 1;
    pointer-events: none;
}

.hero__deco-bottom-navy {
    position: absolute;
    bottom: -320px;
    left: -220px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: var(--plm-navy);
}

.hero__deco-bottom-gold {
    position: absolute;
    bottom: -310px;
    left: -230px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    border: 5px solid var(--plm-gold);
    background: transparent;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero__tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--plm-gold);
    margin-bottom: 16px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--plm-navy);
    margin-bottom: 28px;
}

.hero__title--accent {
    background: var(--plm-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--plm-text-muted);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.8;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__visual {
    flex-shrink: 0;
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.hero__logo-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--plm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(28, 49, 94, 0.2), 0 0 0 6px rgba(212, 168, 75, 0.3);
    border: 3px solid var(--plm-gold);
}

.hero__logo-img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    opacity: 1;
}

/* =========================================
   ÁREAS DE PRÁCTICA
   ========================================= */
.areas {
    background: var(--plm-off-white);
}

.areas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.area-card {
    background: var(--plm-white);
    padding: 40px 32px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(28, 49, 94, 0.06);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--plm-gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.area-card:hover::before { transform: scaleX(1); }

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(28, 49, 94, 0.08);
}

.area-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 49, 94, 0.06);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--plm-navy);
    transition: var(--transition-smooth);
}

.area-card__icon svg { width: 26px; height: 26px; }

.area-card:hover .area-card__icon {
    background: var(--plm-navy);
    color: var(--plm-white);
}

.area-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--plm-navy);
    margin-bottom: 12px;
}

.area-card__desc {
    font-size: 0.92rem;
    color: var(--plm-text-muted);
    line-height: 1.7;
}

/* =========================================
   EQUIPO — CON FOTOS
   ========================================= */
.team {
    background: var(--plm-white);
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.card--team {
    background: var(--plm-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(28, 49, 94, 0.08);
    transition: var(--transition-smooth);
    position: relative;
}

.card--team::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--plm-gold-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.card--team:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(28, 49, 94, 0.1);
}

.card--team:hover::after { transform: scaleX(1); }

/* Foto del abogado */
.card__photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--plm-navy);
    position: relative;
}

/* Gradient removed from photo as requested */

.card__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-smooth);
}

.card--team:hover .card__photo-img {
    transform: scale(1.05);
}

/* Ajuste para fotos que necesitan mostrar mejor el rostro */
.card__photo-img--raise {
    object-position: top center;
    transform: translateY(-15%);
}

.card--team:hover .card__photo-img--raise {
    transform: translateY(-15%) scale(1.05);
}

.card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--plm-gold);
    color: var(--plm-white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    z-index: 2;
}

.card__body {
    padding: 24px 28px 28px;
}

.card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--plm-navy);
    margin-bottom: 4px;
}

.card__role {
    font-size: 0.82rem;
    color: var(--plm-gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.card__experience {
    font-size: 0.78rem;
    color: var(--plm-text-muted);
    font-weight: 500;
    margin-bottom: 14px;
}

.card__divider {
    width: 40px;
    height: 3px;
    background: var(--plm-gold-gradient);
    margin-bottom: 18px;
    border-radius: 2px;
}

.card__subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    color: var(--plm-navy);
    margin-top: 14px;
}

.card__subtitle:first-of-type { margin-top: 0; }

.card__specialties {
    font-size: 0.82rem;
    color: var(--plm-text-muted);
    line-height: 1.6;
    margin-bottom: 4px;
}

.card__list { margin-bottom: 4px; }

.card__list li {
    font-size: 0.82rem;
    color: var(--plm-text-muted);
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.card__list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--plm-gold);
    font-weight: 700;
}

.card__list--academic li::before { content: '◆'; font-size: 0.5rem; top: 4px; }
.card__list--education li::before { content: '●'; font-size: 0.45rem; top: 5px; }

/* =========================================
   EMPRESAS CLIENTES
   ========================================= */
.clients {
    background: var(--plm-off-white);
}

.clients__track {
    overflow: hidden;
    position: relative;
}

.clients__slide {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.clients__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 30px 36px;
    background: var(--plm-white);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(28, 49, 94, 0.06);
    transition: var(--transition-smooth);
    min-width: 180px;
}

.clients__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(28, 49, 94, 0.08);
    border-color: var(--plm-gold);
}

.clients__logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(30%);
    transition: var(--transition-smooth);
    border: 2px solid rgba(28, 49, 94, 0.08);
}

.clients__item:hover .clients__logo {
    filter: grayscale(0%);
    transform: scale(1.08);
    border-color: var(--plm-gold);
}

.clients__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--plm-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--plm-navy);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.footer__swoosh {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    overflow: hidden;
}

.footer__swoosh::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--plm-gold-gradient);
    opacity: 0.08;
}

.footer__container {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 0.8fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer__logo {
    width: 110px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer__tagline {
    font-size: 0.9rem;
    font-weight: 300;
}

.footer__title {
    color: var(--plm-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer__address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 2;
}

.footer__address a {
    color: var(--plm-gold-light);
}

.footer__address a:hover {
    color: var(--plm-gold);
}

.footer__links ul li { margin-bottom: 10px; }

.footer__links ul li a {
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer__links ul li a:hover {
    color: var(--plm-gold);
    padding-left: 6px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 24px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   FAB + MENÚ FLOTANTE
   ========================================= */
.fab-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fab {
    width: 60px;
    height: 60px;
    background: var(--plm-gold-gradient);
    color: var(--plm-white);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(212, 168, 75, 0.45);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
}

.fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 40px rgba(212, 168, 75, 0.6);
}

.fab__icon { width: 24px; height: 24px; transition: var(--transition-smooth); }
.fab__icon--close { display: none; }
.fab-wrapper.open .fab__icon--chat { display: none; }
.fab-wrapper.open .fab__icon--close { display: block; }
.fab-wrapper.open .fab { background: var(--plm-navy); }

/* Menú desplegable */
.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-wrapper.open .fab-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.fab-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.fab-menu__item svg { width: 20px; height: 20px; flex-shrink: 0; }

.fab-menu__item--whatsapp {
    background: #25D366;
    color: var(--plm-white);
}

.fab-menu__item--whatsapp:hover {
    background: #1ebe57;
    transform: translateX(-6px);
}

.fab-menu__item--form {
    background: var(--plm-navy);
    color: var(--plm-white);
}

.fab-menu__item--form:hover {
    background: var(--plm-gold);
    transform: translateX(-6px);
}

/* Tarjeta de teléfono */
.fab-menu__phone {
    background: var(--plm-white);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 220px;
}

.fab-menu__phone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--plm-navy);
}

.fab-menu__phone-header svg {
    width: 18px;
    height: 18px;
}

.fab-menu__phone-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--plm-navy);
}

.fab-menu__phone-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--plm-navy);
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-family: var(--font-primary);
}

.fab-menu__phone-actions {
    display: flex;
    gap: 8px;
}

.fab-menu__phone-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex: 1;
    justify-content: center;
}

.fab-menu__phone-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.fab-menu__phone-btn--copy {
    background: var(--plm-off-white);
    color: var(--plm-navy);
    border: 1px solid rgba(28, 49, 94, 0.12);
}

.fab-menu__phone-btn--copy:hover {
    background: rgba(28, 49, 94, 0.08);
}

.fab-menu__phone-btn--copy.copied {
    background: #25D366;
    color: var(--plm-white);
    border-color: #25D366;
}

.fab-menu__phone-btn--call {
    background: var(--plm-navy);
    color: var(--plm-white);
}

.fab-menu__phone-btn--call:hover {
    background: var(--plm-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 168, 75, 0.3);
}

/* =========================================
   MODAL DE REGISTRO
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--plm-white);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--plm-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.modal__close:hover { color: var(--plm-navy); transform: scale(1.1); }

.modal__header {
    text-align: center;
    margin-bottom: 28px;
}

.modal__logo {
    width: 70px;
    margin: 0 auto 16px;
}

.modal__title {
    font-size: 1.4rem;
    color: var(--plm-navy);
    font-weight: 700;
    margin-bottom: 6px;
}

.modal__desc {
    font-size: 0.88rem;
    color: var(--plm-text-muted);
}

/* Form styles */
.form__group {
    margin-bottom: 16px;
}

.form__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--plm-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(28, 49, 94, 0.12);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    color: var(--plm-text-dark);
    transition: var(--transition-smooth);
    background: var(--plm-white);
}

.form__input:focus {
    outline: none;
    border-color: var(--plm-gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

.form__input::placeholder {
    color: #aaa;
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231c315e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form__textarea {
    resize: vertical;
    min-height: 80px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Toggle empresa/publico */
.form__toggle {
    display: flex;
    background: var(--plm-off-white);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(28, 49, 94, 0.08);
}

.form__toggle input { display: none; }

.form__toggle-btn {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--plm-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.form__toggle input:checked + .form__toggle-btn {
    background: var(--plm-navy);
    color: var(--plm-white);
}

.form__submit {
    width: 100%;
    margin-top: 8px;
}

/* Success state */
.modal__success {
    text-align: center;
    padding: 30px 0;
}

.modal__success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--plm-gold-gradient);
    color: var(--plm-white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal__success h3 {
    font-size: 1.4rem;
    color: var(--plm-navy);
    margin-bottom: 8px;
}

.modal__success p {
    color: var(--plm-text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .areas__grid { grid-template-columns: repeat(2, 1fr); }
    .team__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__logo-img { width: 260px; }
}

@media (max-width: 768px) {
    .header__hamburger { display: flex; }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--plm-navy);
        padding: 100px 40px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    }

    .header__nav.open { right: 0; }

    .header__list {
        flex-direction: column;
        gap: 0;
    }

    .header__link {
        color: rgba(255, 255, 255, 0.8);
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 0.95rem;
    }

    .header__link:hover { color: var(--plm-gold); }

    .header__link--cta {
        margin-top: 20px;
        text-align: center;
        border-bottom: none;
        background: var(--plm-gold);
    }

    .hero {
        min-height: auto;
        padding: 120px 20px 60px;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .hero__content { max-width: 100%; }

    .hero__actions { justify-content: center; }

    .hero__visual { display: none; }

    .hero__title { 
        font-size: 2rem; 
        background: var(--plm-gold-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero__title--accent {
        background: none;
        -webkit-text-fill-color: var(--plm-navy);
        color: var(--plm-navy);
    }

    .hero__deco,
    .hero__deco-bottom {
        width: 250px;
        height: 250px;
    }

    .hero__deco-navy {
        width: 400px;
        height: 400px;
        top: -200px;
        right: -80px;
    }

    .hero__deco-gold {
        width: 380px;
        height: 380px;
        top: -210px;
        right: -70px;
    }

    .hero__deco-bottom-navy {
        width: 350px;
        height: 350px;
        bottom: -180px;
        left: -80px;
    }

    .hero__deco-bottom-gold {
        width: 330px;
        height: 330px;
        bottom: -170px;
        left: -90px;
    }

    .areas__grid { grid-template-columns: 1fr; }
    .team__grid { grid-template-columns: 1fr; }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section { padding: 80px 0; }

    .clients__slide {
        gap: 16px;
    }

    .clients__item {
        min-width: 130px;
        padding: 16px 20px;
    }

    .fab-wrapper {
        bottom: 20px;
        right: 20px;
    }

    .fab {
        width: 54px;
        height: 54px;
    }

    .form__row { grid-template-columns: 1fr; }

    .modal { padding: 28px 20px; }
}

/* Overlay para móvil */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
