* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    background: #f7f4f9;
    color: #5a5468;
    line-height: 1.7;
    font-size: 16px;
}

/* modo oscuro */
body.dark-mode {
    background: #1e1a2b;
    color: #d8cef0;
}

body.dark-mode .section-card,
body.dark-mode #site-header {
    background: #2a2535;
    border-color: #3e3660;
}

#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 2px solid #f9c8d0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .09);
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3a3348;
}

#main-nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

#main-nav a {
    text-decoration: none;
    color: #5a5468;
    padding: 6px 14px;
    border-radius: 20px;
}

#main-nav a:hover {
    background: #d8c8f0;
    color: #3a3348;
}

#btn-toggle-nav {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #5a5468;
}

main {
    max-width: 900px;
    margin: auto;
    padding: 32px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero {
    background: #f9c8d0;
    border-radius: 14px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .09);
}

.hero h1 {
    font-size: 2rem;
    color: #3a3348;
    margin-bottom: 10px;
}

.hero-sub {
    color: #3a3348;
    opacity: .8;
}

.section-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #ece8f4;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .09);
}

.section-card h2 {
    color: #3a3348;
    margin-bottom: 8px;
}

.section-card p {
    margin-bottom: 16px;
}

button {
    border: none;
    border-radius: 25px;
    padding: 9px 20px;
    cursor: pointer;
    font-size: .9rem;
    font-family: inherit;
    transition: .2s;
}

button:hover {
    transform: translateY(-2px);
}

#btn-tema {
    background: #d8c8f0;
    color: #3a3348;
}

#btn-enviar {
    background: #c8f0e0;
    color: #3a3348;
}

#btn-agregar {
    background: #c8e8f9;
    color: #3a3348;
}

#btn-scroll-top {
    background: #f9c8d0;
    color: #3a3348;
}

input,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd6f0;
    border-radius: 10px;
    background: #f7f4f9;
    color: #5a5468;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #d8c8f0;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.servicio-item {
    background: #fdf0c8;
    border-radius: 12px;
    padding: 20px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.galeria-item {
    background: #f9c8d0;
    border-radius: 12px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#galeria-preview {
    display: none;
    min-height: 200px;
    padding: 20px;
    margin-top: 12px;
    text-align: center;
    border-radius: 12px;
    background: #d8c8f0;
}

.img-seleccionada {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    display: block;
    margin: auto;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acc-item {
    border: 1px solid #ece8f4;
    border-radius: 12px;
    overflow: hidden;
}

.acc-titulo {
    background: #c8e8f9;
    padding: 14px 20px;
    cursor: pointer;
    color: #3a3348;
}

.acc-titulo:hover {
    background: #d8c8f0;
}

.acc-contenido {
    display: none;
    padding: 14px 20px;
    background: #fff;
}


#lista-tareas {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tarea-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #c8f0e0;
    padding: 10px 16px;
    border-radius: 10px;
    color: #3a3348;
}


.tarjetas-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tarjeta-hover {
    background: #fad8c8;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.tarjeta-hover:hover {
    transform: translateY(-3px);
}

.tarjeta-hover.seleccionada {
    background: #d8c8f0;
}


#site-footer {
    text-align: center;
    padding: 24px;
    font-size: .85rem;
    color: #a89ec0;
    border-top: 1px solid #ece8f4;
}

/* responsive */
@media (max-width:640px) {
    #main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 20px;
    }

    #btn-toggle-nav {
        display: block;
        margin-left: auto;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tarjetas-wrap,
    .servicios-grid {
        grid-template-columns: 1fr;
    }
}