/* ========================================
   VARIABLES DE IDENTIDAD
======================================== */

:root {
    --blanco-calido: #fffdf8;
    --marfil: #f4ebdd;
    --dorado: #c6a15b;
    --dorado-oscuro: #9b6a16;
    --verde: #0f615f;
    --verde-oscuro: #094b4a;
    --texto: #142c3d;
    --blanco: #ffffff;

    --sombra-tarjeta:
        0 18px 45px rgba(57, 43, 20, 0.16);

    --sombra-boton:
        0 8px 20px rgba(15, 97, 95, 0.24);
}


/* ========================================
   CONFIGURACIÓN GENERAL
======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

html {
    background: #e8e1d7;
}

body {
    min-height: 100vh;
    min-height: 100svh;

    overflow-x: hidden;

    color: var(--texto);
    background: #e8e1d7;

    font-family: "Manrope", sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ========================================
   TARJETA PRINCIPAL
======================================== */

.tarjeta {
    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: 430px;

    height: 100vh;
    height: 100svh;
    min-height: 100svh;

    margin: 0 auto;
    padding: 0;

    overflow: hidden;

    background-color: var(--blanco-calido);
    background-image: url("../img/fondo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    box-shadow: var(--sombra-tarjeta);
}


/* Iluminación sobre la fotografía */

.tarjeta::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -2;

    background: linear-gradient(
        180deg,
        rgba(255, 253, 248, 0.02) 0%,
        rgba(255, 253, 248, 0.08) 38%,
        rgba(255, 253, 248, 0.22) 64%,
        rgba(255, 253, 248, 0.64) 100%
    );

    pointer-events: none;
}


/* Degradado inferior */

.tarjeta::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;

    height: 46%;

    background: linear-gradient(
        180deg,
        rgba(255, 253, 248, 0) 0%,
        rgba(255, 253, 248, 0.5) 28%,
        rgba(255, 253, 248, 0.88) 68%,
        rgba(244, 235, 221, 0.98) 100%
    );

    pointer-events: none;
}


/* ========================================
   CONTENIDO INTERNO
======================================== */

.tarjeta__contenido {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start !important;

    width: 100%;
    max-width: 430px;

    height: 100vh;
    height: 100svh;

    padding:
        clamp(0.65rem, 1.6vh, 0.95rem)
        1.15rem
        clamp(0.4rem, 1vh, 0.65rem) !important;

    gap: 0;
    overflow: hidden;
}


/* ========================================
   IDENTIDAD
======================================== */

.identidad {
    width: 100%;
    flex-shrink: 0;
}

.identidad__logo {
    display: block;

    width: clamp(62px, 17vw, 78px);
    height: auto;

    margin: 0 auto 0.2rem;

    object-fit: contain;
}

.identidad__nombre {
    margin: 0 !important;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1rem, 4.6vw, 1.3rem);
    font-weight: 600;

    letter-spacing: 0.38em;
    line-height: 1;

    text-indent: 0.38em;
    text-transform: uppercase;
}

.identidad h1 {
    margin: 0.12rem 0 0 !important;

    color: var(--dorado-oscuro);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.75rem, 12.4vw, 3.85rem);
    font-weight: 600;

    letter-spacing: -0.04em;
    line-height: 0.8;

    text-transform: uppercase;
}

.identidad__categoria {
    margin: 0.7rem 0 0 !important;

    font-size: clamp(0.56rem, 2.45vw, 0.7rem);
    font-weight: 700;

    letter-spacing: 0.28em;
    line-height: 1.3;

    text-indent: 0.28em;
    text-transform: uppercase;
}


/* ========================================
   PRESENTACIÓN
======================================== */

.presentacion {
    width: 100%;
    flex-shrink: 0;

    margin-top: clamp(1.1rem, 3vh, 1.6rem);
}


/* Separador decorativo */

.separador {
    width: 88%;
    max-width: 330px;

    margin-bottom: 0.55rem !important;

    color: var(--dorado);
}

.separador span {
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--dorado)
    );
}

.separador span:last-child {
    background: linear-gradient(
        90deg,
        var(--dorado),
        transparent
    );
}

.separador i {
    flex-shrink: 0;

    font-size: 0.68rem;
    font-style: normal;
}

.presentacion h2 {
    margin: 0 !important;

    color: var(--verde);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.72rem, 7.2vw, 2.2rem);
    font-style: italic;
    font-weight: 500;

    line-height: 1.08;
}

.presentacion p {
    max-width: 330px;

    margin: 0.5rem auto 0 !important;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1rem, 4.2vw, 1.18rem);
    font-weight: 500;

    line-height: 1.28;
}


