@charset "utf-8";

/* ========================= */
/* RESET */
/* ========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

body{
background:#0d1117;
color:#fff;
}

/* ========================= */
/* TOPBAR */
/* ========================= */

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 40px;
background:#111827;
box-shadow:0 0 15px #000;
}

.logo{
font-size:32px;
font-weight:bold;
color:#fff;
}

.logo span{
color:#f7c948;
}

nav a{
color:#fff;
text-decoration:none;
margin-left:20px;
transition:0.3s;
}

nav a:hover{
color:#00c3ff;
}

/* ========================= */
/* HERO (INICIO) */
/* ========================= */

.hero{
height:85vh;
background:linear-gradient(135deg,#0d1117,#111827,#001d3d);
display:flex;
justify-content:center;
align-items:center;
text-align:center;
position:relative;
}

.hero-content{
z-index:2;
}

.hero h1{
font-size:55px;
margin-bottom:15px;
}

.hero h1 span{
color:#f7c948;
}

.hero p{
font-size:22px;
margin-bottom:30px;
color:#ddd;
}

/* ========================= */
/* BOTONES HOME */
/* ========================= */

.hero-buttons .btn{
padding:15px 30px;
margin:10px;
border-radius:12px;
text-decoration:none;
font-weight:bold;
display:inline-block;
transition:0.3s;
}

.btn-main{
background:#00c3ff;
color:#000;
}

.btn-main:hover{
transform:scale(1.08);
}

.btn-alt{
background:#f7c948;
color:#000;
}

/* ========================= */
/* GRID CARDS (AYUDA + GENERAL) */
/* ========================= */

.cards{
display:grid;
grid-template-columns:repeat(3, minmax(0, 1fr));
gap:25px;
padding:50px;
align-items:stretch;
max-width:1200px; /* 🔥 FIX PRINCIPAL */
margin:0 auto;
}

/* responsive */
@media(max-width:900px){
.cards{
grid-template-columns:repeat(2, 1fr);
}
}

@media(max-width:600px){
.cards{
grid-template-columns:1fr;
}
}

/* ========================= */
/* CARD ESTILO UNIFICADO */
/* ========================= */

.card{
background:linear-gradient(135deg,#111827,#0d1117);
padding:25px;
border-radius:18px;
box-shadow:0 0 15px rgba(0,195,255,0.15);

color:#fff;
text-decoration:none;

display:flex;
flex-direction:column;
justify-content:center;

min-height:160px;
width:100%;

border:1px solid rgba(0,195,255,0.08);
transition:0.3s;
box-sizing:border-box;
}

.card:hover{
transform:translateY(-8px);
box-shadow:0 0 30px rgba(0,195,255,0.35);
border-color:rgba(0,195,255,0.4);
}

.card h3{
color:#fff;
font-size:20px;
margin-bottom:10px;
}

.card p{
color:#cbd5e1;
font-size:14px;
margin:0;
}

/* ========================= */
/* PAGE GENERAL */
/* ========================= */

.page{
padding:60px;
max-width:1200px; /* 🔥 FIX IMPORTANTE */
margin:auto;
text-align:center;
}

/* ========================= */
/* HELP PAGE (SOLO AYUDA) */
/* ========================= */

.help-page .cards{
grid-template-columns:repeat(3, 1fr);
gap:30px;
}

.help-page .card{
min-height:170px;
padding:30px;
}

/* ========================= */
/* FORM */
/* ========================= */

.form{
display:flex;
flex-direction:column;
gap:15px;
margin-top:30px;
}

.form input,
.form select,
.form textarea{
padding:15px;
border:none;
border-radius:10px;
background:#1f2937;
color:#fff;
}

.form button{
padding:15px;
border:none;
border-radius:10px;
background:#00c3ff;
font-weight:bold;
cursor:pointer;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer{
text-align:center;
padding:30px;
background:#111827;
margin-top:40px;
}

/* ========================= */
/* IFRAME */
/* ========================= */

.iframe-box{
margin-top:30px;
border-radius:15px;
overflow:hidden;
box-shadow:0 0 25px rgba(0,195,255,0.3);
}

/* ========================= */
/* CHAT FIX */
/* ========================= */

.chat-zone{
width:100%;
background:#ffffff;
padding:0;
margin:0;
line-height:0;
}

.chat-zone iframe{
display:block;
width:100%;
height:660px;
border:0;
margin:0;
padding:0;
background:#ffffff;
}

.chat-zone + .footer{
margin-top:0;
}

/* ========================= */
/* FIX NOTICIAS / CENTRADO HOME */
/* ========================= */

.news,
.noticias,
.hero-content{
margin-left:auto;
margin-right:auto;
text-align:center;
}

/* ========================= */
/* RESPONSIVE GENERAL */
/* ========================= */

@media(max-width:768px){

.topbar{
flex-direction:column;
gap:15px;
}

.hero h1{
font-size:36px;
}

.hero p{
font-size:18px;
}
}