/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* BODY */
body{
    background: linear-gradient(180deg, #f8e6c2 0%, #f5eadb 45%, #ffffff 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    color:#2f2a25;
}

/* HEADER */
.main-header{
    background: linear-gradient(135deg, #e5c07a 0%, #d8a35c 100%);
    color:#2f2a25;
    text-align:center;
    padding:50px 20px;
    box-shadow:0 10px 25px rgba(115, 77, 40, 0.18);
}

.main-header h1{
    font-size:44px;
    font-weight:800;
    letter-spacing:1px;
}

.main-header p{
    font-size:18px;
    margin-top:12px;
    opacity:0.85;
}

/* NAV */
.main-nav{
    background:#f0d8b2;
    box-shadow:0 4px 16px rgba(95, 64, 34, 0.16);
}

.main-nav ul{
    list-style:none;
    display:flex;
    justify-content:center;
    gap:32px;
    padding:16px 0;
}

.main-nav a{
    color:#2f2a25;
    text-decoration:none;
    font-weight:700;
    font-size:17px;
    padding:10px 16px;
    border-radius:14px;
    transition:all 0.25s ease;
}

.main-nav a:hover{
    background: rgba(255,255,255,0.7);
    color:#1b130e;
}

.main-nav .btn{
    margin-right:20px;
}

/* CONTENEDOR */
.container{
    background:rgba(255,255,255,0.96);
    max-width:1040px;
    margin:40px auto;
    padding:32px;
    border-radius:28px;
    box-shadow:0 18px 45px rgba(79, 56, 33, 0.12);
}

/* TITULOS */
h1, h2, h3, h4, h5{
    color:#2f2a25;
}

h3{
    text-align:center;
    margin-bottom:24px;
    color:#3d3027;
}

/* TARJETAS */
.card,
.admin-content,
.gallery-card{
    border-radius:22px;
    background:linear-gradient(180deg, rgba(255,255,255,0.95), rgba(249,241,227,0.9));
    border:1px solid rgba(204,166,120,0.35);
    box-shadow:0 18px 30px rgba(104, 72, 41, 0.08);
}

.image-preview img,
.card img{
    border-radius:18px;
    max-width:100%;
    display:block;
}

.gallery-card img{
    height: 250px;
    object-fit: cover;
    border-radius:18px 18px 0 0;
}

.image-preview{
    margin-top:10px;
    padding:10px;
    background:rgba(255,255,255,0.7);
    border-radius:18px;
    border:1px dashed rgba(123, 88, 50, 0.3);
}

/* CARRUSEL */
.carousel{
    border-radius:24px;
    overflow:hidden;
}

.carousel img{
    height:420px;
    object-fit:cover;
}

/* CAPTION */
.carousel-caption{
    background: rgba(47, 42, 37, 0.8);
    border-radius:14px;
    padding:14px;
}

.carousel-caption h5,
.carousel-caption p{
    color:#f5e9d7;
}

/* FORMULARIO */
form{
    margin-top:24px;
}

.form-group{
    margin-bottom:18px;
}

.form-control{
    border-radius:16px;
    padding:14px;
    border:1px solid rgba(151, 111, 62, 0.35);
    background:#fff8f0;
    color:#2f2a25;
}

.form-control:focus{
    border-color:#d39f69;
    box-shadow:0 0 0 0.2rem rgba(211, 159, 105, 0.2);
}

.btn{
    border-radius:18px;
    padding:12px 24px;
    background:#f39c12;
    border:none;
    color:#ffffff;
    font-weight:700;
    box-shadow:0 10px 18px rgba(243, 156, 18, 0.25);
}

.btn:hover{
    background:#d48806;
}

.btn-secondary{
    background:#f7d774;
    color:#2f2a25;
}

.btn-secondary:hover{
    background:#e8c44b;
}

.form-actions{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin-top:10px;
}

/* FOOTER */
footer{
    background:#f3d5aa;
    color:#2f2a25;
    text-align:center;
    padding:18px;
    margin-top:auto;
    border-top:1px solid rgba(123, 88, 50, 0.2);
}

/* ACCENTS */
.accent-text{
    color:#c16f5f;
}

/* RESPONSIVE */
@media(max-width:768px){

    .main-header h1{
        font-size:32px;
    }

    .main-nav ul{
        flex-direction:column;
        gap:12px;
    }

    .carousel img{
        height:280px;
    }

    .container{
        margin:24px 16px;
        padding:24px;
    }
}