/* ========================================
   INVITACIÓN
======================================== */

.invitacion {
    width: 92%;
    max-width: 330px;
    flex-shrink: 0;

    margin-top: clamp(1rem, 2.5vh, 1.5rem);
    padding: 0.62rem 0.9rem;

    border-top: 1px solid rgba(198, 161, 91, 0.72);
    border-bottom: 1px solid rgba(198, 161, 91, 0.72);

    background: linear-gradient(
        90deg,
        rgba(255, 253, 248, 0.12),
        rgba(255, 253, 248, 0.84),
        rgba(255, 253, 248, 0.12)
    );

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.invitacion__titulo {
    margin: 0 !important;

    color: var(--dorado-oscuro);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.12rem, 4.7vw, 1.32rem);
    font-weight: 600;

    line-height: 1.15;
}

.invitacion__texto {
    max-width: 280px;

    margin: 0.3rem auto 0 !important;

    color: var(--texto);

    font-size: clamp(0.72rem, 2.9vw, 0.82rem);
    font-weight: 500;

    line-height: 1.35;
}


/* ========================================
   ACCIONES
======================================== */

.acciones {
    width: 100%;
    max-width: 330px;
    flex-shrink: 0;

    margin-top: clamp(0.55rem, 1.5vh, 0.9rem);
}


/* ========================================
   BOTONES GENERALES
======================================== */

