/* =========================
RESET
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

/* =========================
BODY
========================= */

body{

background:linear-gradient(135deg,#0f172a,#1e3a8a,#0f172a);
min-height:100vh;
color:white;
overflow-x:hidden;

}

/* =========================
CANVAS FONDO
========================= */

#bg-canvas{

position:fixed;
top:0;
left:0;
width:100%;
height:100%;
z-index:-1;

}

/* =========================
NAVBAR
========================= */

.navbar{

display:flex;
justify-content:space-between;
align-items:center;

padding:20px 40px;

background:rgba(0,0,0,0.35);
backdrop-filter:blur(12px);

border-bottom:1px solid rgba(255,255,255,0.1);

position:relative;
z-index:1000;

}

.logo{

font-size:22px;
font-weight:bold;
color:#4ade80;

}

/* =========================
MENU
========================= */

nav a{

color:white;
text-decoration:none;
margin-left:25px;

padding:8px 14px;

border-radius:8px;

transition:all .3s;

}

/* hover glow */

nav a:hover{

background:#22c55e;
transform:translateY(-2px);

box-shadow:
0 5px 15px rgba(0,255,150,0.5);

}

/* =========================
MAIN
========================= */

.main-container{

padding:40px;
max-width:1200px;
margin:auto;

}

/* =========================
HERO LANDING
========================= */

.hero{

display:flex;
justify-content:center;
align-items:center;
text-align:center;

padding:120px 20px;

}

/* titulo */

