/* RESET CSS
-------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@100..900&display=swap');

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* RESET CSS
-------------------------------------------------------------*/
*{
    user-select: none;
    box-sizing: border-box;
}

body{
    margin: 20px 10px 20px 10px;
    font-family: "Catamaran", sans-serif;
    background: linear-gradient(135deg, #fff3ce, #ffefb8);
    color: #222;
}

/* Header */
header{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95%;
    padding: 20px;
    border-bottom: 2px solid #ddd;
    margin: 0 auto;
}

/* Main layout */
main{
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    height: 100%;
    width: 90%;
}

/* Footer */
footer{
    text-align: center;
    width: 100%;
    padding: 15px;
    color: white;
    background: #111;
}

/* Container */
.container{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 95vh;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.imagen{
    position: absolute;
    top: 0;
    right: 0;
    max-width: 20%;
    height: auto;
    transform: translate(25%, -25%);
}

/* Logos */
.imglogo1 img{
    margin-right: 10px;
    width: 130px;
}
.imglogo2 img{
    margin-left: 10px;
    width: 600px;
}

/* Division content */
.division{
    border: 1px solid rgb(230, 205, 160);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fcf6e4;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.division:hover{
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.cabeceraweb{
    font-weight: bold;
    font-size: clamp(1rem, 0.8rem + 1vw, 1.4rem);
    margin: 20px 0 15px 0;
}

.descripcionweb{
    font-size: clamp(1rem, 0.8rem + 1vw, 1.4rem);
    margin: 20px 0 15px 0;
}

.cabeceraweb img{
    width: 100%;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Links */
.contenidoweb a{
    text-decoration: none;
    color: inherit;
}
.contenidoweb img{
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}
.contenidoweb img:hover{
    transform: scale(1.04);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Media Queries para responsive */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .imglogo1 img, .imglogo2 img {
        width: 60%;
        margin: 10px auto;
    }

    main {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 95%;
    }

    .container {
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .division {
        padding: 15px;
    }

    .cabeceraweb {
        font-size: 1.1rem;
    }

    .descripcionweb {
        font-size: 0.95rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    body {
        margin: 10px 5px;
    }

    header {
        padding: 10px;
    }

    .imglogo1 img, .imglogo2 img {
        width: 80%;
    }

    .division {
        padding: 10px;
        border-radius: 8px;
    }

    .cabeceraweb {
        font-size: 1rem;
    }

    .descripcionweb {
        font-size: 0.9rem;
    }

    .contenidoweb img {
        width: 100%;
        border-radius: 6px;
    }

    footer {
        font-size: 0.85rem;
        padding: 10px;
    }
}