:root{
--green:#0f3d24;
--green-light:#1f7a45;
--green-bright:#2ecc71;
--gold:#d4af37;
--white:#ffffff;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Segoe UI',sans-serif;
background:linear-gradient(135deg,#041108,#0f3d24,#1f7a45);
color:white;
text-align:center;
min-height:100vh;
padding-bottom:100px;
overflow-x:hidden;
}

/* FONDO DINÁMICO GLOBAL */

.dynamic-background{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
overflow:hidden;
z-index:-1;
}

.dynamic-background video{
position:absolute;
top:50%;
left:50%;
width:110vw;
height:110vh;
min-width:110vw;
min-height:110vh;
object-fit:cover;
transform:translate(-50%, -50%);
pointer-events:none;
filter:blur(6px) brightness(.45) saturate(.9);
transition:opacity .8s ease;
}

.dynamic-background::after{
content:"";
position:absolute;
inset:0;
pointer-events:none;
background:linear-gradient(
135deg,
rgba(4,17,8,.45),
rgba(15,61,36,.50),
rgba(31,122,69,.45)
);
}

/* ENCABEZADO INICIO */

.hero{
padding:40px 20px;
}

.hero-header{
display:flex;
align-items:center;
justify-content:center;
gap:30px;
max-width:1200px;
margin:auto;
}

.logo{
width:160px;
height:auto;
border-radius:50%;
box-shadow:0 0 30px rgba(255,255,255,.25);
transition:.3s;
flex-shrink:0;
}

.logo:hover{
transform:scale(1.05);
}

.hero-text{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
}

.hero h1{
font-size:3.5rem;
font-weight:700;
line-height:1.1;
margin-bottom:10px;
color:white;
text-shadow:0 0 20px rgba(0,0,0,.4);
}

.subtitle{
font-size:1.2rem;
line-height:1.6;
text-align:center;
color:rgba(255,255,255,.9);
max-width:600px;
text-shadow:0 0 15px rgba(0,0,0,.4);
}

/* PÁGINAS INTERNAS */

.page-container{
max-width:1200px;
margin:auto;
padding:30px;
text-align:center;
}

.page-header{
text-align:center;
margin-bottom:25px;
}

.page-title-row{
display:flex;
align-items:center;
justify-content:center;
gap:20px;
margin-bottom:20px;
}

.page-title-text{
display:flex;
align-items:center;
justify-content:center;
text-align:center;
}

.page-title-text h1{
margin:0;
font-size:2.8rem;
font-weight:700;
text-shadow:0 0 20px rgba(0,0,0,.4);
}

.logo-small{
width:100px;
height:auto;
border-radius:50%;
box-shadow:0 0 25px rgba(255,255,255,.25);
transition:.3s;
flex-shrink:0;
}

.logo-small:hover{
transform:scale(1.05);
}

/* VERSÍCULO */

.verse-card{
max-width:900px;
margin:25px auto;
padding:30px;
background:rgba(255,255,255,.10);
backdrop-filter:blur(18px);
-webkit-backdrop-filter:blur(18px);
border-radius:30px;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
box-shadow:0 10px 35px rgba(0,0,0,.25);
border:1px solid rgba(255,255,255,.15);
}

.verse-card h2{
margin-bottom:20px;
color:var(--gold);
font-size:1.8rem;
}

#dailyVerse{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
gap:15px;
width:100%;
}

#dailyVerse p{
max-width:700px;
font-size:1.2rem;
line-height:1.8;
}

#dailyVerse strong{
font-size:1.15rem;
color:var(--gold);
}

/* MENÚ PRINCIPAL */

.menu-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:25px;
padding:30px;
max-width:1200px;
margin:auto;
}