.hero-title{

font-size:52px;

background:linear-gradient(90deg,#22c55e,#4ade80,#22c55e);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;

margin-bottom:25px;

}

/* subtitulo */

.hero-subtitle{

max-width:750px;
margin:auto;

font-size:18px;
line-height:1.6;

opacity:0.85;

margin-bottom:35px;

}

/* botones */

.hero-buttons{

display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;

}

/* =========================
BOTONES HERO
========================= */

.btn-primary{

font-size:16px;
padding:14px 28px;

background:linear-gradient(45deg,#22c55e,#4ade80);

border:none;
border-radius:12px;

color:black;
font-weight:bold;

cursor:pointer;

transition:all .3s;

box-shadow:
0 0 15px rgba(34,197,94,0.5);

}

.btn-primary:hover{

transform:translateY(-4px);

box-shadow:
0 10px 30px rgba(34,197,94,0.7);

}

.btn-secondary{

font-size:16px;
padding:14px 28px;

background:transparent;

border:1px solid rgba(255,255,255,0.3);

border-radius:12px;

color:white;

cursor:pointer;

transition:all .3s;

}

.btn-secondary:hover{

background:rgba(255,255,255,0.1);

transform:translateY(-4px);

}

/* =========================
TARJETAS
========================= */

.card{

background:rgba(255,255,255,0.08);

backdrop-filter:blur(12px);

padding:25px;

border-radius:14px;

border:1px solid rgba(255,255,255,0.1);

box-shadow:
0 10px 30px rgba(0,0,0,0.5);

margin-bottom:30px;

}

/* =========================
FEATURE CARDS
========================= */

.features{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
margin-top:80px;

}

.feature-card{

background:rgba(255,255,255,0.05);

padding:30px;

border-radius:16px;

border:1px solid rgba(255,255,255,0.08);

backdrop-filter:blur(12px);

transition:all .3s;

cursor:pointer;

}

.feature-card:hover{

transform:translateY(-10px) scale(1.03);

box-shadow:
0 20px 40px rgba(0,0,0,0.6),
0 0 25px rgba(34,197,94,0.2);

}

.feature-card h3{

margin-bottom:12px;
color:#4ade80;

}

/* =========================
TABLA
========================= */

table{

width:100%;
border-collapse:collapse;

}

th{

text-align:left;
padding:12px;

background:rgba(255,255,255,0.1);

}

td{

padding:10px;

border-bottom:1px solid rgba(255,255,255,0.1);

}

/* =========================
FORM
========================= */

form{

display:flex;
flex-direction:column;
gap:12px;

}

input,select,textarea{

padding:10px;

border:none;
border-radius:8px;

background:rgba(255,255,255,0.1);
color:white;

outline:none;

}

textarea{
resize:vertical;
min-height:110px;
font-family:inherit;
font-size:15px;
line-height:1.55;
}

/* Select: fondo oscuro fijo para que las opciones sean legibles en todos los navegadores */

select{
background-color:#0f172a;
color:#f1f5f9;
border:1px solid rgba(255,255,255,0.15);
-webkit-appearance:none;
appearance:none;
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234ade80' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
background-repeat:no-repeat;
background-position:right 12px center;
padding-right:36px;
}

select option{
background-color:#f1f5f9;
color:#1e3a8a;
}

select option:checked{
background-color:#1e3a8a;
color:#fff;
}

select option:hover{
background-color:#dbeafe;
color:#1e3a8a;
}

select:focus{
border-color:rgba(34,197,94,0.5);
outline:none;
}

/* Aviso animal vendido */

.aviso-vendido{

display:flex;
align-items:flex-start;
gap:14px;

padding:18px 20px;

background:rgba(251,191,36,0.08);
border:1px solid rgba(251,191,36,0.25);
border-radius:12px;

color:#fbbf24;
font-size:14px;
line-height:1.6;

}

.aviso-vendido-icon{
font-size:22px;
flex-shrink:0;
margin-top:1px;
}

/* =========================
BOTONES GENERALES 3D
========================= */

button{

padding:12px;

border:none;

border-radius:10px;

background:linear-gradient(45deg,#22c55e,#4ade80);

color:black;

font-weight:bold;

cursor:pointer;

transition:all .25s;

box-shadow:
0 6px 0 #15803d,
0 8px 20px rgba(0,0,0,0.6);

}

button:active{

transform:translateY(4px);

box-shadow:
0 2px 0 #15803d,
0 4px 10px rgba(0,0,0,0.5);

}

button:hover{

transform:translateY(-2px);

box-shadow:
0 8px 0 #15803d,
0 12px 25px rgba(0,0,0,0.6);

}

/* =========================
LOGIN CARD
========================= */

.login-card{

max-width:420px;
margin:auto;
text-align:center;

}

.login-card h2{

margin-bottom:20px;

}

.extra{

margin-top:15px;

}

.extra a{

color:#4ade80;
text-decoration:none;

}

.extra a:hover{

text-decoration:underline;

}

/* =========================
RESPONSIVE
========================= */

@media(max-width:768px){

.hero-title{
font-size:36px;
}

.navbar{
flex-direction:column;
gap:10px;
}

}

/* =========================
STATS GRID
========================= */

.stats-grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:20px;

margin-bottom:30px;

}

.stat-card{

background:rgba(255,255,255,0.07);
backdrop-filter:blur(12px);

border:1px solid rgba(255,255,255,0.1);
border-radius:14px;

padding:24px 20px;

text-align:center;

transition:transform .25s;

}

.stat-card:hover{

transform:translateY(-4px);

}

.stat-number{

font-size:46px;
font-weight:bold;
line-height:1.15;

color:#4ade80;

margin-bottom:8px;
padding-bottom:4px;

}

.stat-macho{

color:#60a5fa;

}

.stat-hembra{

color:#f472b6;

}

.stat-label{

font-size:12px;
text-transform:uppercase;
letter-spacing:0.06em;
opacity:0.65;

}

/* =========================
CARD HEADER
========================= */

.card-header{

display:flex;
justify-content:space-between;
align-items:center;

margin-bottom:20px;

}

.card-header h2{

margin:0;

}

/* =========================
TABLA MEJORADA
========================= */

tbody tr:nth-child(even){

background:rgba(255,255,255,0.03);

}

tbody tr:hover{

background:rgba(255,255,255,0.07);

}

/* =========================
BADGES
========================= */

.badge{

display:inline-block;

padding:3px 12px;

border-radius:20px;

font-size:12px;
font-weight:bold;

}

.badge-macho{

background:rgba(59,130,246,0.15);
color:#60a5fa;
border:1px solid rgba(59,130,246,0.3);

}

.badge-hembra{

background:rgba(236,72,153,0.15);
color:#f472b6;
border:1px solid rgba(236,72,153,0.3);

}

/* =========================
BOTON TABLA
========================= */

.btn-table{

display:inline-block;

padding:5px 14px;

background:rgba(34,197,94,0.12);
border:1px solid rgba(34,197,94,0.3);
border-radius:8px;

color:#4ade80;
font-size:13px;
text-decoration:none;

transition:all .2s;

}

.btn-table:hover{

background:rgba(34,197,94,0.25);
border-color:rgba(34,197,94,0.55);

}

/* =========================
ESTADO VACIO
========================= */

.empty-state{

text-align:center;

padding:60px 20px;

opacity:0.7;

}

.empty-icon{

font-size:56px;

margin-bottom:16px;

}

.empty-state p{

font-size:16px;
margin-bottom:24px;

}

/* =========================
FLASH MESSAGES
========================= */

.flash-container{

max-width:1200px;
margin:0 auto;

padding:16px 40px 0;

}

.flash{

padding:12px 18px;

border-radius:10px;

font-size:14px;
font-weight:500;

margin-bottom:10px;

animation:fadeIn .4s ease;

}

.flash-success{

background:rgba(34,197,94,0.12);
border:1px solid rgba(34,197,94,0.35);
color:#4ade80;

}

.flash-error{

background:rgba(239,68,68,0.12);
border:1px solid rgba(239,68,68,0.35);
color:#f87171;

}

.flash-warning{

background:rgba(234,179,8,0.12);
border:1px solid rgba(234,179,8,0.35);
color:#fbbf24;

}

@keyframes fadeIn{

from{opacity:0; transform:translateY(-8px);}
to{opacity:1; transform:translateY(0);}

}

/* =========================
FORM LABELS Y GRUPOS
========================= */

label{

display:block;

font-size:13px;
font-weight:600;
letter-spacing:0.03em;

opacity:0.75;

margin-bottom:6px;

}

.form-group{

display:flex;
flex-direction:column;

margin-bottom:16px;

}

.form-group input,
.form-group select{

margin-bottom:0;

}

.form-row{

display:grid;
grid-template-columns:1fr 1fr;
gap:16px;

}

.form-actions{

display:flex;
align-items:center;
gap:16px;

margin-top:8px;

}

.btn-cancel{

color:rgba(255,255,255,0.55);

font-size:14px;

text-decoration:none;

transition:color .2s;

}

.btn-cancel:hover{

color:rgba(255,255,255,0.9);

}

/* =========================
FORM HINT
========================= */

.form-hint{

margin-top:8px;

padding:10px 14px;

background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.08);
border-radius:8px;

font-size:12px;
line-height:1.65;
color:rgba(255,255,255,0.45);

}

.form-hint p{
margin:0;
}

.form-hint p + p{
margin-top:4px;
}

.form-hint strong{
color:rgba(255,255,255,0.7);
font-weight:600;
}

/* =========================
ANIMAL INFO GRID
========================= */

.animal-info{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
gap:16px;

margin-top:16px;

}

.info-item{

display:flex;
flex-direction:column;
gap:5px;

}

.info-label{

font-size:11px;
text-transform:uppercase;
letter-spacing:0.07em;
opacity:0.55;
font-weight:600;

}

.info-value{

font-size:16px;

}

/* =========================
AUTH FORM GROUPS
========================= */

.auth-card .form-group{

margin-bottom:0;

}

.auth-card label{

text-align:left;
color:rgba(255,255,255,0.7);
margin-bottom:6px;

}

}

/* =========================
NAVBAR — LINK ACTIVO
========================= */

nav a.active{

background:rgba(34,197,94,0.15);
color:#4ade80;

border:1px solid rgba(34,197,94,0.3);

}

