body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #252850;
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin: auto;
    position: relative;
    left: -20px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}


nav ul ul.submenu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgb(0, 0, 0);
    width: 200px; 
}


nav ul li:hover > ul.submenu {
    display: block;
}

nav ul ul.submenu li {
    width: 80%;
    text-align: left;
    padding: 0.5rem 1rem;
}

nav ul ul.submenu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: block;
}

nav ul ul.submenu a:hover {
    background-color: #aca2a22c;
}


main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.cta-button {
    background-color: #FFC107;
    color: #000;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #FFA000;
}



footer {
    background-color:  #252850;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: 100px;
}
.social-links {
    margin-top: 1rem;
}
.social-links a {
    color: white;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #FFC107;
}
@media (max-width: 768px) {
    header {
        height: auto;
    }

    header.menu-open {
        height: 100vh;
        overflow-y: auto;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none;
    }

    header.menu-open nav ul {
        display: flex;
    }

    nav li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .toggle-btn {
        display: block;
    }

    .content-wrapper {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0));
        align-items: center;
        padding-bottom: 20%;
    }

    .content {
        max-width: 100%;
        text-align: center;
    }

    header.menu-open .logo {
        display: none;
    }

    header.menu-open nav ul {
        margin-top: 2rem;
    }

    .cta-button {
        background-color: #40E0D0;
        color: #000;
        display: inline-block;
        margin-top: 1rem;
    }

    .toggle-btn {
        display: block; 
        position: fixed;
        border-radius: 10px;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background-color: #ffffff;
        color: rgb(0, 0, 0);
        border: none;
        padding: 1.5rem 1.5rem;
        cursor: pointer;
        box-shadow: 3px 5px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s ease, box-shadow 0.2s ease; 
    }
    
    .toggle-btn:active {
        transform: scale(0.95); 
        box-shadow: 5px 5px rgba(0, 0, 0, 0.3);
    }

    nav ul ul.submenu {
        display: none;
    }
    nav ul li:active > ul.submenu, 
    nav ul li:focus > ul.submenu {
        display: block; 
    }


    .logo{
        position: relative;
        left: -50px;
    }
    
    .logo img{
        position: relative;
        left: 0;
    }

    .toggle-btn {
        font-size: 25px;
    }
}

/* Hero section de contacto */
.contact-hero {
    position: relative;
    height: 60vh;
    background: linear-gradient(rgba(37, 40, 80, 0.8), rgba(37, 40, 80, 0.8)),
                url('/imagenes/RED_DE_INNOVACION/BIOFITA/IMG-20201022-WA0035.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.contact-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.decorative-arrow {
    width: 50px;
    height: 50px;
    margin: 2rem auto 0;
    position: relative;
    pointer-events: none;
}

.decorative-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #FFC107;
}

.contact-info {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: #252850;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #252850;
    margin-bottom: 0.5rem;
}


.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form h2 {
    text-align: center;
    color: #252850;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-button {
    background-color: #252850;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

.submit-button:hover {
    background-color: #FFC107;
    color: #252850;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-hero {
        height: 50vh;
    }
    
    .contact-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-content p {
        font-size: 1.2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form{
        width: 80%;
    }
}

.success-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.submit-button {
    transition: all 0.3s ease;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}