/* Base Styles */
:root {
    --primary-color: #e63946; /* Rojo UCR */
    --secondary-color: #c1121f; /* Rojo UCR más oscuro para hover */
    --text-color: #333;
    --light-text: #666;
    --background: #fff;
    --light-background: #f8f9fa;
    --border-color: #ddd;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

    .section-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background-color: var(--primary-color);
    }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background-color: var(--secondary-color);
        transform: translateY(-2px);
    }

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

    .nav-links li {
        margin-left: 30px;
    }

    .nav-links a {
        color: var(--text-color);
        font-weight: 500;
        position: relative;
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary-color);
            transition: var(--transition);
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 2px 0;
        transition: var(--transition);
    }

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    background: url("img/nacho-hero.jpg") no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: block;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

    .hero-content h1 {
        font-size: 4rem;
        margin-bottom: 15px;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-content h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-content p {
        font-size: 1.4rem;
        margin-bottom: 30px;
        color: white;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

.hero .btn {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .hero .btn:hover {
        background-color: var(--secondary-color);
        transform: translateY(-3px);
    }

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--background);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

    .about-text h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        color: var(--primary-color);
    }

    .about-text p {
        margin-bottom: 20px;
    }

    .about-text ul {
        margin-bottom: 20px;
        padding-left: 20px;
    }

        .about-text ul li {
            margin-bottom: 10px;
            position: relative;
            padding-left: 15px;
        }

            .about-text ul li::before {
                content: "";
                position: absolute;
                left: 0;
                top: 10px;
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background-color: var(--primary-color);
            }

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--light-background);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    margin: 0 10px 10px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .filter-btn:hover,
    .filter-btn.active {
        background-color: var(--primary-color);
        color: white;
    }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.project-image {
    height: 200px;
    overflow: hidden;
}

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

    .project-info h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    .project-info p {
        margin-bottom: 15px;
        color: var(--light-text);
    }

.project-date {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

/* Project Detail Page */
.project-detail {
    padding: 120px 0 80px;
}

.back-link {
    margin-bottom: 30px;
}

    .back-link a {
        display: inline-flex;
        align-items: center;
        font-weight: 500;
    }

        .back-link a:hover {
            color: var(--secondary-color);
        }

.project-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.project-detail-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .project-detail-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

.project-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-detail-info .project-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: #e9ecef;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-detail-info .project-date {
    margin-bottom: 20px;
}

.project-detail-info .project-summary {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--light-text);
}

.project-detail-info .project-description {
    margin-bottom: 30px;
}

.related-projects {
    margin-top: 60px;
}

    .related-projects h3 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        color: var(--primary-color);
    }

@media (max-width: 992px) {
    .project-detail-content {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--background);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info,
.contact-form {
    flex: 1;
}

    .contact-info h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        color: var(--primary-color);
    }

    .contact-info p {
        margin-bottom: 30px;
    }

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

    .contact-item i {
        margin-right: 15px;
        font-size: 1.2rem;
        color: var(--primary-color);
    }

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f1f1f1;
    border-radius: 4px;
    transition: var(--transition);
}

    .social-icon:hover {
        background-color: var(--primary-color);
        color: white;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-family: inherit;
        font-size: 1rem;
        transition: var(--transition);
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--primary-color);
            outline: none;
        }

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-links ul {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
}

    .footer-links a:hover {
        color: #ccc;
    }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .about-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

        .nav-links.active {
            transform: translateY(0);
            opacity: 1;
        }

        .nav-links li {
            margin: 15px 0;
        }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-image {
        width: 80%;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 80%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Icons */
.icon-location::before {
    content: "📍";
}

.icon-phone::before {
    content: "📞";
}

.icon-email::before {
    content: "✉️";
}
/* Sección de redes en la home */
.social-home {
    padding: 80px 0;
    background-color: var(--light-background);
    text-align: center;
}

.social-icons-home {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-icon-link {
    font-size: 2rem;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

    .social-icon-link.facebook {
        background-color: #3b5998;
    }

    .social-icon-link.instagram {
        background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    }

    .social-icon-link.twitter {
        background-color: #1da1f2;
    }

    .social-icon-link:hover {
        transform: scale(1.2) rotate(5deg);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .social-icon-link.whatsapp {
        background-color: #25D366; /* Color oficial de WhatsApp */
        color: #fff;
    }

        .social-icon-link.whatsapp:hover {
            background-color: #20b358; /* Un tono más oscuro al hacer hover */
        }
