@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --lavender: #D8CCF8;
    --lavender-dark: #B9A4EC;
    --lavender-light: #F1ECFF;
    --purple: #62527F;
    --text: #40384F;
    --background: #FAF8FF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background:
        radial-gradient(circle at 10% 20%, rgba(216,204,248,.25), transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(185,164,236,.18), transparent 25%),
        var(--background);
    color: var(--text);
}

.titlebar {
    text-align: center;
    padding: 45px 20px;
    background: linear-gradient(135deg, #D8CCF8, #EEE8FA);
    border-bottom: 3px solid #B9A4EC;
}

.logo {
    width: 300px;
    max-width: 90%;
}

.titlebar h1 {
    margin: 15px 0 5px;
    font-size: 34px;
}

.titlebar p {
    margin: 8px auto 0;
    max-width: 650px;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 20;
}

.menu a {
    text-decoration: none;
    color: var(--purple);
    padding: 9px 14px;
    border-radius: 10px;
    transition: .25s ease;
    font-weight: 600;
}

.menu a:hover {
    background: var(--lavender);
    transform: translateY(-2px);
}

.card {
    width: min(1000px, 92%);
    margin: 40px auto;
    padding: 30px;
    background: rgba(255,255,255,.92);
    border: 2px solid var(--lavender);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(82,65,112,.12);
}

.section-label {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 20px;
    background: var(--lavender);
    color: var(--purple);
    border-radius: 8px;
    font-weight: 700;
}

.intro {
    line-height: 1.7;
}

.featured {
    text-align: center;
}

.featured-photo {
    max-width: 650px;
    margin: auto;
    padding: 12px;
    background: white;
    box-shadow: 0 12px 25px rgba(0,0,0,.16);
    transform: rotate(-1deg);
}

.featured-photo img {
    width: 100%;
    display: block;
    max-height: 520px;
    object-fit: cover;
}

.photo-info {
    max-width: 650px;
    margin: 25px auto 0;
}

.photo-info h2 {
    margin-bottom: 5px;
}

.date {
    color: #806DA4;
    font-size: 14px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 35px;
    margin-top: 30px;
    align-items: start;
}

.photo-card {
    background: white;
    padding: 10px 10px 18px;
    box-shadow: 0 10px 22px rgba(0,0,0,.15);
    transition: transform .35s ease, box-shadow .35s ease;
}

.photo-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.photo-card:hover {
    transform: rotate(0deg) scale(1.06) translateY(-7px);
    box-shadow: 0 18px 30px rgba(0,0,0,.20);
    position: relative;
    z-index: 5;
}

.tilt-left {
    transform: rotate(-2deg);
}

.tilt-right {
    transform: rotate(2deg);
}

.caption {
    padding: 10px 5px 0;
    text-align: center;
}

.caption h3 {
    margin: 4px 0;
    color: var(--purple);
}

.caption p {
    margin: 4px 0;
    font-size: 13px;
    color: #806DA4;
}

.caption span {
    font-size: 13px;
    line-height: 1.5;
}

.folders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.folder {
    padding: 20px;
    background: var(--lavender-light);
    border: 2px solid transparent;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: .3s ease;
}

.folder:hover {
    border-color: var(--lavender-dark);
    background: var(--lavender);
    transform: translateY(-5px);
}

.folder-icon {
    font-size: 48px;
}

.folder h3 {
    margin: 8px 0 5px;
}

.folder p {
    margin: 0;
    font-size: 13px;
}

footer {
    text-align: center;
    padding: 30px;
    color: #806DA4;
}

@media (max-width: 600px) {
    .titlebar h1 {
        font-size: 27px;
    }

    .card {
        padding: 20px;
        margin: 25px auto;
    }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .menu {
        position: static;
    }

    .featured-photo {
        transform: rotate(0deg);
    }
}

/*=========================
    HEADER
=========================*/

.titlebar{
    background:linear-gradient(135deg,#D8CCF8,#EEE8FA);
    text-align:center;
    padding:35px;
    border-bottom:4px solid #CDB8F8;
}

.titlebar h1{
    font-size:40px;
    margin-bottom:20px;
    color:#3D3552;
}

.titlebar img{
    width:420px;
    max-width:90%;
    display:block;
    margin:auto;
    transition:.4s;
}

.titlebar img:hover{
    transform:scale(1.05) rotate(-1deg);
    filter:drop-shadow(0 0 18px #D8CCF8);
}

.titlebar p{
    width:70%;
    margin:auto;
    font-size:18px;
    line-height:1.8;
    color:#4A4266;
}

.sparkle{
    position:absolute;
    width:8px;
    height:8px;
    pointer-events:none;
    background:#fff;
    border-radius:50%;
    box-shadow:
        0 0 5px #fff,
        0 0 10px #d8ccf8,
        0 0 15px #b98cff;
    animation: sparkle 0.7s linear forwards;
}

@keyframes sparkle{
    from{
        opacity:1;
        transform:scale(1);
    }
    to{
        opacity:0;
        transform:translateY(-20px) scale(0);
    }
}

/* =========================
   CHAT DE VISITANTES
========================= */

.visitor-chat {
    max-width: 850px;
    margin: 40px auto;
    padding: 0;
    overflow: hidden;

    background: #F1ECFF;
    border: 2px solid #B9A4EC;
    border-radius: 14px;

    box-shadow: 0 10px 25px rgba(82, 65, 112, 0.16);
}


/* Barra superior estilo Windows */

.chat-titlebar {
    padding: 9px 12px;

    background: linear-gradient(
        to right,
        #806DA4,
        #B9A4EC
    );

    color: white;

    font-family: "Courier New", monospace;
    font-size: 13px;
    font-weight: bold;

    text-align: left;

    border-bottom: 2px solid #62527F;
}


/* Texto de bienvenida */

.chat-intro {
    padding: 12px 18px;

    background: #FFFFFF;

    text-align: center;

    color: #62527F;

    font-size: 13px;
}

.chat-intro p {
    margin: 0;
}


/* Ventana donde está Cbox */

.chat-window {
    margin: 0 15px 15px;

    background: white;

    border: 2px solid #D8CCF8;
    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        inset 0 0 8px rgba(98, 82, 127, 0.12),
        0 5px 12px rgba(0, 0, 0, 0.08);
}


/* El iframe */

.chat-window iframe {
    display: block;
    width: 100%;
    height: 450px;

    border: none;
}


/* Efecto al pasar el cursor */

.visitor-chat {
    transition: transform .3s ease, box-shadow .3s ease;
}

.visitor-chat:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(82, 65, 112, 0.20);
}


/* =========================
   CELULAR
========================= */

@media (max-width: 600px) {

    .visitor-chat {
        width: 94%;
    }

    .chat-window {
        margin: 0 8px 8px;
    }

    .chat-window iframe {
        height: 450px;
    }
}