/*
 * Estilos para el sitio web de pintura THE BLACK
 * La paleta utiliza tonos vivos para transmitir energía y creatividad.
 */

/* Colores de la marca */
:root {
    --primary-color: #3a86ff;   /* azul vibrante */
    --secondary-color: #ff006e; /* rosa intenso */
    --accent-color: #ffbe0b;    /* amarillo cálido */
    --neutral-dark: #0d1b2a;
    --neutral-light: #f8f9fa;
    --text-color: #333;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--neutral-light);
}

/* Hero section */
.hero {
    position: relative;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

/* dark overlay to improve legibility */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.cta-btn {
    background: var(--accent-color);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

.hero-content {
    text-align: center;
    margin: auto;
    padding: 40px;
    z-index: 2;
    color: #fff;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.primary-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.primary-btn:hover {
    background: var(--secondary-color);
}

/* Servicios */
.servicios {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 60px 10%;
    background: #fff;
}

.servicio {
    flex: 1 1 300px;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    background: var(--neutral-light);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.servicio h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.servicio p {
    font-size: 0.95rem;
}

/* ¿Cómo funciona? */
.como-funciona {
    padding: 60px 10%;
    text-align: center;
    background: var(--neutral-light);
}

.como-funciona h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.pasos {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.paso {
    flex: 1 1 250px;
    margin: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.numero {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

/* Assign different colours to each step using nth-child */
.paso:nth-child(1) .numero {
    background: var(--primary-color);
}
.paso:nth-child(2) .numero {
    background: var(--secondary-color);
}
.paso:nth-child(3) .numero {
    background: var(--accent-color);
}

.paso h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.paso p {
    font-size: 0.9rem;
}

/* Imagen para cada paso de la sección "¿Cómo funciona?" */
.paso-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 10px auto;
}

/* Sección de formulario de contacto (solicitud de llamada) */
.contact-form {
    padding: 60px 10%;
    background: var(--neutral-light);
    text-align: center;
}

.contact-form h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-form p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contact-form form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--secondary-color);
}

/* Sección de landing con narrativa */
.landing {
    padding: 60px 10%;
    background: #fff;
    line-height: 1.6;
}

.landing h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.landing h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.landing p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Sección de frases populares */
.frases {
    padding: 60px 10%;
    background: #fff;
    text-align: left;
}

.frases h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.frases p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.frases-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 10px;
}

.frases-list li {
    padding: 8px 12px;
    background: var(--neutral-light);
    border-radius: 4px;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Destacados */
.destacados {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 40px 10%;
    background: #fff;
}

.destacado {
    flex: 1 1 220px;
    margin: 15px;
    padding: 30px 20px;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.destacado:nth-child(2) {
    background: var(--secondary-color);
}
.destacado:nth-child(3) {
    background: var(--accent-color);
    color: #000;
}

.destacado h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.destacado p {
    font-size: 0.9rem;
}

/* Galería */
.galeria {
    padding: 60px 10%;
    background: var(--neutral-light);
    text-align: center;
}

.galeria h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.imagenes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.imagenes img {
    flex: 1 1 300px;
    max-width: 32%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Ventajas */
.ventajas {
    padding: 60px 10%;
    background: #fff;
    text-align: center;
}

.ventajas h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.ventaja {
    flex: 1 1 250px;
    margin: 20px;
    padding: 20px;
    background: var(--neutral-light);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
    display: inline-block;
    max-width: 45%;
}

.ventaja h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.ventaja p {
    font-size: 0.9rem;
}

/* Mapa */
.mapa {
    padding: 60px 10%;
    background: var(--neutral-light);
    text-align: center;
}

.mapa h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* aspecto 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contacto */
.contacto {
    padding: 60px 10%;
    background: #fff;
    text-align: center;
}

.contacto h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contacto p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contacto ul {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.contacto li {
    margin: 10px 0;
    font-size: 0.9rem;
}

.contacto a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contacto a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--neutral-dark);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}

/* Floating action buttons for call and WhatsApp */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-buttons a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.floating-buttons a img {
    width: 24px;
    height: 24px;
}

.floating-buttons a.call-button {
    background: var(--primary-color);
}

.floating-buttons a.whatsapp-button {
    background: #25D366;
}

.floating-buttons a:hover {
    transform: scale(1.05);
}

/* Responsividad */
@media (max-width: 768px) {
    .servicios, .destacados {
        flex-direction: column;
        align-items: center;
    }
    .imagenes img {
        max-width: 48%;
    }
    .ventaja {
        max-width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .imagenes img {
        max-width: 100%;
    }
    .pasos {
        flex-direction: column;
        align-items: center;
    }
    .paso {
        max-width: 100%;
    }
    .destacados {
        flex-direction: column;
        align-items: center;
    }
    .destacado {
        margin: 10px 0;
    }
}