/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.header {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    max-width: 340px; /* Control del ancho máximo */
    z-index: 2;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}
.logo img {
    width: 100%;
    height: auto;
    max-height: 135px; /* Altura máxima */
    transition: max-height 0.3s ease;
    object-fit: contain;
}

.navbar {
    display: flex;
    gap: 2rem;
    margin: 0 auto; /* Centrar el navbar */
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}


/* Para pantallas pequeñas */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        max-width: 150px;
    }
    
    .logo img {
        max-height: 60px;
    }
    
    .navbar {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Para pantallas medianas */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo {
        max-width: 180px;
    }
    
    .logo img {
        max-height: 70px;
    }
}

/* Slider Principal */
.main-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Slider Proyectos */
.projects-slider {
    padding: 4rem 2rem;
}

.projects-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1rem 0;
}

.project-slide {
    flex: 0 0 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1rem;
    width: 100%;
}



/* Formulario de contacto */
.contact-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Estilos de botones removidos - Ver whatsapp-btn.css para el botón de WhatsApp */

/* Mensajes de error/success */
.success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

/* Sección Clientes */
.clientes {
    padding: 4rem 2rem;
}

.clientes-grupo {
    margin-bottom: 3rem;
}

.clientes-grupo h3 {
    color: #2c3e50;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.cliente-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.cliente-item:hover {
    transform: translateY(-5px);
}

.cliente-item img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.cliente-item:hover img {
    filter: grayscale(0%);
}

/* Estilos Quiénes Somos */
.about-us {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.values-list .fa-check-circle {
    color: #27ae60;
    margin-right: 0.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .values-list li {
        text-align: left;
    }
}


/* Estilos Generales */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* WhatsApp Button - Ver whatsapp-btn.css para estilos completos */

/* Intro Section */
.intro {
    position: relative;
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.intro-decoration {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateY(-50%);
    z-index: 0;
}

.deco-line {
    width: 80px;
    height: 2px;
    background: rgba(0,0,0,0.1);
}

.deco-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2c3e50;
    box-shadow: 0 0 15px rgba(44,62,80,0.2);
}

.intro-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.animated-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    letter-spacing: 1px;
    font-weight: 700;
}

.animated-subtitle {
    font-size: 1.4rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.3s forwards;
    font-weight: 300;
    line-height: 1.6;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quiénes Somos Section */
.about-us {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.values-list .fa-check-circle {
    color: #27ae60;
    margin-right: 0.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Formulario de Contacto */
.contact-form {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-primary {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #34495e;
}

/* Alertas */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .animated-title {
        font-size: 2.5rem;
    }
    
    .contact-form {
        margin: 2rem;
        padding: 1rem;
    }
}