@font-face {
    font-family: 'titulo';
    src: url('../fuentes/PlayfairDisplaySC-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'texto';
    src: url('../fuentes/Cinzel-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: rgb(221, 254, 255);
    color: #111111;
    text-align: center;
    margin: 0;
    padding: 0;
}

h1, h2 {
    font-family: 'titulo', serif;
}

h1 {
    font-size: 60px;
    letter-spacing: 0.15em;
    color: black;
    display: inline-block;
    padding: 0.2rem 1.5rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.12);
    animation: titulo-entra 0.8s cubic-bezier(.22,1,.36,1) both;
}

h2 {
    font-size: 25px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: black;
}

p {
    font-family: 'texto', serif;
    font-size: 15px;
    line-height: 1.9;
    color: black;
    letter-spacing: 0.05em;
}



#reloj-contenedor {
    
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    font-family: 'texto', Courier, monospace;
    
    color: black;
    padding: 10px 18px;
    
    text-align: center;

}

#fecha {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: black;
    margin: 0 0 2px;
}

#hora {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0;
    color: black
    
}



header {
    padding: 2.5rem 1rem 1.2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #c2f4ff 0%, #ddfeff 50%, #f9e8ff 100%);
    border-bottom: 3px dashed #000;
}

#net-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.header-content {
    position: relative;
    z-index: 2;
}

.slogan {
    font-family: 'texto', serif;
    font-size: 20px;
    letter-spacing: 0.3em;
    color: black;
    text-transform: uppercase;
    margin-top: 0.5rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    animation: slogan-entra 1s cubic-bezier(.22,1,.36,1) 0.2s both;
}

@keyframes titulo-entra {
    from { opacity: 0; transform: translateY(-28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slogan-entra {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}



nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 0 1.2rem;
}

nav a {
    font-family: 'texto', serif;
    color: rgb(0, 0, 0);
    background-color: #8d778c;
    margin: 5px;
    padding: 5px;
    border-radius: 10px/5px;
    box-shadow: 0px 0px 10px 0px #000000;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.25s, transform 0.2s;
}

nav a:hover {
    background-color: #25D366;
    transform: scale(1.08);
}

.whatsapp-float {
    background-color: transparent;
    position: fixed;
    right: 10px;
    top: 80%;
    
    z-index: 999;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    
    background-color: transparent !important;
}

.whatsapp-float img {
    width: 70px;
    height: 70px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.correoelectro {
    background-color: transparent;
    position: fixed;
    left: 10px;
    top: 80%;
    
    z-index: 999;
    transition: transform 0.2s;
}

.correoelectro img {
    width: 70px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.correoelectro:hover {
    background-color: transparent;
    
}



main {
    display: grid;
    grid-template-columns: 28% 1fr;
    grid-template-rows: auto auto;
    padding: 1.2rem;
    gap: 0;
}

section {
    border: 5px dashed black;
    margin: 0.4rem;
    padding: 1.2rem 1.4rem;
    text-align: left;
    box-shadow: 4px 6px 0px 0px black;
    border-radius: 20px / 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

section:hover {
    transform: translateY(-3px);
    box-shadow: 6px 10px 0px 0px black;
}

.quiensoy {
    grid-row: 1 / 3;
    grid-column: 1;
    background-color: #f1d377;
}

.jorge {
    width: 100%;
    border-radius: 12px;
    margin: 0.5rem 0;
    transition: transform 0.3s;
}

.jorge:hover {
    transform: scale(1.02);
}

.trabajo {
    grid-column: 1 / -1;
    background-color: #ec8980;
}

.rosa {
    background-color: #ca5b8f;
}

.verde {
    background-color: #9DC26E;
}



.formulario {
    background-color: #ddfeff;
    border: 5px dashed black;
    margin: 1rem 1.2rem;
    padding: 1.5rem 2rem;
    text-align: left;
    box-shadow: 4px 6px 0px 0px black;
    border-radius: 20px / 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.formulario:hover {
    transform: translateY(-3px);
    box-shadow: 6px 10px 0px 0px black;
}

.formulario h2 {
    margin-bottom: 0.3rem;
}

.formulario > p {
    margin-bottom: 1.2rem;
}

.formulario form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.formulario input,
.formulario textarea {
    font-family: 'texto', serif;
    font-size: 14px;
    letter-spacing: 0.05em;
    padding: 0.7rem 1rem;
    border: 3px solid black;
    border-radius: 10px / 5px;
    background: #fff;
    color: black;
    width: 100%;
    transition: box-shadow 0.2s;
}

.formulario input:focus,
.formulario textarea:focus {
    outline: none;
    box-shadow: 3px 3px 0px black;
}

.formulario textarea {
    resize: vertical;
    min-height: 100px;
}

.formulario button {
    font-family: 'texto', serif;
    font-size: 15px;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
    background-color: #ca5b8f;
    color: white;
    border: 3px solid black;
    border-radius: 10px / 5px;
    box-shadow: 4px 4px 0px black;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 0.15s, box-shadow 0.15s;
}

.formulario button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px black;
}

.formulario button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px black;
}

#gracias {
    font-family: 'texto', serif;
    font-size: 16px;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 1.5rem;
    background: #9DC26E;
    border: 3px solid black;
    border-radius: 10px / 5px;
    margin-top: 0.5rem;
}



.mascota {
    width: 400px;
    display: block;
    margin: 1.5rem auto 0;
    animation: mascota-bounce 3s ease-in-out infinite;
}

@keyframes mascota-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}



hr {
    border: none;
    border-top: 1px solid black;
    margin: 0.5rem 1.2rem 0;
}



footer {
    display: block;
    padding: 1.2rem;
    text-align: center;
    border-top: 3px dashed #000;
    margin-top: 1rem;
}

footer p {
    font-family: 'texto', serif;
    font-size: 15px;
    color: black;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0.2rem 0;
}

.intex {
    font-family: 'texto', serif;
    font-size: 15px;
    color: black;
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: color 0.2s;
}

.intex:hover {
    text-decoration: underline;
    color: #ca5b8f;
}



@media screen and (max-width: 900px) {
    main {
        grid-template-columns: 100%;
        grid-template-rows: 1fr;
        padding: 1.2rem;
    }

    h1 {
        font-size: 40px;
    }

    .jorge {
        width: 300px;
    }

    .mascota {
        width: 260px;
    }

    .formulario {
        margin: 1rem 0.5rem;
        padding: 1.2rem 1rem;
    }

    #reloj-contenedor {
        padding: 6px 12px;
    }

    #hora {
        font-size: 1.2rem;
    }

    #fecha {
        font-size: 0.6rem;
    }
}