/*=== GOOGLE FONTS ===*/
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

/*=== VARIABLES CSS ===*/
:root {
    --color-black: hsla(1, 10%, 10%, 0.7);
    --color-gray: hsl(252, 15%, 65%);
    --color-primary: hsl(48, 100%, 50%);
    --color-white: hsl(252, 30%, 100%);

    --body-font: 'Rubik', sans-serif;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    --font-medium: 400;
    --font-semi-bold: 600;

    --m-0-5: .5rem;
    --m-0-75: .75rem;
    --m-1: 1rem;
    --m-1-5: 1.5rem;
    --m-2: 2rem;
    --m-2-5: 2.5rem;

    --card-padding: 1.9rem 0.95rem;

    --border-radius: 1.25rem;

    --box-shadow: 0px 5px 20px 0px rgba(69, 67, 96, 0.1);
}

/*=== main ===*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
button {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body {
    height: auto;
    background-image: url(/app/view/img/back/back1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

img {
    max-width: 25rem;
    height: 25rem;
    border-radius: 50%;
    vertical-align: middle;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-white);
}

h1,
h2,
h3 {
    font-weight: var(--font-semi-bold);
}

h1 {
    font-size: var(--h1-font-size);
}

h2 {
    font-size: var(--h2-font-size);
}

h3 {
    font-size: var(--h3-font-size);
}

/*=== Contenedor ===*/
.padd-15{
    padding-left: 15px;
    padding-right: 15px;
}

/*=== btns no lo estoy usando en la  vista home ===*/
.btn {
    padding: 0.75rem 2rem;
    line-height: 1;
}

@keyframes button-push {
    50% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1.0);
    }
}

/*=== Header ===*/
.header hr {
    color: var(--color-white);
}
.header{
    width: 100%;
    background-color: var(--color-black);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

/*=== Nav ===*/
.nav{
    height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 3rem;
}

.nav-logo{
    margin-right: auto;
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    letter-spacing: 0.125rem;
    position: relative;
}

.nav-logo::after {
    position: absolute;
    content: '';
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    top: 56%;
    right: -0.25rem;
}

.nav-menu{
    display: flex;
    align-items: center;
    margin-left: auto;
    transition: all 0.3s ease-in-out;
}

.nav-list{
    display: flex;
    column-gap: 1.5rem;
}

.nav-link {
    font-weight: var(--font-medium);
    transition: .3s;
}

.nav-link:hover{
    color: var(--color-primary);
}

.nav-btns{
    display: flex;
    align-items: center;
    column-gap: 1rem;
    color: var(--color-white);
}
.change-theme {
    font-size: 1.15rem;
    cursor: pointer;
}

.nav-toggle{
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-white);
}

.nav-toggle{
    display: none;
}

.active-link::before{
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 45%;
    width: 0.3rem;
    height: 0.3rem;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* ======================= Main 20 oct ======================= */
.welcome {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(4px);
    padding: 2rem;
    box-sizing: border-box;
}

.welcome-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    flex-wrap: wrap;
}

.welcome-image img {
    width: 350px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    object-fit: cover;
}

.welcome-text {
    color: #fff;
    max-width: 550px;
}

.welcome-text h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.welcome-text h3 {
    font-size: 2rem;
    font-weight: 500;
    height: 2.5rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.animated-text span {
    display: block;
    animation: textSlide 9s infinite;
}

@keyframes textSlide {
    0% { transform: translateY(0); }
    33% { transform: translateY(-100%); }
    66% { transform: translateY(-200%); }
    100% { transform: translateY(0); }
}

.welcome-text p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.tienda {
    width: 100%;
    min-height: 100vh;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(4px);
    padding: 8rem 2rem 4rem; /* espacio por header fixed */
    box-sizing: border-box;
}

.tienda-header {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--color-white);
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

.tienda-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}


.template-card {
    max-width: 30rem;
    max-height: 35rem;
    height: auto;
    width: auto;
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform .3s ease;
}

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

.template-image {
    position: relative;
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 0;
}

.template-hover {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s;
}

.template-image:hover .template-hover {
    opacity: 1;
}

.template-info {
    padding: 1.5rem;
    color: var(--color-white);
}

.template-info h3 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.template-info p {
    font-size: .9rem;
    color: #ccc;
    min-height: 40px;
}