/* =========================
NAVBAR — CHIP USUARIO
========================= */

.nav-user{

display:inline-block;

margin-left:25px;
padding:7px 14px;

background:rgba(255,255,255,0.06);
border:1px solid rgba(255,255,255,0.12);
border-radius:8px;

font-size:13px;
color:rgba(255,255,255,0.65);

cursor:default;

}

/* =========================
NAVBAR — LOGO CLICKEABLE
========================= */

.logo{

text-decoration:none;
color:#4ade80;

}

/* =========================
NAVBAR — BOTÓN SALIR
========================= */

.nav-logout{

color:rgba(255,255,255,0.55) !important;

}

.nav-logout:hover{

background:rgba(239,68,68,0.15) !important;
color:#f87171 !important;
box-shadow:none !important;

}

/* =========================
BREADCRUMB
========================= */

.breadcrumb{

display:flex;
align-items:center;
gap:8px;

margin-bottom:18px;

font-size:14px;
opacity:0.65;

}

.breadcrumb a{

color:#4ade80;
text-decoration:none;

transition:opacity .2s;

}

.breadcrumb a:hover{

opacity:1;
text-decoration:underline;

}

.breadcrumb-sep{

opacity:0.45;
font-size:16px;

}

/* =========================
HAMBURGER MENU
========================= */

.hamburger{

display:none;

flex-direction:column;
gap:5px;

background:none;
border:none;
cursor:pointer;

padding:8px;

box-shadow:none;

}

.hamburger:hover{

background:rgba(255,255,255,0.07);
transform:none;
box-shadow:none;

}

.hamburger span{

display:block;

width:24px;
height:2px;

background:rgba(255,255,255,0.8);
border-radius:2px;

transition:all .3s;

}

/* =========================
DIFF PESOS
========================= */

.diff-pos{

color:#4ade80;
font-weight:600;

}

.diff-neg{

color:#f87171;
font-weight:600;

}

.diff-neu{

opacity:0.35;

}

/* =========================
BOTON ELIMINAR (DANGER SM)
========================= */

.btn-danger-sm{

padding:3px 8px;

background:rgba(239,68,68,0.1);
border:1px solid rgba(239,68,68,0.25);
border-radius:6px;

color:#f87171;
font-size:12px;

cursor:pointer;

box-shadow:none;

transition:all .2s;

}

.btn-danger-sm:hover{

background:rgba(239,68,68,0.22);
border-color:rgba(239,68,68,0.5);

transform:none;
box-shadow:none;

}

.btn-danger-sm:active{

transform:none;
box-shadow:none;

}

/* =========================
CHART CONTAINER
========================= */

.chart-container{

position:relative;
height:240px;

margin-top:16px;

}

/* =========================
TABLE RESPONSIVE
========================= */

.table-responsive{

overflow-x:auto;

}

/* =========================
SEARCH BAR
========================= */

.search-bar{

margin-bottom:16px;

}

.search-bar input{

width:100%;
max-width:400px;

}

/* =========================
LINK VERDE
========================= */

.link-verde{

color:#4ade80;
text-decoration:none;

}

.link-verde:hover{

text-decoration:underline;

}

/* =========================
ERROR PAGE 404
========================= */

.error-page{

text-align:center;

padding:100px 20px;

}

.error-code{

font-size:100px;
font-weight:bold;

background:linear-gradient(90deg,#22c55e,#4ade80);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;

line-height:1;
margin-bottom:20px;

}

.error-page h2{

font-size:28px;
margin-bottom:12px;

}

.error-page p{

opacity:0.6;
margin-bottom:30px;

}

/* =========================
RESPONSIVE — FASE F
========================= */

@media(max-width:768px){

/* Hamburger visible */
.hamburger{
display:flex;
}

/* Nav colapsado */
#main-nav{

display:none;

position:absolute;
top:68px;
left:0;
right:0;

flex-direction:column;
align-items:flex-start;

background:rgba(10,18,40,0.97);
backdrop-filter:blur(16px);

padding:16px 24px 24px;

border-bottom:1px solid rgba(255,255,255,0.08);
box-shadow:0 12px 40px rgba(0,0,0,0.5);

z-index:9000;

}

#main-nav.open{
display:flex;
}

nav a{
margin-left:0;
width:100%;
}

.nav-user{
margin-left:0;
width:100%;
margin-top:8px;
}

/* Tablas scroll horizontal ya cubierto por .table-responsive */

/* Formularios */
.form-row{
grid-template-columns:1fr;
}

/* Stats grid en 2 columnas */
.stats-grid{
grid-template-columns:1fr 1fr;
}

/* Main container padding reducido */
.main-container{
padding:20px;
}

/* Flash container */
.flash-container{
padding:12px 20px 0;
}

/* Hero */
.hero-title{
font-size:36px;
}

.navbar{
padding:14px 20px;
}

/* Card header apilado */
.card-header{
flex-direction:column;
align-items:flex-start;
gap:12px;
}

}

/* ================================
   SPLASH DE CARGA
   ================================ */

/* =========================
PESO STATS (perfil animal)
========================= */

.peso-stats{

display:grid;
grid-template-columns:repeat(4,1fr);
gap:12px;

margin-bottom:24px;

}

.peso-stat{

display:flex;
flex-direction:column;
align-items:center;
gap:5px;

padding:14px 10px;

background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.07);
border-radius:12px;

text-align:center;

transition:background .2s;

}

.peso-stat:hover{

background:rgba(255,255,255,0.07);

}

.peso-stat-val{

font-size:18px;
font-weight:bold;
color:#4ade80;

line-height:1;

}

.peso-stat-label{

font-size:10px;
text-transform:uppercase;
letter-spacing:.07em;
opacity:.4;

}

@media(max-width:768px){

.peso-stats{
grid-template-columns:repeat(2,1fr);
}

}

/* Ocultar splash sin transición si ya fue visto — evita el flash en navegación */
.splash-ya-visto #splash{
display:none;
}

