*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:black;
    color:white;
    font-family:'Ubuntu', sans-serif;
}

/* HEADER */

header{
    width:100%;
    background:#009C8C;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 8%;
}

.logo{
    font-size:32px;
    font-weight:700;
    letter-spacing:2px;
}

nav{
    display:flex;
    gap:40px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:500;
    transition:0.3s;
}

nav a:hover{
    opacity:0.7;
}

/* HERO */

.hero{

    min-height:100vh;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    padding:120px 20px 50px;

    position:relative;

    overflow:hidden;
}

.hero::before{

    content:'';

    position:absolute;

    inset:0;

    background:rgba(0,0,0,0.55);
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero h1{
    font-size:70px;
    margin-bottom:20px;
}

.hero p{
    font-size:22px;
    max-width:700px;
    line-height:1.6;
    margin-bottom:40px;
    color:#d6d6d6;
}

.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    justify-content:center;
}

.hero-buttons a{
    text-decoration:none;
}

/* BOTONES */

button{
    background:#009C8C;
    color:white;
    border:none;

    padding:16px 28px;

    border-radius:8px;

    cursor:pointer;

    font-size:16px;
    font-weight:500;

    transition:0.3s;
}

button:hover{
    transform:translateY(-3px);
    opacity:0.9;
}

/* SECTIONS */

.landing-section{

    width:90%;
    max-width:1400px;

    margin:auto;

    padding:120px 0;
}

.landing-section h2{

    font-size:50px;

    margin-bottom:60px;

    color:white;
}

/* CARDS */

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:40px;

    margin-top:40px;
}

.card{

    background:#111;

    border-radius:14px;

    overflow:hidden;

    transition:0.4s;

    border:1px solid #1d1d1d;
}

.card:hover{

    transform:translateY(-8px);

    box-shadow:0 10px 30px rgba(0,0,0,0.4);
}

.card img{

    width:100%;

    height:260px;

    object-fit:cover;
}

.card h3{

    font-size:28px;

    margin:25px 25px 15px;
}

.card p{

    color:#cfcfcf;

    line-height:1.7;

    margin:0 25px 30px;
}

/* NOSOTROS */

.nosotros{
    text-align:center;
}

.nosotros p{

    font-size:22px;

    max-width:900px;

    margin:auto;

    line-height:1.8;

    color:#d6d6d6;
}

/* FOOTER */

footer{

    background:#009C8C;

    padding:30px;

    text-align:center;

    margin-top:100px;
}

footer p{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;
}

footer a{

    color:white;

    text-decoration:none;

    transition:0.3s;
}

footer a:hover{
    opacity:0.7;
}

/* ANIMACIONES */

.reveal{

    opacity:0;

    transform:translateY(80px);

    transition:all 1s ease;
}

.reveal.active{

    opacity:1;

    transform:translateY(0);
}

/* RESPONSIVE */

@media(max-width:900px){

    header{

        flex-direction:column;

        gap:20px;
    }

    nav{

        gap:20px;

        flex-wrap:wrap;

        justify-content:center;
    }

    .hero h1{
        font-size:50px;
    }

    .landing-section h2{
        font-size:40px;
    }
}

@media(max-width:600px){

    header{
        padding:20px;
    }

    .logo{
        font-size:26px;
    }

    nav{
        gap:15px;
    }

    nav a{
        font-size:14px;
    }

    .hero h1{
        font-size:38px;
    }

    .hero p{
        font-size:18px;
    }

    .landing-section{
        padding:80px 0;
    }

    .landing-section h2{
        font-size:32px;
    }

    .card h3{
        font-size:24px;
    }

    .nosotros p{
        font-size:18px;
    }

    button{
        width:100%;
    }

    .hero-buttons{
        width:100%;
        flex-direction:column;
    }

    .hero-buttons a{
        width:100%;
    }
}

input{

    width:100%;

    padding:16px;

    background:#181818;

    border:1px solid #2b2b2b;

    border-radius:8px;

    color:white;

    margin-top:10px;

    font-size:16px;
}

input:focus{

    outline:none;

    border-color:#009C8C;
}

label{

    font-size:15px;

    color:#d0d0d0;
}

form{
    width:100%;
}

.hero-buttons form{
    display:inline-block;
}

.hero-buttons{
    align-items:center;
}

/* ===== DASHBOARD / FORMULARIOS ===== */

.dashboard-section{

    min-height:100vh;

    padding-top:180px;

    padding-bottom:80px;

    width:100%;
}

.dashboard-container{

    width:90%;

    max-width:900px;

    margin:auto;
}

.dashboard-header{

    text-align:center;

    margin-bottom:50px;
}