.menu-card{
background:rgba(255,255,255,.12);
backdrop-filter:blur(20px);
-webkit-backdrop-filter:blur(20px);
border:1px solid rgba(255,255,255,.15);
border-radius:30px;
padding:40px 20px;
text-decoration:none;
color:white;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
transition:.35s;
box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.menu-card:hover{
transform:translateY(-10px) scale(1.04);
box-shadow:0 0 35px rgba(46,204,113,.45);
}

.menu-card i{
font-size:3.5rem;
color:var(--gold);
margin-bottom:20px;
filter:drop-shadow(0 0 10px rgba(212,175,55,.35));
}

.menu-card h3{
margin-bottom:10px;
font-size:1.5rem;
}

.menu-card p{
line-height:1.6;
opacity:.9;
}

/* RADIO */

.player-card{
background:rgba(255,255,255,.10);
backdrop-filter:blur(20px);
-webkit-backdrop-filter:blur(20px);
padding:35px;
border-radius:30px;
max-width:700px;
margin:auto;
text-align:center;
border:1px solid rgba(255,255,255,.15);
box-shadow:0 10px 40px rgba(0,0,0,.35);
}

.radio-icon{
font-size:4.5rem;
color:var(--gold);
margin-bottom:20px;
filter:drop-shadow(0 0 10px rgba(212,175,55,.5));
}

.live-badge{
display:flex;
justify-content:center;
align-items:center;
gap:10px;
font-weight:bold;
margin-bottom:25px;
}

.live-badge span{
width:12px;
height:12px;
background:red;
border-radius:50%;
animation:pulse 1s infinite;
}

@keyframes pulse{
50%{
opacity:.2;
}
}

.play-btn{
width:95px;
height:95px;
border:none;
border-radius:50%;
background:linear-gradient(135deg,#2ecc71,#1f7a45);
color:white;
font-size:2rem;
cursor:pointer;
margin:25px auto;
display:flex;
align-items:center;
justify-content:center;
transition:.3s;
box-shadow:0 0 30px rgba(46,204,113,.5);
}

.play-btn:hover{
transform:scale(1.08);
box-shadow:0 0 45px rgba(46,204,113,.8);
}

.volume-section{
display:flex;
justify-content:center;
align-items:center;
gap:15px;
margin-top:20px;
}

.volume-section input{
width:250px;
}

#statusText{
margin-top:25px;
font-size:1rem;
color:rgba(255,255,255,.9);
}

/* TV */

.tv-card{
background:rgba(255,255,255,.10);
padding:25px;
border-radius:30px;
backdrop-filter:blur(18px);
-webkit-backdrop-filter:blur(18px);
text-align:center;
border:1px solid rgba(255,255,255,.15);
box-shadow:0 10px 35px rgba(0,0,0,.25);
}

.video-wrapper{
position:relative;
padding-bottom:56.25%;
height:0;
overflow:hidden;
border-radius:20px;
}

.video-wrapper iframe,
.video-wrapper video{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
border:none;
border-radius:20px;
}

.fullscreen-btn{
display:inline-flex;
justify-content:center;
align-items:center;
gap:10px;
margin:20px auto 0;
padding:15px 30px;
border:none;
border-radius:20px;
background:linear-gradient(135deg,var(--gold),#f1c40f);
color:black;
font-weight:bold;
cursor:pointer;
transition:.3s;
box-shadow:0 0 25px rgba(212,175,55,.35);
}

.fullscreen-btn:hover{
transform:scale(1.05);
box-shadow:0 0 35px rgba(212,175,55,.55);
}

/* GALERÍA */

.search-box{
width:100%;
padding:16px;
border:none;
border-radius:20px;
text-align:center;
margin-bottom:20px;
font-size:1rem;
outline:none;
box-shadow:0 10px 25px rgba(0,0,0,.2);
}

.gallery-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:25px;
}

.video-card{
background:rgba(255,255,255,.10);
padding:20px;
border-radius:25px;
text-align:center;
backdrop-filter:blur(18px);
-webkit-backdrop-filter:blur(18px);
border:1px solid rgba(255,255,255,.15);
box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.video-card video,
.video-card iframe{
width:100%;
aspect-ratio:16/9;
border:none;
border-radius:15px;
}

.video-card h3{
margin-top:15px;
}

/* 404 */

.error-card{
max-width:800px;
margin:40px auto;
padding:40px 25px;
background:rgba(255,255,255,.10);
backdrop-filter:blur(20px);
-webkit-backdrop-filter:blur(20px);
border-radius:30px;
border:1px solid rgba(255,255,255,.15);
box-shadow:0 10px 35px rgba(0,0,0,.25);
text-align:center;
}

.error-card h1{
font-size:5rem;
color:var(--gold);
margin-bottom:10px;
}

.error-card p{
font-size:1.2rem;
line-height:1.6;
margin-bottom:25px;
}

/* BOTONES GENERALES */

.btn,
.back-btn{
display:inline-flex;
align-items:center;
justify-content:center;
gap:10px;
padding:15px 30px;
border:none;
border-radius:20px;
background:linear-gradient(135deg,var(--green-bright),var(--green-light));
color:white;
font-weight:bold;
text-decoration:none;
cursor:pointer;
transition:.3s;
box-shadow:0 0 25px rgba(46,204,113,.35);
}

.btn:hover,
.back-btn:hover{
transform:scale(1.05);
box-shadow:0 0 35px rgba(46,204,113,.6);
}

/* MENÚ INFERIOR */

.bottom-nav{
position:fixed;
bottom:0;
left:0;
right:0;
background:rgba(0,0,0,.65);
backdrop-filter:blur(20px);
-webkit-backdrop-filter:blur(20px);
display:flex;
justify-content:space-around;
align-items:center;
padding:15px;
z-index:999;
border-top:1px solid rgba(255,255,255,.12);
}

.bottom-nav a{
color:white;
font-size:1.6rem;
transition:.3s;
text-decoration:none;
}

.bottom-nav a:hover{
color:var(--gold);
transform:translateY(-5px);
}

/* RESPONSIVE */

@media(max-width:768px){

.dynamic-background video{
top:50%;
left:50%;
width:120vw;
height:120vh;
min-width:120vw;
min-height:120vh;
object-fit:cover;
transform:translate(-50%, -50%) scale(1.05);
filter:blur(5px) brightness(.45) saturate(.9);
}

.hero-header,
.page-title-row{
flex-direction:column;
gap:18px;
}

.logo{
width:130px;
}

.logo-small{
width:90px;
}

.hero h1{
font-size:2.2rem;
}

.page-title-text h1{
font-size:2rem;
}

.subtitle{
font-size:1rem;
}

.verse-card{
margin:20px;
padding:25px 18px;
}

.menu-grid{
grid-template-columns:1fr;
padding:20px;
}

.menu-card{
padding:30px 15px;
}

.player-card{
padding:25px;
margin:0 10px;
}

.play-btn{
width:80px;
height:80px;
}

.volume-section{
flex-direction:column;
}

.volume-section input{
width:90%;
}

.page-container{
padding:25px 15px;
}

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

}

@media(min-width:1200px){

body{
font-size:18px;
}

.menu-card{
min-height:230px;
}

}