#splash{

position:fixed;
inset:0;
z-index:9999;

display:flex;
align-items:center;
justify-content:center;

background:linear-gradient(135deg,#0a1220 0%,#0f172a 40%,#0d2554 70%,#0a1220 100%);

transition:opacity .65s ease, visibility .65s ease;

}

#splash.splash-oculto{

opacity:0;
visibility:hidden;
pointer-events:none;

}

/* contenido centrado */

.splash-content{

text-align:center;

max-width:460px;
width:90%;

padding:48px 32px;

background:rgba(255,255,255,0.04);
backdrop-filter:blur(20px);

border:1px solid rgba(255,255,255,0.08);
border-radius:24px;

box-shadow:
  0 0 0 1px rgba(34,197,94,0.08),
  0 30px 80px rgba(0,0,0,0.6);

animation:splashEntrada .7s cubic-bezier(.22,1,.36,1) both;

}

@keyframes splashEntrada{
from{ opacity:0; transform:translateY(28px) scale(.97); }
to  { opacity:1; transform:translateY(0)    scale(1);   }
}

/* emoji vaca flotando */

.splash-logo{

font-size:72px;
line-height:1;

margin-bottom:20px;

display:inline-block;
animation:splashFloat 2.4s ease-in-out infinite;

}

@keyframes splashFloat{
0%,100%{ transform:translateY(0);    }
50%    { transform:translateY(-12px); }
}

/* título */

.splash-title{

font-size:32px;
font-weight:bold;

background:linear-gradient(90deg,#22c55e,#4ade80,#22c55e);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
background-size:200% auto;

animation:splashShine 3s linear infinite;

margin-bottom:32px;

}

@keyframes splashShine{
from{ background-position:200% center; }
to  { background-position:  0% center; }
}

/* barra de progreso */

.splash-bar-wrap{

background:rgba(255,255,255,0.08);
border-radius:99px;
height:5px;

margin-bottom:14px;
overflow:hidden;

}

.splash-bar{

height:100%;
width:0%;

background:linear-gradient(90deg,#22c55e,#4ade80);
border-radius:99px;

transition:width .55s cubic-bezier(.4,0,.2,1);

box-shadow:0 0 12px rgba(34,197,94,0.5);

}

/* texto de estado */

.splash-status{

font-size:13px;
color:rgba(255,255,255,0.55);

margin-bottom:28px;

min-height:20px;

transition:opacity .3s;

}

/* nota servidor gratuito */

.splash-note{

display:flex;
align-items:flex-start;
gap:10px;

text-align:left;

font-size:12px;
line-height:1.65;
color:rgba(255,255,255,0.38);

background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.07);
border-radius:12px;

padding:14px 16px;

}

.splash-note strong{

color:rgba(255,255,255,0.6);

}

.splash-note-icon{

font-size:18px;
flex-shrink:0;
margin-top:1px;

}

/* =========================
BADGE — TIPO PESO
========================= */

.badge-venta{
background:rgba(251,191,36,0.15);
color:#fbbf24;
border:1px solid rgba(251,191,36,0.3);
}

.badge-control{
background:rgba(255,255,255,0.06);
color:rgba(255,255,255,0.45);
border:1px solid rgba(255,255,255,0.1);
}

/* =========================
BADGE — ESTADO ANIMAL
========================= */

.badge-vendido{
background:rgba(251,191,36,0.15);
color:#fbbf24;
border:1px solid rgba(251,191,36,0.3);
}

.badge-seguimiento{
background:rgba(34,197,94,0.12);
color:#4ade80;
border:1px solid rgba(34,197,94,0.25);
}

/* =========================
MÉTRICAS DE ENGORDA
========================= */

.metricas-engorda{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:12px;
margin-top:8px;
}

@media(max-width:900px){
.metricas-engorda{
grid-template-columns:repeat(3,1fr);
}
}

@media(max-width:480px){
.metricas-engorda{
grid-template-columns:repeat(2,1fr);
}
}

/* =========================
COMUNIDAD — COMENTARIOS
========================= */

.comentario-item{
padding:16px 18px;
background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.07);
border-radius:12px;
margin-bottom:12px;
}

.comentario-header{
display:flex;
align-items:center;
gap:12px;
margin-bottom:10px;
flex-wrap:wrap;
}

.comentario-fecha{
font-size:12px;
opacity:.4;
margin-left:auto;
}

.comentario-mensaje{
font-size:14px;
line-height:1.6;
opacity:.85;
margin:0;
}

/* =========================
COMUNIDAD — SOPORTE
========================= */

.soporte-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:16px;
margin:20px 0 28px;
}

.soporte-item{
display:flex;
align-items:flex-start;
gap:12px;
padding:14px 16px;
background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.07);
border-radius:12px;
font-size:13px;
line-height:1.5;
opacity:.85;
}

.soporte-icon{
font-size:20px;
flex-shrink:0;
margin-top:1px;
}

.coremasterx-brand{
display:flex;
align-items:center;
gap:10px;
margin-top:28px;
padding-top:20px;
border-top:1px solid rgba(255,255,255,0.07);
font-size:12px;
opacity:.5;
}

.coremasterx-brand a{
color:inherit;
text-decoration:none;
display:flex;
align-items:center;
gap:8px;
transition:opacity .2s;
}

.coremasterx-brand a:hover{
opacity:1;
}

.coremasterx-logo{
height:22px;
width:auto;
opacity:.7;
filter:brightness(1.4);
}

.btn-soporte{
display:inline-flex;
align-items:center;
gap:10px;
padding:13px 22px;
border-radius:12px;
font-size:15px;
font-weight:bold;
cursor:pointer;
border:none;
transition:all .3s;
text-decoration:none;
}

