/* ============================================== */
/* VARIABLES DE COLOR */
/* ============================================== */
:root {
    --primary-color: #ff4b5c;
    --primary-blue: #2979ff;
    --dark-color: #2c3e50;
    --light-color: #ffffff;
    --background-color: #f9f9f9;
}

/* ============================================== */
/* ESTILOS GENERALES */
/* ============================================== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--dark-color);
    background-color: var(--light-color);
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
h1 {
    font-size: 52px;
    font-weight: 700;
    margin: 10px 0;
}

/* ============================================== */
/* ESTILOS DEL ENCABEZADO (HEADER) */
/* ============================================== */
header {
    background: var(--light-color);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    max-height: 40px;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}
nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
}
.contact-button {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 20px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}
.contact-button:hover {
    background-color: #e03c4b;
}

/* ============================================== */
/* ESTILOS DE LA SECCIÓN HERO */
/* ============================================== */
.hero {
    background-color: var(--light-color);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.hero-text {
    max-width: 50%;
}
.subtitle {
    font-size: 18px;
    font-weight: 400;
}
.tagline {
    font-size: 32px;
    margin-bottom: 30px;
}
.cta-button {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #e03c4b;
}

/* La forma azul de fondo */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -35%;
    width: 65%;
    height: 190%;
    background-color: var(--primary-blue);
    border-radius: 100px;
    transform: rotate(50deg);
    z-index: 1;
}

/* El texto "Bweb" transparente */
.hero::after {
    content: 'Bweb';
    position: absolute;
    top: 60%;
    right: 1%;
    transform: translate(-50%, -50%);
    font-size: 8em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    user-select: none;
}

/* Contenedor para la imagen decorativa (Click!) */
.hero-image-container {
    /* position: absolute "libera" el elemento para que puedas moverlo con precisión */
    position: absolute; 
    
    /* Usa top y right para moverlo. Juega con estos valores */
    top: 65%;    /* % desde el borde superior */
    right: -10%;  /* % desde el borde derecho */

    width: 100px; /* Un ancho fijo para mejor control */
    z-index: 2;   /* Lo pone por encima de la forma azul */
    transition: transform 0.3s ease; /* Efecto suave al pasar el mouse */
}

/* Efecto al pasar el mouse */
.hero-image-container:hover {
    transform: scale(1.1);
}

.hero-image-container img {
    width: 100%; /* La imagen ocupa el 100% de su contenedor */
    height: auto;
}

/* ============================================== */
/* ESTILOS DE LA SECCIÓN DE SERVICIOS */
/* ============================================== */
.services {
    padding: 80px 0;
    background-color: var(--background-color);
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
}
.section-title p {
    font-size: 18px;
    color: #666;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.service-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.2);
}
.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}
.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* ============================================== */
/* ESTILOS DE LA SECCIÓN "SOBRE NOSOTROS" */
/* ============================================== */
.about {
    padding: 80px 0;
    background-color: var(--light-color);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.about-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
    transition: background-color 0.3s ease;
}
.about-card:hover {
    background-color: #fffaf0;
}
.about-icon {
    margin-bottom: 20px;
    color: var(--dark-color);
}
.about-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}
.about-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* ============================================== */
/* ESTILOS DE LA SECCIÓN DEL COTIZADOR */
/* ============================================== */
.cotizador-section {
    padding: 80px 0;
    background-color: var(--background-color);
}
#asistente-cotizador {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eee;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.asistente-header {
    text-align: center;
    margin-bottom: 30px;
}
.asistente-paso {
    margin-bottom: 20px;
}
.asistente-paso h3 {
    margin-bottom: 20px;
    font-size: 22px;
}
.opcion-radio {
    display: block;
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: background-color 0.3s ease;
}
.opcion-radio:hover {
    background-color: #f0f0f0;
}
.opcion-radio input {
    margin-right: 10px;
}
.asistente-navegacion {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.asistente-navegacion button {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.asistente-navegacion button:hover {
    background-color: #e03c4b;
}

/* ============================================== */
/* ESTILOS DEL FOOTER */
/* ============================================== */
footer {
    background-color: var(--dark-color);
    color: #aeb9c4;
    padding: 60px 0 30px 0;
    text-align: center;
}
.footer-content h3 {
    color: var(--light-color);
    font-size: 28px;
    margin-bottom: 10px;
}
.footer-contact {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #4a627a;
    padding-top: 30px;
    font-size: 14px;
}
.footer-bottom a {
    color: var(--light-color);
    text-decoration: none;
}

/* ============================================== */
/* CÓDIGO PARA RESPONSIVIDAD EN CELULARES */
/* ============================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }
    nav ul {
        display: none;
    }
    .hero .container {
        flex-direction: column;
    }
    .hero-text {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }
    .hero-image-container {
        width: 80%;
    }
    .hero::before {
        width: 150%;
        right: -50%;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
}