.template-footer {border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-size: 1.2rem;
    color: var(--color-primary);
}

.btn-cart {
    background: var(--color-primary);
    border: none;
    padding: .6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    color: #000;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

.btn-preview {
    background: var(--color-primary);
    color: #000;
    padding: .7rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    transition: transform .2s ease;
}

.btn-preview:hover {
    transform: scale(1.05);
}
/* ======================= */
/*        CARRITO          */
/* ======================= */

.carrito {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color: var(--color-white);
}

/* ---------- Header del carrito ---------- */
.carrito .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.carrito .section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.8rem;
    color: var(--color-primary);
}

.carrito .section-header i {
    font-size: 2rem;
}

.carrito .subtext {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #ccc;
}

/* ---------- Lista ---------- */
.carrito-lista {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ---------- Item ---------- */
.carrito-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.carrito-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

/* ---------- Imagen ---------- */
.carrito-thumb img {
    width: 100%;
    height: 100%;
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

/* ---------- Info ---------- */
.carrito-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--color-white);
}

.carrito-info span {
    display: block;
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 0.6rem;
}

.carrito-info a {
    display: inline-block;
    font-size: 0.85rem;
    margin-right: 1rem;
    transition: opacity 0.3s;
}

.carrito-info a:hover {
    opacity: 0.7;
}

/* ---------- Precio ---------- */
.carrito-precio {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

/* ---------- Botón ---------- */
.contenedor_button_carrito {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.contenedor_button_carrito .btn.primary {
    background: var(--color-primary);
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.9rem 2.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contenedor_button_carrito .btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.45);
}

/* ======================= */
/*     ESTADO VACÍO        */
/* ======================= */

.carrito-vacio {
    text-align: center;
    padding: 3rem 1rem;
}

.carrito-vacio i {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.carrito-vacio h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carrito-vacio p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

/* =============================== */
/*   TEMPLATES TABLE – PREMIUM UI  */
/* =============================== */

.templates-table-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow-x: auto;
}

/* ---------- Tabla ---------- */
.templates-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-white);
}

/* ---------- Header ---------- */
.templates-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.templates-table th {
    text-align: left;
    padding: 1.2rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- Body ---------- */
.templates-table tbody tr {
    transition: background 0.3s ease, transform 0.3s ease;
}

.templates-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: scale(1.01);
}

.templates-table td {
    padding: 1.4rem 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Nombre ---------- */
.templates-table td[data-label="Nombre"] {
    font-weight: 600;
    color: var(--color-white);
}

/* ---------- Descripción ---------- */
.templates-table td[data-label="Descripción"] {
    max-width: 520px;
    color: #ccc;
}

/* ---------- Badge Descargar ---------- */
.templates-table .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--color-primary);
    color: #000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.templates-table .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45);
}

/* =============================== */
/*     NOTIFICACIONES – PREMIUM    */
/* =============================== */