.btn-whatsapp{
background:linear-gradient(45deg,#22c55e,#4ade80);
color:#000;
box-shadow:0 0 18px rgba(34,197,94,0.35);
}

.btn-whatsapp:hover{
transform:translateY(-3px);
box-shadow:0 8px 24px rgba(34,197,94,0.5);
}

.btn-coremasterx{
background:rgba(255,255,255,0.08);
color:white;
border:1px solid rgba(255,255,255,0.2);
}

.btn-coremasterx:hover{
background:rgba(255,255,255,0.14);
transform:translateY(-3px);
}

.cta-row{
display:flex;
gap:16px;
flex-wrap:wrap;
margin-top:8px;
}

@media(max-width:600px){
.cta-row{
flex-direction:column;
}
.btn-soporte{
justify-content:center;
}
}

/* ================================
   COMUNIDAD — REDISEÑO PREMIUM
================================ */

/* HERO */

.com-hero{
position:relative;
padding:64px 40px 52px;
text-align:center;
overflow:hidden;
}

.com-hero-glow{
position:absolute;
top:-140px;
left:50%;
transform:translateX(-50%);
width:720px;
height:720px;
background:radial-gradient(ellipse at center,rgba(34,197,94,0.13) 0%,rgba(30,58,138,0.09) 40%,transparent 70%);
pointer-events:none;
animation:com-glow-pulse 5s ease-in-out infinite;
}

.com-hero-content{
position:relative;
z-index:1;
}

.com-hero-badge{
display:inline-block;
padding:6px 18px;
background:rgba(34,197,94,0.1);
border:1px solid rgba(34,197,94,0.25);
border-radius:20px;
font-size:13px;
color:#4ade80;
letter-spacing:.06em;
margin-bottom:22px;
}

.com-hero-title{
font-size:46px;
font-weight:800;
line-height:1.15;
margin-bottom:20px;
background:linear-gradient(135deg,#ffffff 0%,#4ade80 45%,#60a5fa 100%);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
background-clip:text;
}

.com-hero-sub{
max-width:600px;
margin:0 auto;
font-size:16px;
line-height:1.7;
opacity:.62;
}

@keyframes com-glow-pulse{
0%,100%{ opacity:.7; transform:translateX(-50%) scale(1); }
50%    { opacity:1;   transform:translateX(-50%) scale(1.07); }
}

/* GRID */

.com-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:24px;
margin-bottom:28px;
}

/* CARDS */

.com-card{
background:rgba(255,255,255,0.06);
border:1px solid rgba(255,255,255,0.1);
border-radius:18px;
padding:28px;
backdrop-filter:blur(16px);
box-shadow:
  0 2px 0 rgba(255,255,255,0.06) inset,
  0 12px 40px rgba(0,0,0,0.4);
transition:transform .3s, box-shadow .3s;
}

.com-card:hover{
transform:translateY(-3px);
box-shadow:
  0 2px 0 rgba(255,255,255,0.09) inset,
  0 18px 50px rgba(0,0,0,0.5);
}

.com-card-head{
display:flex;
align-items:flex-start;
gap:14px;
margin-bottom:22px;
}

.com-icon-box{
width:46px;
height:46px;
border-radius:12px;
background:linear-gradient(135deg,rgba(34,197,94,0.22),rgba(34,197,94,0.04));
border:1px solid rgba(34,197,94,0.22);
display:flex;
align-items:center;
justify-content:center;
font-size:20px;
flex-shrink:0;
}

.com-icon-box--blue{
background:linear-gradient(135deg,rgba(59,130,246,0.22),rgba(59,130,246,0.04));
border-color:rgba(59,130,246,0.22);
}

.com-card-title{
font-size:17px;
font-weight:700;
margin:0 0 4px;
}

.com-card-sub{
font-size:13px;
opacity:.48;
margin:0;
}

/* FORM */

.com-form textarea{
min-height:130px;
}

.com-btn-send{
display:flex;
align-items:center;
gap:9px;
padding:13px 26px;
background:linear-gradient(135deg,#22c55e,#4ade80);
border:none;
border-radius:10px;
color:#000;
font-weight:700;
font-size:15px;
cursor:pointer;
box-shadow:0 5px 0 #15803d,0 8px 22px rgba(34,197,94,0.3);
transition:all .25s;
}

.com-btn-send:hover{
transform:translateY(-3px);
box-shadow:0 8px 0 #15803d,0 14px 30px rgba(34,197,94,0.45);
}

.com-btn-send:active{
transform:translateY(2px);
box-shadow:0 2px 0 #15803d,0 4px 10px rgba(34,197,94,0.25);
}

/* LISTA VACÍA */

.com-empty{
text-align:center;
padding:32px 20px;
opacity:.45;
}

.com-empty-icon{
font-size:40px;
margin-bottom:12px;
}

.com-empty p{
font-size:15px;
margin-bottom:4px;
}

.com-empty span{
font-size:12px;
}

/* SECCIÓN APOYO */

.com-support{
position:relative;
border-radius:22px;
padding:2px;
background:linear-gradient(135deg,rgba(34,197,94,0.32),rgba(30,58,138,0.22) 50%,rgba(34,197,94,0.18));
margin-bottom:32px;
overflow:hidden;
}

.com-support-glow{
position:absolute;
inset:0;
background:radial-gradient(ellipse at 50% -10%,rgba(34,197,94,0.14) 0%,transparent 60%);
pointer-events:none;
animation:com-glow-pulse 6s ease-in-out infinite;
}

.com-support-inner{
background:linear-gradient(155deg,rgba(10,18,36,0.98) 0%,rgba(15,23,42,0.98) 60%,rgba(8,14,30,0.98) 100%);
border-radius:21px;
padding:44px;
position:relative;
z-index:1;
}

.com-support-head{
display:flex;
align-items:flex-start;
gap:20px;
margin-bottom:28px;
}

.com-support-icon{
width:58px;
height:58px;
border-radius:16px;
background:linear-gradient(135deg,rgba(34,197,94,0.25),rgba(34,197,94,0.04));
border:1px solid rgba(34,197,94,0.25);
display:flex;
align-items:center;
justify-content:center;
font-size:26px;
flex-shrink:0;
}

.com-support-title{
font-size:26px;
font-weight:800;
margin-bottom:10px;
background:linear-gradient(90deg,#ffffff,#4ade80);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
background-clip:text;
}

.com-support-sub{
font-size:14px;
opacity:.62;
line-height:1.68;
max-width:580px;
margin:0;
}

/* BENEFICIOS */

.com-benefits{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:14px;
margin-bottom:32px;
}

.com-benefit{
display:flex;
align-items:flex-start;
gap:10px;
padding:14px 16px;
background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.07);
border-radius:12px;
font-size:13px;
line-height:1.55;
color:rgba(255,255,255,0.72);
transition:background .2s,border-color .2s,transform .2s;
}

.com-benefit:hover{
background:rgba(34,197,94,0.07);
border-color:rgba(34,197,94,0.2);
transform:translateY(-2px);
}

.com-benefit-icon{
font-size:18px;
flex-shrink:0;
margin-top:1px;
}

/* BOTONES CTA */

.com-cta{
display:flex;
gap:16px;
flex-wrap:wrap;
margin-bottom:36px;
}

.com-btn-wa,
.com-btn-cx{
display:inline-flex;
align-items:center;
gap:10px;
padding:15px 28px;
border-radius:12px;
font-size:15px;
font-weight:700;
cursor:pointer;
text-decoration:none;
border:none;
transition:all .3s;
}

.com-btn-wa{
background:linear-gradient(135deg,#16a34a,#22c55e,#4ade80);
color:#000;
box-shadow:0 0 24px rgba(34,197,94,0.38),0 5px 0 #15803d;
animation:com-wa-glow 3.5s ease-in-out infinite;
}

.com-btn-wa:hover{
transform:translateY(-4px);
box-shadow:0 0 42px rgba(34,197,94,0.58),0 9px 0 #15803d;
}

.com-btn-wa:active{
transform:translateY(1px);
box-shadow:0 0 18px rgba(34,197,94,0.3),0 2px 0 #15803d;
}

.com-btn-cx{
background:rgba(255,255,255,0.08);
color:white;
border:1px solid rgba(255,255,255,0.18);
}

.com-btn-cx:hover{
background:rgba(255,255,255,0.14);
border-color:rgba(255,255,255,0.3);
transform:translateY(-4px);
box-shadow:0 10px 28px rgba(0,0,0,0.4);
}

.com-btn-icon{
font-size:18px;
}

@keyframes com-wa-glow{
0%,100%{ box-shadow:0 0 24px rgba(34,197,94,0.38),0 5px 0 #15803d; }
50%    { box-shadow:0 0 44px rgba(34,197,94,0.6), 0 5px 0 #15803d; }
}

/* BRANDING */

.com-branding{
text-align:center;
padding-top:30px;
border-top:1px solid rgba(255,255,255,0.07);
}

.com-branding-link{
display:inline-flex;
align-items:center;
justify-content:center;
text-decoration:none;
color:white;
transition:opacity .2s,transform .2s;
}

.com-branding-link:hover{
opacity:.85;
transform:scale(1.03);
}

.com-branding-logo{
height:110px;
width:auto;
max-width:340px;
filter:brightness(1.35) drop-shadow(0 0 22px rgba(34,197,94,0.25));
opacity:.88;
transition:filter .3s, opacity .3s, transform .3s;
}

.com-branding-link:hover .com-branding-logo{
filter:brightness(1.55) drop-shadow(0 0 36px rgba(34,197,94,0.45));
opacity:1;
transform:scale(1.04);
}

.com-branding-text{
margin-top:14px;
font-size:13px;
opacity:.35;
letter-spacing:.1em;
text-transform:uppercase;
}

/* Icono pequeño dentro del botón CoreMasterX */

.com-cx-icon{
height:22px;
width:auto;
object-fit:contain;
filter:brightness(1.5);
flex-shrink:0;
}

/* RESPONSIVE COMUNIDAD */

@media(max-width:860px){
.com-grid{ grid-template-columns:1fr; }
}

@media(max-width:768px){
.com-hero{ padding:44px 20px 36px; }
.com-hero-title{ font-size:30px; }
.com-support-inner{ padding:28px 20px; }
.com-support-head{ flex-direction:column; }
.com-benefits{ grid-template-columns:1fr 1fr; }
.com-cta{ flex-direction:column; }
.com-btn-wa,.com-btn-cx{ justify-content:center; }
}

@media(max-width:480px){
.com-hero-title{ font-size:26px; }
.com-benefits{ grid-template-columns:1fr; }
}

/* ================================
   LANDING PREMIUM — POST-SPLASH
================================ */

.landing-container {
  padding: 0;
}

/* ── HERO ── */

.landing-hero {
  position: relative;
  padding: 120px 40px 100px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% -20%, rgba(30,58,138,0.08) 0%, transparent 60%);
}

.landing-hero-glow-1 {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 65%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: landing-float 8s ease-in-out infinite;
}

.landing-hero-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 65%);
  bottom: -150px;
  right: 5%;
  pointer-events: none;
  animation: landing-float 10s ease-in-out infinite 1s;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.landing-hero-logo {
  margin-bottom: 40px;
}

.landing-logo-img {
  max-width: 280px;
  height: auto;
  filter: brightness(1.1) drop-shadow(0 0 30px rgba(34,197,94,0.3));
  animation: landing-logo-pulse 4s ease-in-out infinite;
}

@keyframes landing-logo-pulse {
  0%,100% { filter: brightness(1.1) drop-shadow(0 0 20px rgba(34,197,94,0.3)); }
  50%     { filter: brightness(1.25) drop-shadow(0 0 40px rgba(34,197,94,0.5)); }
}

.landing-hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #4ade80 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.3s;
}

.landing-btn-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e, #4ade80);
  color: #000;
  box-shadow: 0 0 24px rgba(34,197,94,0.38), 0 5px 0 #15803d;
}

.landing-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 42px rgba(34,197,94,0.58), 0 9px 0 #15803d;
}

