/* Variables de Colores */
:root {
    --primary-color: #0D1B8A; /* Azul marino */
    --secondary-color: #000000; /* Negro */
    --text-color: #333333; /* Gris oscuro para texto general */
    --white-color: #FFFFFF; /* Blanco */
    --light-gray-bg: #F5F5F5; /* Gris claro de fondo */
    --gray-border: #CCCCCC; /* Gris para bordes */
}

/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 3.2em;
    font-weight: bold;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light-gray {
    background-color: var(--light-gray-bg);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: darken(var(--primary-color), 10%); /* No es Sass, pero la idea es oscurecer */
    background-color: #08126B; /* Valor aproximado */
    transform: translateY(-2px);
    text-decoration: none;
}

.secondary-btn {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Header */
header {
    background-color: var(--white-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Ajusta según el tamaño de tu logo */
    width: auto;
}

.main-nav .nav-menu {
    list-style: none;
    display: flex;
}

.main-nav .nav-menu li {
    margin-left: 30px;
}

.main-nav .nav-menu a {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav .nav-menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav .nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 150px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Oscurece la imagen de fondo */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero .hero-subtitle {
    font-size: 1.4em;
    max-width: 850px;
    margin: 0 auto 20px auto;
    color: var(--white-color);
}

.hero-products-list {
    font-size: 1.1em;
    font-style: italic;
    max-width: 850px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Proyectos */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.project-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-card h3 {
    margin: 20px 0 10px;
    font-size: 1.6em;
}

.project-card p {
    padding: 0 20px;
    font-size: 1.05em;
    color: #555;
}

.project-card .btn {
    margin: 20px 0 30px;
}

/* Sobre Nosotros */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contacto */

.contact-item-group {
    margin-bottom: 15px;
}

.contact-item-group p {
    margin-bottom: 5px;
}

.contact-item-group a {
    display: block;
    margin-left: 40px; /* Alinea los números con el texto, no con el icono */
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.contact-form {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-border);
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 27, 138, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-info {
    background-color: var(--light-gray-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.3em;
    width: 25px; /* Para alinear íconos */
    text-align: center;
}

.contact-info a {
    color: var(--text-color);
}

.contact-info a:hover {
    color: var(--primary-color);
}

.map-placeholder {
    margin-top: 30px;
    height: 250px; /* Altura fija para el mapa */
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

footer .social-links {
    margin-bottom: 20px;
}

footer .social-links a {
    color: var(--white-color);
    font-size: 1.8em;
    margin: 0 15px;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8em;
    }

    h2 {
        font-size: 2.2em;
    }

    .hero {
        padding: 100px 0;
        min-height: 500px;
    }

    .hero .hero-subtitle {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-top: 30px;
    }

    .about-image img {
        max-width: 80%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Altura del header */
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
        border-top: 1px solid var(--light-gray-bg);
        padding-bottom: 10px;
    }

    .main-nav .nav-menu.active {
        display: flex;
    }

    .main-nav .nav-menu li {
        margin: 0;
        border-bottom: 1px solid var(--light-gray-bg);
    }

    .main-nav .nav-menu li:last-child {
        border-bottom: none;
    }

    .main-nav .nav-menu a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        color: var(--secondary-color);
    }

    .main-nav .nav-menu a::after {
        display: none; /* Desactivar la línea inferior en móvil */
    }

    .main-nav .nav-menu a:hover {
        background-color: var(--light-gray-bg);
        color: var(--primary-color);
    }

    .menu-toggle {
        display: block;
    }

    .logo img {
        height: 40px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .hero {
        padding: 80px 0;
        min-height: 400px;
    }

    .hero .hero-subtitle {
        font-size: 1.1em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .project-grid {
        gap: 20px;
    }

    .project-card h3 {
        font-size: 1.4em;
    }

    .project-card p {
        font-size: 0.95em;
    }

    .about-image img {
        max-width: 100%;
    }

    .contact-form,
    .contact-info {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero {
        padding: 60px 0;
        min-height: 350px;
    }

    .hero .hero-subtitle {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .social-links a {
        font-size: 1.5em;
        margin: 0 10px;
    }

    footer p {
        font-size: 0.85em;
    }
}