/* ============================================================
   ESTILOS GLOBALES - Plenus Access
   Pantones oficiales: #004379 / #0064A7 / #2FB4E9 / #DC0814
   ============================================================ */

:root {
    --color-primary:   #004379;
    --color-secondary: #0064A7;
    --color-accent:    #2FB4E9;
    --color-danger:    #DC0814;
    --color-bg:        #F4F7FB;
    --color-white:     #FFFFFF;
    --color-text:      #1F2937;
    --color-muted:     #6B7280;
    --color-border:    #E5E7EB;

    --radius:      12px;
    --radius-lg:   18px;
    --shadow-sm:   0 2px 6px rgba(0, 67, 121, .08);
    --shadow-md:   0 8px 20px rgba(0, 67, 121, .10);
    --shadow-lg:   0 16px 40px rgba(0, 67, 121, .15);

    --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* Reset básico */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary); }

/* Contenedores */
.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-plenus {
    max-height: 60px;
    width: auto;
    /* Efecto 3D sutil */
    filter: drop-shadow(0 6px 5px rgba(0, 67, 121, .18));
    transition: transform .3s ease;
}
.logo-plenus:hover { transform: scale(1.04); }

.site-nav { display: flex; gap: 1.5rem; }
.nav-link {
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--color-accent);
    transition: width .3s;
}
.nav-link:hover::after { width: 100%; }

/* ============================================================
   MAIN
   ============================================================ */
.site-main { flex: 1; padding: 2.5rem 0; }

/* ============================================================
   TARJETA 3D (hero / logo destacado)
   ============================================================ */
.card-3d {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.card-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(47, 180, 233, .04) 0%,
        rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.logo-3d {
    max-width: 280px;
    filter: drop-shadow(0 10px 8px rgba(0, 67, 121, .22));
    transition: transform .4s ease;
}
.logo-3d:hover { transform: translateY(-4px) scale(1.03); }

.garra-3d {
    max-width: 90px;
    filter: drop-shadow(0 8px 6px rgba(0, 67, 121, .20));
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.8rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: var(--color-white);
    box-shadow: 0 6px 16px rgba(0, 100, 167, .35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 100, 167, .45);
    color: var(--color-white);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 6px 16px rgba(47, 180, 233, .35);
}
.btn-accent:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--color-danger);
    color: var(--color-white);
}
.btn-danger:hover { opacity: .9; transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}
.btn-ghost:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1.2rem;
}

.form-label {
    font-weight: 500;
    font-size: .95rem;
    color: var(--color-primary);
}

.form-control {
    padding: .8rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
    background: var(--color-white);
    width: 100%;           /* ← asegurar */
    min-width: 0;          /* ← CLAVE: permite encoger */
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(47, 180, 233, .15);
}

.form-control.error { border-color: var(--color-danger); }

.form-error {
    color: var(--color-danger);
    font-size: .85rem;
    margin-top: .15rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, .9);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-brand strong { font-size: 1.05rem; }
.footer-brand p { font-size: .85rem; opacity: .75; }

.garra-icon {
    max-width: 42px;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)) brightness(0) invert(1);
    opacity: .9;
}

.footer-copy { text-align: right; font-size: .85rem; }
.footer-url a { color: var(--color-accent); }
.footer-url a:hover { color: var(--color-white); }

/* ============================================================
   ALERTAS
   ============================================================ */
.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .95rem;
}
.alert-success { background: #ECFDF5; color: #065F46; border-left: 4px solid #10B981; }
.alert-error   { background: #FEF2F2; color: #991B1B; border-left: 4px solid var(--color-danger); }
.alert-info    { background: #EFF6FF; color: #1E40AF; border-left: 4px solid var(--color-secondary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .header-inner { flex-direction: column; gap: 1rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-copy { text-align: center; }
    .card-3d { padding: 2rem 1.25rem; }
}