.landing-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}

.landing-btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-4px);
}

.landing-btn-whatsapp {
  background: linear-gradient(135deg, #16a34a, #22c55e, #4ade80);
  color: #000;
  box-shadow: 0 0 24px rgba(34,197,94,0.38), 0 5px 0 #15803d;
  margin-top: 16px;
}

.landing-btn-whatsapp:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 42px rgba(34,197,94,0.58), 0 9px 0 #15803d;
}

@keyframes landing-float {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-20px) scale(1.05); }
}

/* ── SECCIONES GENERALES ── */

.landing-section {
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.landing-section-alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.landing-section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 42px;
  text-align: center;
  background: linear-gradient(90deg, #ffffff 0%, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CONTENIDO GENERAL ── */

.landing-content-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
}

.landing-content-block p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.62);
  margin-bottom: 18px;
}

.landing-content-block p:last-child {
  margin-bottom: 0;
}

/* ── BENEFICIOS GRID ── */

.landing-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.landing-benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.landing-benefit-card:hover {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(34,197,94,0.15);
}

.landing-benefit-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: inline-block;
}

.landing-benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #4ade80;
}

.landing-benefit-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ── AUDIENCE GRID ── */

.landing-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.landing-audience-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  text-align: center;
  transition: all 0.3s;
}

