/* Variables de Color (Ejemplo) */
:root {
    --primary-color: #2c3e50; /* Azul oscuro/gris */
    --secondary-color: #e67e22; /* Naranja como acento */
    --light-color: #f4f4f4;
    --dark-color: #333333;
    --text-color: #555;
    --font-primary: 'Roboto', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
}

/* Reseteo Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header y Navegación */
#header {
    background: #fff;
    color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    padding: 0.75rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


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

#header .logo img {
    height: 50px; 
    transition: height 0.3s ease;
}
#header.scrolled .logo img {
    height: 40px;
}


#header .nav-menu {
    list-style: none;
    display: flex;
}

#header .nav-menu li {
    margin-left: 25px;
}

#header .nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

#header .nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

#header .nav-menu a:hover::after,
#header .nav-menu a.active::after {
    width: 100%;
}

#header .nav-menu a:hover,
#header .nav-menu a.active {
    color: var(--secondary-color);
}

/* Menú Hamburguesa para Móvil */
.menu-toggle {
    display: none;
    cursor: pointer;
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}


/* Hero Section */
.hero-section {
    height: 100vh;
    /* background: url('../images/hero-bg.jpg') no-repeat center center/cover; */ /* Comentado para usar el inline style */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.55); 
}
.hero-content {
    position: relative; 
    z-index: 1;
    max-width: 800px;
}
.hero-section h1 {
    font-family: var(--font-headings);
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-section p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin: 0.5rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #d35400; 
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Secciones Generales */
.py-5 { padding: 5rem 0; }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); }
.text-light { color: #fff; }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }


.section-title {
    font-family: var(--font-headings);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

/* Sobre Nosotros */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.about-text p {
    margin-bottom: 1rem;
}
.about-image {
    text-align: center;
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}
.service-item {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.service-icon {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.service-item h3 {
    font-family: var(--font-headings);
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Proyectos (Portfolio) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}
.portfolio-item img {
    width: 100%;
    height: 260px; 
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-item:hover img {
    transform: scale(1.15);
}
.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.7)); 
    color: #fff;
    padding: 1.5rem 1rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}
.portfolio-info h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-headings);
    font-size: 1.3rem;
}
.portfolio-info p {
    font-size: 0.9rem;
}


/* Testimonios */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-color);
}
.testimonial-item blockquote p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #444;
}
.testimonial-item cite {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.stars {
    color: #f1c40f; /* Amarillo estrella más vivo */
    font-size: 1.1rem;
}

/* Contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form-container { }
.contact-info { }

.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-info h3 {
    font-family: var(--font-headings);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}
.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}
.contact-info p i {
    color: var(--secondary-color);
    margin-right: 1rem;
    width: 20px; 
    font-size: 1.2rem;
}
.social-links {
    margin-top: 1.5rem;
}
.social-links a {
    color: var(--primary-color);
    margin-right: 1.2rem;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary-color);
}
.map-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden; 
}
#form-messages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-weight: bold;
}
#form-messages.success {
    background-color: #e8f5e9; /* Verde claro */
    color: #2e7d32; /* Verde oscuro */
    border: 1px solid #a5d6a7;
}
#form-messages.error {
    background-color: #ffebee; /* Rojo claro */
    color: #c62828; /* Rojo oscuro */
    border: 1px solid #ef9a9a;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 2.5rem 0;
    font-size: 0.9rem;
}
footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--secondary-color);
}
footer p {
    margin-bottom: 0.5rem;
}


/* Responsive */
@media (max-width: 992px) {
    .about-content, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .about-image {
        margin-top: 2rem;
    }
    .contact-info {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5rem; }
    .hero-section p { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }

    #header .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Justo debajo del header */
        left: 0;
        background: #fff;
        padding: 1rem 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    #header .nav-menu.active {
        display: flex;
    }
    #header .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    #header .nav-menu li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    #header .nav-menu li:last-child a {
        border-bottom: none;
    }
    #header .nav-menu a::after {
      display: none; /* Ocultar la línea debajo en móvil */
    }

    .menu-toggle {
        display: block;
    }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .contact-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .portfolio-info h3 { font-size: 1.1rem; }
}