/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Century+Gothic&display=swap');

:root {
    --primary-color: #007bff; /* Un azul para los enlaces y detalles, similar a Bionia */
    --secondary-color: #333; /* Color de texto principal */
    --light-gray: #f8f8f8; /* Fondo para secciones */
    --white: #fff;
    --dark-gray: #555;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Century Gothic', sans-serif;
    font-size: 10pt; /* Equivalente a 13.33px para 10pt */
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Elimina espacio extra debajo de las imágenes */
}

/* Header */
.header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px; /* Ajusta el tamaño del logo */
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin-left: 30px;
    position: relative;
}

.nav ul li a {
    color: var(--secondary-color);
    font-weight: bold;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: var(--primary-color);
}

/* Submenu */
.nav ul li ul.submenu {
    display: none;
    position: absolute;
    background-color: var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 200px;
    z-index: 10;
    top: 100%; /* Posiciona el submenú debajo del elemento padre */
    left: 0;
    border-top: 2px solid var(--primary-color);
}

.nav ul li:hover ul.submenu {
    display: block;
}

.nav ul li ul.submenu li {
    margin: 0;
    width: 100%;
}

.nav ul li ul.submenu li a {
    padding: 10px 20px;
    color: var(--secondary-color);
    white-space: nowrap;
}

.nav ul li ul.submenu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 150px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay oscuro */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Section Common Styles */
.section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.section.bg-light {
    background-color: var(--light-gray);
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.grid-item {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.grid-item-content {
    padding: 25px;
}

.grid-item-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.grid-item-content p {
    font-size: 1em;
    color: var(--dark-gray);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info strong {
    color: var(--primary-color);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Century Gothic', sans-serif;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0056b3; /* Un tono más oscuro del azul */
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer .container {
    flex-direction: column;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.footer-links ul li a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav ul li {
        margin-left: 20px;
    }
    .hero h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        margin-top: 20px;
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav ul li ul.submenu {
        position: static; /* Quita el posicionamiento absoluto en móviles */
        box-shadow: none;
        border-top: none;
        background-color: transparent;
        padding-left: 20px; /* Indenta los submenús */
    }

    .hero {
        padding: 100px 20px;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .section h2 {
        font-size: 2em;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .grid-item-content h3 {
        font-size: 1.3em;
    }
}