.landing-audience-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.landing-audience-emoji {
  font-size: 48px;
  margin-bottom: 20px;
}

.landing-audience-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff;
}

.landing-audience-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ── TRANSPARENCIA ── */

.landing-transparency-block {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(30,58,138,0.08));
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
}

.landing-transparency-block p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.62);
  margin-bottom: 20px;
}

.landing-transparency-block p:last-of-type {
  margin-bottom: 0;
}

.landing-transparency-cta {
  font-weight: 600;
  color: #4ade80 !important;
  margin-top: 24px !important;
}

/* ── CONTACTO ── */

.landing-section-contact {
  padding: 100px 40px;
}

.landing-contact-content {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 50px;
  backdrop-filter: blur(12px);
  text-align: center;
}

.landing-contact-content p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.62);
  margin-bottom: 28px;
}

/* ── COREMASTERX ── */

.landing-section-footer {
  padding: 80px 40px;
  background: rgba(255,255,255,0.01);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.landing-coremasterx {
  text-align: center;
}

.landing-cx-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  text-decoration: none;
  transition: transform 0.3s;
}

.landing-cx-link:hover {
  transform: scale(1.05);
}

.landing-cx-logo {
  height: 300px;
  width: auto;
  max-width: 360px;
  filter: brightness(1.35) drop-shadow(0 0 30px rgba(34,197,94,0.3));
  opacity: 0.9;
  transition: all 0.3s;
}

.landing-cx-link:hover .landing-cx-logo {
  filter: brightness(1.55) drop-shadow(0 0 50px rgba(34,197,94,0.5));
  opacity: 1;
  transform: scale(1.02);
}

.landing-cx-text {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}

.landing-cx-text strong {
  color: #4ade80;
  font-weight: 700;
}

.landing-cx-web a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.landing-cx-web a:hover {
  color: #4ade80;
}

/* ── RESPONSIVE ── */

@media(max-width: 900px) {
  .landing-benefits-grid,
  .landing-audience-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 768px) {
  .landing-hero {
    padding: 80px 20px 60px;
  }

  .landing-hero-title {
    font-size: 32px;
  }

  .landing-hero-subtitle {
    font-size: 15px;
  }

  .landing-hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .landing-section {
    padding: 60px 20px;
  }

  .landing-section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .landing-contact-content {
    padding: 32px 20px;
  }

  .landing-cx-logo {
    height: 240px;
    max-width: 280px;
  }
}

@media(max-width: 480px) {
  .landing-hero-logo {
    margin-bottom: 24px;
  }

  .landing-logo-img {
    max-width: 200px;
  }

  .landing-hero-title {
    font-size: 26px;
  }

  .landing-section-title {
    font-size: 22px;
  }

  .landing-btn {
    width: 100%;
    justify-content: center;
  }

  .landing-content-block {
    padding: 20px;
  }

  .landing-benefit-card,
  .landing-audience-card {
    padding: 24px;
  }

  .landing-transparency-block {
    padding: 24px;
  }

  .landing-cx-logo {
    height: 180px;
    max-width: 220px;
  }
}

/* ── NAVBAR BRAND LOGO ── */

.navbar-brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.navbar-brand-logo:hover {
  transform: scale(1.02);
}

.navbar-brand-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

@media(max-width: 768px) {
  .navbar-brand-logo img {
    height: 36px;
  }
}

/* ── LANDING ICON (reemplaza emojis) ── */

.landing-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(34,197,94,0.25));
  display: inline-block;
}

@media(max-width: 480px) {
  .landing-icon {
    width: 36px;
    height: 36px;
  }
}

/* ═════════════════════════════════════════════════════
   ╔═══════════════════════════════════════════════════╗
   ║      MEJORAS GLOBALES - TODAS LAS PÁGINAS        ║
   ╚═══════════════════════════════════════════════════╝
   ═════════════════════════════════════════════════════ */

/* ── NAVBAR MEJORADO (páginas internas) ── */

.navbar {
  position: relative;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(34, 197, 94, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar .navbar-brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.navbar .navbar-brand-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(34,197,94,0.2));
  transition: all 0.2s;
}

.navbar .navbar-brand-logo:hover img {
  filter: brightness(1.35) drop-shadow(0 0 20px rgba(34,197,94,0.4));
  transform: scale(1.02);
}