.dashboard-header h1{

    font-size:60px;

    margin-bottom:20px;
}

.dashboard-header p{

    color:#cfcfcf;

    font-size:20px;

    line-height:1.7;
}

.dashboard-card{

    background:#111;

    border:1px solid #222;

    border-radius:18px;

    padding:40px;
}

.form-group{

    margin-bottom:30px;
}

.form-group label{

    display:block;

    margin-bottom:12px;

    color:white;

    font-size:16px;

    font-weight:500;
}

textarea{

    width:100%;

    padding:16px;

    background:#181818;

    border:1px solid #2b2b2b;

    border-radius:8px;

    color:white;

    font-size:16px;

    resize:vertical;

    min-height:180px;
}

textarea:focus{

    outline:none;

    border-color:#009C8C;
}

input[type="file"]{

    background:none;

    border:none;

    padding:0;

    margin-top:10px;

    color:white;
}

nav form{

    display:flex;

    align-items:center;
}

@media(max-width:768px){

    .dashboard-header h1{

        font-size:42px;
    }

    .dashboard-header p{

        font-size:18px;
    }

    .dashboard-card{

        padding:25px;
    }
}
/* ===== MENSAJE SUCCESS ===== */

.success-message{

    position:fixed;

    top:120px;

    left:50%;

    transform:translateX(-50%);

    background:#009C8C;

    color:white;

    padding:18px 30px;

    border-radius:10px;

    z-index:3000;

    font-weight:600;

    box-shadow:0 10px 30px rgba(0,0,0,0.4);

    animation:fadeSuccess 4s forwards;
}

@keyframes fadeSuccess{

    0%{
        opacity:0;
        transform:translateX(-50%) translateY(-20px);
    }

    10%{
        opacity:1;
        transform:translateX(-50%) translateY(0);
    }

    80%{
        opacity:1;
    }

    100%{
        opacity:0;
    }
}

/* ===== HEADER PRIVADO ===== */

.dashboard-header-nav{

    width:100%;

    background:#009C8C;

    position:fixed;

    top:0;
    left:0;

    z-index:1000;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 8%;
}

.dashboard-nav{

    display:flex;

    align-items:center;

    gap:30px;
}

.dashboard-nav a{

    color:white;

    text-decoration:none;

    font-weight:600;
}

.logout-btn{

    background:black;

    color:white;

    border:none;

    padding:12px 22px;

    border-radius:8px;

    cursor:pointer;

    transition:0.3s;
}

.logout-btn:hover{

    opacity:0.8;
}

/* ===== MÓVIL ===== */

@media(max-width:768px){

    .dashboard-header-nav{

        flex-direction:column;

        gap:15px;

        padding:20px;
    }

    .dashboard-nav{

        width:100%;

        justify-content:space-between;
    }

    .desktop-link{

        display:none;
    }

    .logout-btn{

        padding:10px 18px;
    }
}

/* ===== ADMIN DASHBOARD ===== */

.admin-panel-buttons{

    margin-top:50px;

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:25px;
}

.admin-big-btn{

    width:320px;

    padding:20px;

    font-size:18px;

    font-weight:700;

    border-radius:12px;

    background:#009C8C;

    transition:0.3s;
}

.admin-big-btn:hover{

    transform:translateY(-4px);

    opacity:0.9;
}

.dashboard-nav{

    display:flex;

    align-items:center;
}

.logout-btn{

    background:black;

    color:white;

    padding:14px 24px;

    border-radius:10px;

    font-weight:600;
}

.logout-btn:hover{

    background:#1a1a1a;
}

@media(max-width:768px){

    .admin-big-btn{

        width:100%;
    }

    .admin-panel-buttons{

        width:100%;
    }
}

/* ===== PANEL PRESUPUESTOS ===== */

.presupuestos-grid{

    margin-top:60px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));

    gap:30px;
}

.presupuesto-card{

    background:#101010;

    border:1px solid #1f1f1f;

    border-radius:18px;

    padding:30px;

    transition:0.3s;
}

.presupuesto-card:hover{

    transform:translateY(-5px);

    border-color:#009C8C;
}

.presupuesto-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin-bottom:25px;
}

.presupuesto-user{

    color:#bdbdbd;

    font-size:14px;

    word-break:break-word;
}

.estado-badge{

    padding:8px 14px;

    border-radius:999px;

    font-size:13px;

    font-weight:700;

    text-transform:uppercase;
}

.estado-pendiente{

    background:#3b2a00;

    color:#ffb100;
}

.estado-aprobado{

    background:#002f22;

    color:#00d68f;
}

.estado-rechazado{

    background:#3a0000;

    color:#ff4b4b;
}