.boton {
    border-radius: 999px;

    font-family: "Manrope", sans-serif;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.boton:hover {
    transform: translateY(-2px);
}

.boton:active {
    transform: translateY(0);
}

.boton:focus-visible,
.red-social:focus-visible {
    outline: 3px solid rgba(198, 161, 91, 0.7);
    outline-offset: 3px;
}


/* ========================================
   BOTÓN WHATSAPP
======================================== */

.boton--whatsapp {
    width: 76%;
    min-height: 44px;

    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;

    border: 1px solid rgba(255, 255, 255, 0.3);

    color: var(--blanco);

    background: linear-gradient(
        135deg,
        #147873,
        var(--verde-oscuro)
    );

    box-shadow:
        var(--sombra-boton),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.boton--whatsapp:hover {
    color: var(--blanco);

    box-shadow:
        0 11px 25px rgba(15, 97, 95, 0.32);
}

.boton--whatsapp .bi-whatsapp {
    font-size: 1.28rem;
}

.boton--whatsapp span {
    font-size: 0.86rem;
    font-weight: 700;

    line-height: 1;
}


/* ========================================
   BOTÓN COMPARTIR
======================================== */

.boton--compartir {
    width: 72%;
    min-height: 38px;

    padding: 0.35rem 0.8rem;

    border: 1px solid rgba(198, 161, 91, 0.95);

    color: var(--texto);
    background: rgba(255, 253, 248, 0.92);

    box-shadow:
        0 5px 15px rgba(57, 43, 20, 0.08);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    font-size: 0.74rem;
    font-weight: 600;
}

.boton--compartir:hover {
    color: var(--texto);
    background: var(--blanco);
}

.boton--compartir .bi {
    color: var(--dorado-oscuro);
    font-size: 0.95rem;
}


/* ========================================
   REDES SOCIALES
======================================== */

.redes__titulo {
    margin-top: 0.65rem !important;
    margin-bottom: 0.4rem !important;

    color: var(--verde-oscuro);

    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    font-style: italic;
    font-weight: 600;

    line-height: 1.2;
}

.redes {
    margin: 0;

    gap: 3rem !important;
}

.red-social {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0.18rem;

    color: var(--texto);

    font-size: 0.66rem;
    font-weight: 600;
    text-decoration: none;
}

.red-social:hover {
    color: var(--verde);
}

.red-social__icono {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border: 1px solid var(--dorado);
    border-radius: 50%;

    color: var(--verde);
    background: rgba(255, 253, 248, 0.94);

    box-shadow:
        0 5px 14px rgba(57, 43, 20, 0.1);

    font-size: 1.04rem;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.red-social:hover .red-social__icono {
    transform: translateY(-2px);

    background: var(--blanco);

    box-shadow:
        0 8px 20px rgba(57, 43, 20, 0.14);
}


/* ========================================
   FRASE FINAL
======================================== */

.pie {
    width: 100%;
    flex-shrink: 0;

    margin-top: auto;
    padding: 0.5rem 0 0.15rem;
}

.pie__contenido {
    width: 100%;
    max-width: 330px;

    margin: 0 auto;
    padding: 0;

    border-radius: 0;

    background: transparent;
    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.pie .separador,
.separador--pie {
    display: none !important;
}

.pie p {
    max-width: 310px;

    margin: 0 auto !important;

    color: var(--verde-oscuro);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.9rem, 3.6vw, 1.04rem);
    font-style: italic;
    font-weight: 600;

    line-height: 1.25;

    text-shadow:
        0 1px 6px rgba(255, 255, 255, 0.95);
}


/* ========================================
   NOTIFICACIÓN
======================================== */

.notificacion {
    z-index: 20;

    bottom: 1rem;

    width: max-content;
    max-width: calc(100% - 2rem);

    padding: 0.7rem 1rem;

    border-radius: 999px;

    color: var(--blanco);
    background: var(--texto);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);

    font-size: 0.85rem;
    text-align: center;

    opacity: 0;
    pointer-events: none;

    transform:
        translate(-50%, 18px) !important;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.notificacion.visible {
    opacity: 1;

    transform:
        translate(-50%, 0) !important;
}


/* ========================================
   CELULARES CON POCA ALTURA
======================================== */

@media (max-height: 760px) {

    .tarjeta__contenido {
        padding:
            0.45rem
            1rem
            0.3rem !important;
    }

    .identidad__logo {
        width: 54px;
        margin-bottom: 0.1rem;
    }

    .identidad__nombre {
        font-size: 0.9rem;
    }

    .identidad h1 {
        margin-top: 0.08rem !important;
        font-size: 2.5rem;
    }

    .identidad__categoria {
        margin-top: 0.5rem !important;
        font-size: 0.52rem;
    }

    .presentacion {
        margin-top: 0.7rem;
    }

    .presentacion .separador {
        margin-bottom: 0.3rem !important;
    }

    .presentacion h2 {
        font-size: 1.52rem;
    }

    .presentacion p {
        margin-top: 0.28rem !important;

        font-size: 0.9rem;
        line-height: 1.17;
    }

    .invitacion {
        margin-top: 0.65rem;
        padding: 0.4rem 0.7rem;
    }

    .invitacion__titulo {
        font-size: 1rem;
    }

    .invitacion__texto {
        margin-top: 0.18rem !important;

        font-size: 0.66rem;
        line-height: 1.2;
    }

    .acciones {
        margin-top: 0.32rem;
    }

    .boton--whatsapp {
        min-height: 39px;

        margin-top: 0.18rem;
        margin-bottom: 0.32rem;
        padding: 0.4rem 0.8rem;
    }

    .boton--whatsapp .bi-whatsapp {
        font-size: 1.15rem;
    }

    .boton--whatsapp span {
        font-size: 0.8rem;
    }

    .boton--compartir {
        min-height: 34px;

        padding: 0.28rem 0.7rem;
        font-size: 0.68rem;
    }

    .redes__titulo {
        margin-top: 0.4rem !important;
        margin-bottom: 0.25rem !important;

        font-size: 0.9rem;
    }

    .redes {
        gap: 2.7rem !important;
    }

    .red-social {
        gap: 0.12rem;

        font-size: 0.61rem;
    }

    .red-social__icono {
        width: 33px;
        height: 33px;

        font-size: 0.94rem;
    }

    .pie {
        padding-top: 0.25rem;
        padding-bottom: 0.05rem;
    }

    .pie p {
        font-size: 0.82rem;
        line-height: 1.15;
    }
}


/* ========================================
   CELULARES MUY BAJOS
======================================== */

@media (max-height: 650px) {

    .identidad__logo {
        width: 46px;
    }

    .identidad__nombre {
        font-size: 0.82rem;
    }

    .identidad h1 {
        font-size: 2.25rem;
    }

    .identidad__categoria {
        margin-top: 0.35rem !important;
        font-size: 0.48rem;
    }

    .presentacion {
        margin-top: 0.48rem;
    }

    .presentacion h2 {
        font-size: 1.35rem;
    }

    .presentacion p {
        font-size: 0.82rem;
    }

    .invitacion {
        margin-top: 0.45rem;
        padding: 0.3rem 0.6rem;
    }

    .invitacion__titulo {
        font-size: 0.92rem;
    }

    .invitacion__texto {
        font-size: 0.61rem;
    }

    .boton--whatsapp {
        min-height: 36px;
    }

    .boton--compartir {
        min-height: 31px;
    }

    .redes__titulo {
        margin-top: 0.3rem !important;
    }

    .red-social__icono {
        width: 30px;
        height: 30px;
    }

    .pie p {
        font-size: 0.75rem;
    }
}


/* ========================================
   ACCESIBILIDAD
======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}