/* --- Tipografía --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&family=Roboto:wght@400&display=swap');

body {
    /* 1. Imagen de fondo */
    background-image: url('ELEMENTOS/fondo.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;

    /* 2. Bloqueo de scroll horizontal */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

.fondo-pantalla {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('ELEMENTOS/tu-imagen.jpg') no-repeat center center / cover;
}

/* --- Encabezado --- */
header {
    display: flex;
    height: 60px;
    background-color: #010101;
    padding: 0 40px;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.logo img {
    height: 40px;
    display: block;
}

/* --- Postal --- */
.contenedor-postal {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    width: 100%;
    box-sizing: border-box;
}

/* 1. Tarjeta principal */
.postal {
    background-color: #DDE2E4;
    width: 800px;
    height: 400px;
    box-sizing: border-box; 
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* 3. Imagen de la estampilla */
#estampilla {
    width: 180px;
    height: auto;
    display: block;
    transform: rotate(-5deg);
    position: absolute;
    right: -4px;
    top: -4px;
    z-index: 10;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.25));
    transition: opacity 0.3s ease-in-out;
}

#estampilla.desvanecer {
    opacity: 0;
}

.postal-header h2 {
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.postal-cuerpo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    gap: 0px;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #000;
    position: relative;
}

.postal-cuerpo::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background-color: #999;
    transform: translateX(-50%);
} 

.columna-izq {
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    padding-bottom: 30px;
}

.columna-izq p {
    margin: 0;
}

.mensaje {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 65px;
}

.mensaje p {
    margin: 0;
}

.texto-negrita {
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 1.9rem;
    color: #000;
    line-height: 1.1;
}

.columna-der {
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    height: 100%;
}

.email {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    text-decoration: none;
    color: #7700ff;
    display: block;
    margin: 0;
}

.ubicacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid #222;
    padding-bottom: 10px;
    font-family: "Roboto", sans-serif;
    color: #222;
    font-weight: 990px; /* <--- AGREGA ESTA LÍNEA */
}

/* ===================================================
   --- RESPONSIVO PARA CELULAR (max-width: 768px) ---
   =================================================== */
@media (max-width: 768px) {
    body {
        overflow-y: auto; /* Permite scroll vertical si la pantalla es muy corta */
    }

    header {
        padding: 0 20px;
    }

    .logo img {
        height: 32px;
    }

    .contenedor-postal {
        height: auto;
        padding: 30px 15px;
    }

    /* La postal se vuelve fluida y adapta su altura al contenido */
    .postal {
        width: 90%;
        height: auto;
        padding: 25px 20px;
    }

    /* Se reduce el tamaño de la estampilla para que no tape la pantalla */
    #estampilla {
        width: 100px;
        right: -10px;
        top: -5px;
    }

    .postal-header h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    /* El cuerpo cambia de 2 columnas a 1 columna vertical */
    .postal-cuerpo {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Oculta la línea divisoria vertical */
    .postal-cuerpo::after {
        display: none;
    }

    .columna-izq {
        padding-right: 0;
        padding-bottom: 0;
        gap: 15px;
    }

    .mensaje {
        margin-top: 0;
    }

    .texto-negrita {
        font-size: 1.4rem;
    }

    .columna-der {
        padding-left: 0;
        gap: 15px;
    }
}