nav a {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a.active::after {
  width: 100%;
}

/* ── FOOTER GLOBAL ── */

.page-footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(34, 197, 94, 0.15);
  padding: 60px 40px;
  margin-top: 80px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.footer-coremasterx {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-cx-logo {
  height: 280px;
  width: auto;
  max-width: 380px;
  filter: brightness(1.3) drop-shadow(0 0 30px rgba(34,197,94,0.35));
  opacity: 0.95;
  transition: all 0.3s;
}

.footer-coremasterx a:hover .footer-cx-logo {
  filter: brightness(1.45) drop-shadow(0 0 35px rgba(34,197,94,0.4));
  opacity: 1;
  transform: scale(1.03);
}

.footer-cx-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  line-height: 1.6;
}

.footer-cx-text strong {
  color: #4ade80;
  font-weight: 700;
}

.footer-cx-text a {
  color: #4ade80;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-cx-text a:hover {
  color: #22c55e;
}

.footer-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-btn:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
  transform: translateY(-2px);
}

.footer-divider {
  width: 100%;
  max-width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.2), transparent);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

@media(max-width: 768px) {
  .page-footer {
    padding: 40px 20px;
    margin-top: 60px;
  }

  .footer-cx-logo {
    height: 200px;
    max-width: 260px;
  }

  .footer-buttons {
    flex-direction: column;
    width: 100%;
  }

  .footer-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── AUTH CARD MEJORADA ── */

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 60px rgba(34, 197, 94, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.4);
  animation: auth-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes auth-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-card h2 {
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card .form-group {
  margin-bottom: 24px;
}

.auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-card input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.auth-card input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.auth-card input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.auth-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  border: none;
  border-radius: 12px;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.auth-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.auth-btn:hover::before {
  transform: translateX(100%);
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 45px rgba(34, 197, 94, 0.35);
}

.auth-btn:active {
  transform: translateY(-1px);
}

.auth-link {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.auth-link:hover {
  color: #4ade80;
}

/* ── FORMS MEJORADOS ── */

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media(max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  padding: 12px;
  background: rgba(34, 197, 94, 0.05);
  border-left: 2px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  line-height: 1.6;
}

.form-hint p {
  margin-bottom: 6px;
}

.form-hint p:last-child {
  margin-bottom: 0;
}

/* ── BUTTONS MEJORADOS ── */

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  border: none;
  border-radius: 10px;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.4s;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-table {
  padding: 10px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #4ade80;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-table:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 6px 15px rgba(34, 197, 94, 0.15);
  transform: translateY(-1px);
}

.btn-cancel {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

/* ── CARDS MEJORADAS ── */

.card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(34, 197, 94, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 48px rgba(34, 197, 94, 0.1);
  transform: translateY(-2px);
}

.card h2,
.card h3 {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  font-weight: 700;
}

.card h3 {
  font-size: 18px;
}

/* ── STAT CARDS ── */

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 16px;
  padding: 28px 24px 34px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: visible;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.12);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  padding-bottom: 4px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── TABLES MEJORADAS ── */

.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead {
  background: rgba(34, 197, 94, 0.08);
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

table th {
  padding: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: #4ade80;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

table tbody tr:hover {
  background: rgba(34, 197, 94, 0.06);
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* ── SEARCH BAR MEJORADO ── */

.search-bar {
  margin-bottom: 24px;
}

.search-bar input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  transition: all 0.3s;
}

.search-bar input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* ── EMPTY STATE MEJORADO ── */

.empty-state {
  text-align: center;
  padding: 60px 40px;
  color: rgba(255, 255, 255, 0.5);
}

.empty-icon {
  font-size: 72px;
  margin-bottom: 20px;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.empty-state p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.empty-state span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── AVISO VENDIDO MEJORADO ── */

.aviso-vendido {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  animation: slide-in-down 0.4s ease;
}

@keyframes slide-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aviso-vendido-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.aviso-vendido strong {
  color: #fca5a5;
  font-weight: 700;
}

/* ── BREADCRUMB ── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: #4ade80;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #22c55e;
}

.breadcrumb-sep {
  opacity: 0.3;
}

/* ── ANIMAL INFO GRID ── */

.animal-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(34, 197, 94, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 16px;
  font-weight: 700;
  color: #4ade80;
}

/* ── PESO STATS ── */

.peso-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 20px;
  background: rgba(34, 197, 94, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.12);
}

.peso-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.peso-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #4ade80;
}

.peso-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ── CHART CARD ── */

.chart-card {
  position: relative;
  overflow: hidden;
}

.chart-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(34,197,94,0.08), transparent 50%);
  pointer-events: none;
}

/* ── RESPONSIVE ── */

@media(max-width: 768px) {
  .navbar {
    padding: 16px 20px;
  }

  .card {
    padding: 24px;
    margin-bottom: 20px;
  }

  .animal-info {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 32px;
  }

  .card h2 {
    font-size: 20px;
  }
}

@media(max-width: 480px) {
  .auth-card {
    padding: 32px 20px;
    max-width: 100%;
  }

  .animal-info {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-buttons {
    flex-direction: column;
  }

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

/* ================================
   DASHBOARD — TABLA vs CARDS MÓVIL
   ================================ */

/* Desktop: tabla visible, cards ocultas */
#cards-animales-mobile {
  display: none;
}

/* Móvil: ocultar tabla, mostrar cards */
@media (max-width: 768px) {
  #tabla-wrap .table-responsive,
  #tabla-wrap .search-bar {
    display: none !important;
  }

  #cards-animales-mobile {
    display: block;
    margin-top: 12px;
  }
}

/* ── Animal card móvil ── */
.animal-card-mobile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.animal-card-mobile:hover {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.acm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.acm-id {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.acm-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.acm-peso {
  font-size: 14px;
  color: #4ade80;
  font-weight: 600;
  margin-bottom: 14px;
}

.acm-peso-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 14px;
}

.acm-btn {
  display: block;
  text-align: center;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #4ade80;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s;
}

.acm-btn:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

/* Buscador móvil — visible encima de las cards */
@media (max-width: 768px) {
  #cards-animales-mobile .acm-buscador {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
  }
}

