:root {
    --cafe: #6b4f3f;
    --cafe-oscuro: #3f2f27;
    --crema: #fff7ed;
    --beige: #f3dfc8;
    --dorado: #c89b5c;
    --texto: #3a2b24;
    --blanco: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #fff7ed 0%, #f8ead8 100%);
    color: var(--texto);
}

a {
    text-decoration: none;
    color: inherit;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background:
        radial-gradient(circle at top left, rgba(200, 155, 92, 0.25), transparent 30%),
        radial-gradient(circle at bottom right, rgba(107, 79, 63, 0.18), transparent 35%),
        var(--crema);
}

.hero-content {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}

.hero-text span {
    color: var(--dorado);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 58px;
    margin: 10px 0;
    color: var(--cafe-oscuro);
}

.hero-text h2 {
    font-size: 28px;
    margin: 0 0 20px;
    color: var(--cafe);
}

.hero-text p {
    font-size: 19px;
    line-height: 1.7;
}

.hero-dates {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.date-box {
    background: var(--blanco);
    border-radius: 18px;
    padding: 15px 20px;
    box-shadow: 0 10px 25px rgba(63, 47, 39, 0.12);
}

.date-box strong {
    display: block;
    color: var(--cafe);
    font-size: 14px;
}

.date-box span {
    color: var(--texto);
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0;
}

.hero-photo {
    background: var(--blanco);
    padding: 18px;
    border-radius: 32px;
    box-shadow: 0 25px 50px rgba(63, 47, 39, 0.2);
    transform: rotate(1deg);
}

.hero-photo img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.section {
    max-width: 1200px;
    margin: auto;
    padding: 70px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title span {
    color: var(--dorado);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 38px;
    color: var(--cafe-oscuro);
    margin: 10px 0;
}

.historia {
    background: var(--blanco);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(63, 47, 39, 0.1);
    font-size: 18px;
    line-height: 1.8;
}

.album-grid,
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--blanco);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(63, 47, 39, 0.12);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img,
.card video,
.card iframe {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border: none;
    display: block;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin: 0 0 10px;
    color: var(--cafe-oscuro);
}

.card-body p {
    line-height: 1.5;
}

.badge {
    display: inline-block;
    background: var(--beige);
    color: var(--cafe);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer {
    text-align: center;
    padding: 35px 20px;
    background: var(--cafe-oscuro);
    color: var(--crema);
}

.admin-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.admin-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.btn {
    display: inline-block;
    background: var(--cafe);
    color: #fff;
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.btn:hover {
    background: var(--cafe-oscuro);
}

.btn-danger {
    background: #b23b3b;
}

.admin-menu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.admin-menu a {
    background: var(--cafe);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .hero-content,
    .album-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-photo img {
        height: 380px;
    }
}

.album-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #fff7ed 0%, #f3dfc8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-bottom: 1px solid rgba(107, 79, 63, 0.12);
    color: #6b4f3f;
}

.album-placeholder .paw {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 8px;
}

.album-placeholder .paw-small {
    font-size: 34px;
    line-height: 1;
    opacity: 0.75;
}

.album-placeholder small {
    font-size: 14px;
    color: #6b4f3f;
    opacity: 0.85;
    margin-top: 10px;
}

.image-clickable {
    cursor: zoom-in;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(31, 22, 18, 0.88);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    position: relative;
    max-width: 96vw;
    max-height: 92vh;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.image-modal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: #fff7ed;
    color: #3f2f27;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.image-modal-close:hover {
    background: #f3dfc8;
}