.presupuesto-card h2{

    font-size:30px;

    margin-bottom:20px;

    color:white;
}

.presupuesto-desc{

    color:#bdbdbd;

    line-height:1.7;

    margin-bottom:25px;
}

.presupuesto-date{

    color:#7d7d7d;

    font-size:14px;

    margin-bottom:25px;
}

.admin-small-btn{

    padding:14px 24px;

    border-radius:10px;

    background:#009C8C;

    font-weight:600;
}

.admin-small-btn:hover{

    transform:translateY(-3px);
}

.admin-nav-link{

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:0.3s;
}

.admin-nav-link:hover{

    opacity:0.7;
}

@media(max-width:768px){

    .presupuesto-top{

        flex-direction:column;

        align-items:flex-start;
    }

    .presupuesto-card h2{

        font-size:24px;
    }
}

.delete-btn{

    background:#8f1010;

    color:white;

    border:none;

    padding:12px 22px;

    border-radius:10px;

    cursor:pointer;

    font-weight:700;

    transition:0.3s;
}

.delete-btn:hover{

    background:#c41717;

    transform:translateY(-2px);
}

/* ===== DETALLE PRESUPUESTO ===== */

.detalle-container{

    width:90%;
    max-width:1000px;

    margin:140px auto 80px;
}

.detalle-card,
.detalle-form-card{

    background:#0f0f11;

    border:1px solid #1f1f1f;

    border-radius:22px;

    padding:40px;

    margin-bottom:30px;
}

.detalle-top{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:20px;

    margin-bottom:40px;
}

.detalle-label{

    color:#8f8f8f;

    font-size:14px;

    margin-bottom:8px;

    text-transform:uppercase;

    letter-spacing:1px;
}

.detalle-email{

    color:#bdbdbd;

    margin-top:8px;
}

.detalle-block{

    margin-bottom:35px;
}

.detalle-block h2{

    font-size:42px;

    margin-top:10px;
}

.detalle-description{

    color:#d4d4d4;

    line-height:1.8;

    font-size:17px;
}

.detalle-date{

    color:#00c7b1;

    font-weight:700;
}

.pdf-btn{

    display:inline-block;

    background:#009c8c;

    color:white;

    padding:14px 26px;

    border-radius:12px;

    text-decoration:none;

    font-weight:700;

    transition:0.3s;
}

.pdf-btn:hover{

    opacity:0.9;

    transform:translateY(-2px);
}

.detalle-form-card form{

    display:flex;

    flex-direction:column;

    gap:18px;
}

textarea,
select{

    width:100%;

    background:#181818;

    border:1px solid #2a2a2a;

    border-radius:12px;

    color:white;

    padding:18px;

    font-size:16px;

    font-family:'Ubuntu', sans-serif;
}

textarea:focus,
select:focus{

    outline:none;

    border-color:#009c8c;
}

.admin-big-btn{

    background:#009c8c;

    color:white;

    border:none;

    padding:18px;

    border-radius:14px;

    font-size:17px;

    font-weight:700;

    cursor:pointer;

    transition:0.3s;
}

.admin-big-btn:hover{

    transform:translateY(-3px);

    opacity:0.9;
}

@media(max-width:768px){

    .detalle-top{

        flex-direction:column;
    }

    .detalle-block h2{

        font-size:30px;
    }

    .detalle-card,
    .detalle-form-card{

        padding:25px;
    }
}

.detalle-id{

    margin-top:14px;

    color:#00c7b1;

    font-weight:700;

    font-size:15px;

    letter-spacing:1px;
}

.user-email{

    color:#cfcfcf;

    margin-top:12px;

    margin-bottom:18px;

    word-break:break-word;
}

.user-actions{

    display:flex;

    gap:12px;

    margin-top:20px;

    flex-wrap:wrap;
}

/* ===== COOKIES ===== */

.cookie-banner{

    position:fixed;

    bottom:0;
    left:0;

    width:100%;

    background:#111;

    border-top:1px solid #222;

    padding:20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    z-index:5000;
}

.cookie-banner.hidden{

    display:none;
}

.cookie-banner p{

    color:#d0d0d0;

    line-height:1.6;

    max-width:800px;
}

.cookie-buttons{

    display:flex;

    gap:15px;
}

#reject-cookies{

    background:#1f1f1f;
}

#reject-cookies:hover{

    background:#2d2d2d;
}

@media(max-width:768px){

    .cookie-banner{

        flex-direction:column;

        align-items:flex-start;
    }

    .cookie-buttons{

        width:100%;

        display:flex;
    }

    .cookie-buttons button{

        flex:1;
    }
}