/*FUENTES*/
@font-face{
    font-family: 'MiFuente';
    src: url("../fonts/PlayfairDisplay.ttf"), format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*MAIN TAGS*/

html{
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: #ffffff;
    padding: 1rem 0;
    text-align: center;
}

body {
    margin: 0;
    overflow-x: hidden;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

img{
    border-radius: 10px;
}

h1{
    font-family: 'MiFuente';
    font-size: 50px;
}

button{
    border: none;
    background: none;
    margin: 1%;
}

table{
    display: flow;
}

form input, form textarea {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 1rem 2rem;
    background-color: #33c3f0;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

/*CLASES*/

.section {
    padding: 2rem;
    font-family: 'MiFuente';
}

/* ---------CARDS------------- */

.card_yellow { /*SOBRE MI*/
    font-size: 25px;
    display: flex;
    text-align: justify;
    background: rgb(255, 253, 223);
}

.card_white { /*SERVICIOS*/
    font-size: 25px;
    text-align: justify;
    display: flex;
}

.card_yellow table,
.card_white table {
    justify-content: center;
    text-align: justify;
    margin: 0 auto;
}

.card_grey { /*CONTACTO*/
    justify-content: center;
    text-align: justify;
    font-size: 25px;
    display: flex;
    background: rgb(241, 241, 241); /* Fondo blanco semi-transparente (85% opaco) */
}


/* RESPONSIVIDAD A PARTIR DE 900PX*/

@media (max-width: 900px) {
    /* Hace que las secciones tipo “card” se apilen verticalmente */
    .card_yellow,
    .card_white,
    .card_grey {
        flex-direction: column;
        align-items: justify;
        text-align: justify;
    }

    /* Tablas más fluidas */
    .card_yellow table,
    .card_white table,
    .card_grey table {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-spacing: 20px;
    }

    .card_yellow td,
    .card_white td,
    .card_grey td {
        display: block;
        width: 100%;
    }

    .card_yellow img,
    .card_white img {
        width: 90%;
        height: auto;
        margin: 0 auto;
    }

    .card_grey img {
        width: 40px;
        height: auto;
        vertical-align: middle;
        margin-right: 10px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 18px;
    }

    
    form input, form textarea {
        font-size: 16px;
    }
    
    form button {
        width: 100%;
        font-size: 18px;
    }

    .section {
        padding: 1rem;
    }
}

.card_yellow table,
.card_white table,
.card_grey table {
    display: flex;
    justify-content: center; 
    align-items: center;  
    width: 90%;                
    max-width: 1600px;         
    margin: 0 auto;            
    border-spacing: 60px;      
    border-collapse: separate;
}
