body {
    background: #233D58;
    margin: 0;
    padding: 0;
    font-family: "ubuntu", sans-serif;
    line-height: 1.6;
}

header {
    padding: 15px 0;
    background: #f8f8f8;
}

header p {
    margin: 0;
    font-family: "bahamasb";
    text-align: center;
    color: #707070;
    font-size: clamp(16px, 4vw, 24px);
    text-transform: lowercase;
    padding: 0 10px;
}

.logo {
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

.logo figure img {
    width: 120px;
    height: auto;
    max-width: 100%;
}

.content-container {
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#contacto {
    width: 100%;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    font-family: "ubuntu";
    font-size: 16px;
    box-sizing: border-box;
    order: 1;
}

#contacto h2 {
    text-align: center;
    color: #233D58;
    margin-top: 0;
    font-size: 1.5rem;
}

#contacto p {
    text-align: left;
    margin: 10px 0;
    font-size: 1rem;
    color: #333;
}

#contacto input,
#contacto textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    box-sizing: border-box;
    font-family: "ubuntu";
}

#contacto textarea {
    min-height: 120px;
    resize: vertical;
}

#contacto #button {
    width: 100%;
    max-width: 200px;
    height: 40px;
    border: none;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    font-size: 16px;
    background: #4389b9;
    color: white;
    cursor: pointer;
    font-family: "bahamasb";
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.3s;
}

#contacto #button:hover {
    background: #2a6a96;
}

#direccion {
    color: #233D58;
    font-family: "bahamas";
    font-size: 0.9rem;
    margin-top: 20px;
    text-align: center;
    line-height: 1.5;
    background: rgba(142, 170, 192, 0.3);
    padding: 10px;
    border-radius: 5px;
}

.main-nav {
    width: 100%;
    order: 3;
}

.botones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.botones a {
    padding: 12px 8px;
    text-decoration: none;
    color: white;
    font-family: "ubuntu";
    font-size: 0.9rem;
    text-align: center;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.botones a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

#maps {
    width: 100%;
    order: 2;
    margin: 0;
}

#maps iframe {
    width: 100%;
    height: 300px;
    display: block;
    border-radius: 8px;
    border: 1px solid #ccc;
}

footer {
    width: 100%;
    text-align: center;
    background: #1a2a3a;
    padding: 20px 0;
    margin-top: 40px;
}

#linksinternos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 10px;
}

#linksinternos a {
    color: white;
    text-decoration: none;
    font-family: "bahamas";
    font-size: 0.8rem;
    padding: 6px 12px;
    background: #2c3e50;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#linksinternos a:hover {
    background: white;
    color: #233D58;
}

#sociales {
    margin: 20px 0;
}

#sociales a {
    display: inline-block;
    margin: 0 10px;
}

#sociales img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

#sociales img:hover {
    transform: scale(1.1);
}

#sspc {
    margin: 20px auto;
    max-width: 150px;
}

#sspc img {
    width: 100%;
    height: auto;
}

#copyright p {
    color: #aaa;
    font-size: 0.7rem;
    font-family: "bahamas";
    text-transform: lowercase;
    margin: 10px 0 0;
    padding: 0 10px;
}

@media screen and (min-width: 768px) {
    .content-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    #contacto {
        width: calc(60% - 20px);
        order: 1;
    }
    
    .main-nav {
        width: calc(40% - 20px);
        order: 2;
    }
    
    #maps {
        width: 100%;
        order: 3;
    }
    
    .botones {
        display: flex;
        flex-direction: column;
    }
    
    .botones a {
        text-align: left;
        padding: 12px 15px;
    }
}

@media screen and (min-width: 1024px) {
    .content-container {
        flex-wrap: nowrap;
    }
    
    #contacto {
        width: 40%;
        order: 1;
    }
    
    .main-nav {
        width: 20%;
        order: 2;
    }
    
    #maps {
        width: 40%;
        order: 3;
    }
    
    #maps iframe {
        height: 450px;
    }
}