/* --- ESTILOS GENERALES --- */
:root {
    --primary: #0066cc; /* Azul confianza */
    --secondary: #2c3e50; /* Gris oscuro */
    --accent: #27ae60; /* Verde WhatsApp/Éxito */
    --light: #f4f7f6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- BARRA DE NAVEGACIÓN --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo i { margin-right: 10px; }

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.btn-cta {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-cta:hover { background: #0052a3; }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION ACTUALIZADO --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1597872200969-2b65d56bd16b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}


.hero p { 
    font-size: 1.2rem; 
    margin: 0 auto 30px auto; /* El 'auto' a los lados centra el bloque del párrafo */
    max-width: 800px; /* Aumentamos un poco el ancho para que respire mejor */
    width: 90%; /* Asegura que en móviles no toque los bordes */
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 20px; 
    width: 100%; 
}


/* Ajuste específico para el botón Hero en móviles */
@media (max-width: 480px) {
    .hero .btn-cta {
        font-size: 1rem !important; /* Reducimos un poco el tamaño de la letra */
        padding: 12px 15px !important; /* Achicamos el espacio interno */
        width: 90%; /* Forzamos a que no ocupe el 100% para que no toque los bordes */
        display: inline-block;
        white-space: normal; /* Permite que el texto salte de línea si es necesario en vez de cortarse */
        line-height: 1.2;
    }
    
    .hero h1 {
        font-size: 1.8rem !important; /* Aprovechamos para ajustar el título que también suele cortarse */
    }
}


/* --- SERVICIOS --- */
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 10px; }
.section-title p { color: #666; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-10px); }
.service-card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; }

/* --- POR QUÉ ELEGIRNOS --- */
.why-us { background-color: var(--secondary); color: var(--white); }
.why-us h2 { color: var(--white); }
.why-us p { color: #ccc; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item { text-align: center; }
.feature-item i { color: var(--accent); font-size: 2rem; margin-bottom: 15px; }

/* --- CONTACTO --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info i { color: var(--primary); width: 30px; margin-bottom: 20px; }

/* MAPA REAL */
.map-container {
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
}

input, textarea, select {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button[type="submit"] {
    background: var(--accent);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover { background: #219150; }

/* --- FOOTER --- */
footer {
    background: #1a252f;
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* --- BOTÓN WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }


/* --- ESTILO BOTÓN WALLAPOP --- */
.wallapop-container {
    display: flex;
    justify-content: center; /* Centra el botón horizontalmente */
    margin-top: 20px;
}

.btn-wallapop {
    display: inline-flex;
    align-items: center;
    background-color: #13c1ac; /* Verde característico de Wallapop */
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 193, 172, 0.4);
}

.btn-wallapop i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-wallapop:hover {
    background-color: #0fa895;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(19, 193, 172, 0.6);
}

/* Ajuste para los iconos de contacto */
.contact-info p i {
    width: 25px;
    color: var(--primary);
    margin-right: 10px;
}
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: var(--white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        display: none; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .menu-toggle { display: block; }
    .contact-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}