.lista-notificaciones {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ---------- Card base ---------- */
.lista-notificaciones .notificacion {
    position: relative;
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.lista-notificaciones .notificacion:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

/* ---------- Barra lateral ---------- */
.lista-notificaciones .notificacion::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    border-radius: 6px 0 0 6px;
}

/* ---------- Icono ---------- */
.lista-notificaciones .icono {
    min-width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ---------- Contenido ---------- */
.lista-notificaciones .contenido {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lista-notificaciones .contenido h3 {
    font-size: 1.05rem;
    color: var(--color-white);
    font-weight: 600;
}

.lista-notificaciones .contenido p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

.lista-notificaciones .contenido .hora {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gray);
}

/* =============================== */
/*         TIPOS DE NOTI           */
/* =============================== */

/* ----- VERDE (positiva) ----- */
.notificacion.verde::before {
    background: #4caf50;
}

.icono.tipo-verde {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

/* ----- ALERTA (negativa) ----- */
.notificacion.alerta::before {
    background: #ff4d4d;
}

.icono.tipo-alerta {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
}

/* ----- INFO (neutral) ----- */
.notificacion.info::before {
    background: var(--color-primary);
}

.icono.tipo-info {
    background: rgba(255, 215, 0, 0.18);
    color: var(--color-primary);
}

/* =============================== */
/*          TOOLTIP (DATA)         */
/* =============================== */

.notificacion[data-detalle] {
    cursor: help;
}

.notificacion[data-detalle]::after {
    content: attr(data-detalle);
    position: absolute;
    bottom: -2.5rem;
    left: 1.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.notificacion:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================== */
/*           FAQ – DOCTOR WEBSITE        */
/* ===================================== */

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* ---------- DETAILS CARD ---------- */

.faq-list details {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover elegante */
.faq-list details:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Línea lateral decorativa */
.faq-list details::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
}

/* ---------- SUMMARY (PREGUNTA) ---------- */

.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.3s ease;
}

/* Quitar flecha default */
.faq-list summary::-webkit-details-marker {
    display: none;
}

/* Icono de reloj */
.faq-list summary i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Texto de pregunta */
.faq-list summary span {
    flex: 1;
}

/* Flecha personalizada */
.faq-list summary::after {
    content: "\ea4e"; /* icono boxicons */
    font-family: 'boxicons';
    font-size: 1.4rem;
    color: var(--color-primary);
    transition: transform 0.35s ease;
}

/* Hover color */
.faq-list summary:hover {
    color: var(--color-primary);
}

/* ---------- RESPUESTA ---------- */

.faq-list details p {
    padding: 0 1.75rem 1.6rem 1.75rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ccc;
    animation: fadeInAnswer 0.3s ease forwards;
}

/* Animación suave */
@keyframes fadeInAnswer {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- ESTADO ABIERTO ---------- */

.faq-list details[open] {
    background: rgba(255, 255, 255, 0.05);
}

.faq-list details[open]::before {
    background: var(--color-primary);
}

.faq-list details[open] summary::after {
    transform: rotate(180deg);
}

/* ======================= Responsive Design ======================= */
@media (max-width: 768px) {
    .carrito {
        padding: 2rem 1.5rem;
    }

    .carrito-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .carrito-thumb img {
        margin: 0 auto;
    }

    .carrito-precio {
        margin-top: 0.75rem;
        font-size: 1.2rem;
    }

    .templates-table thead {
        display: none;
    }

    .templates-table,
    .templates-table tbody,
    .templates-table tr,
    .templates-table td {
        display: block;
        width: 100%;
    }

    .templates-table tr {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    }

    .templates-table td {
        padding: 0.6rem 0;
        border: none;
        font-size: 0.9rem;
    }

    .templates-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--color-primary);
        margin-bottom: 0.25rem;
    }

    .templates-table td:last-child {
        margin-top: 0.75rem;
    }
    .lista-notificaciones .notificacion {
        flex-direction: column;
        gap: 1rem;
    }

    .lista-notificaciones .icono {
        align-self: flex-start;
    }

    .faq-list {
        padding: 1.8rem 1.2rem;
    }

    .faq-list summary {
        font-size: 0.95rem;
        padding: 1.2rem;
    }

    .faq-list details p {
        font-size: 0.9rem;
    }
}
@media screen and (max-width: 1000px) {
    .nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-black);
        padding: var(--m-1);
        position: absolute;
        top: 100%;
        left: 0;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        row-gap: var(--m-1);
    }

    .nav-toggle {
        display: block;
    }

    header nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em;
    }

    header nav a {
        display: block;
        margin: 0.5em 0;
        font-size: 1.2em;
    }
    .educacion-container {
        flex-direction: column;
        align-items: center;
    }

    .educacion-card {
        width: 90%;
        margin-bottom: 1em;
    }

    body {
        font-size: 14px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .interest ul li strong{
        list-style: none;
        display: none;
        color: var(--color-white);
        font-weight: 500;
        margin: 10px 0;
    }
}

/*=== Dark Theme ===*/
.dark-theme {
    --color-white: hsl(0, 0%, 63%);
    --color-black: hsl(0, 0%, 0%);
    --color-gray: hsl(252, 15%, 30%);
    --color-primary: #757200;
    background-color: var(--color-black);
    color: var(--color-white);
}

.dark-theme a {
    color: var(--color-white);
}

.dark-theme .btn {
    color: var(--color-white);
}

.dark-theme .headern{
    background-color: var(--color-black);
}

.dark-theme .form-container {
    background-color: var(--color-black);
    border-style: dashed;
    border-color: var(--color-primary);
}

