/* =========================================================
   BLUNDEY - TIENDA DE DOMINIOS
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1d252c;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
    background: #ffffff;
    min-height: 72px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #111820;
}

.header-text {
    font-size: 15px;
    color: #6b7280;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    background: linear-gradient(
        135deg,
        #111820 0%,
        #26323d 100%
    );

    padding: 65px 20px 75px;
    text-align: center;
    color: white;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 42px;
    font-weight: 800;
}

.hero p {
    margin: 0 auto 30px;
    font-size: 18px;
    color: #d7dde3;
}

/* =========================================================
   BUSCADOR
   ========================================================= */

.buscador {
    max-width: 760px;
    margin: auto;
    display: flex;
    background: white;
    padding: 7px;
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

.buscador input {
    flex: 1;
    border: none;
    outline: none;
    padding: 17px;
    font-size: 17px;
    color: #222;
}

.buscador button {
    border: none;
    background: #111820;
    color: white;
    padding: 0 28px;
    border-radius: 7px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.buscador button:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* =========================================================
   RESULTADOS
   ========================================================= */

.resultados {
    max-width: 900px;
    margin: 45px auto;
    padding: 0 20px;
}

.resultados h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.resultado {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 22px 25px;
    margin-bottom: 14px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.resultado:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.08);
}

.resultado strong {
    display: block;
    font-size: 19px;
    margin-bottom: 7px;
}

.disponible {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #16803c;
    background: #eaf8ef;
    padding: 5px 9px;
    border-radius: 20px;
}

.no-disponible {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #b42318;
    background: #fff0ee;
    padding: 5px 9px;
    border-radius: 20px;
}

.precio {
    margin-top: 10px;
    font-size: 21px;
    font-weight: 800;
    color: #111820;
}

/* =========================================================
   BOTÓN COMPRAR
   ========================================================= */

.comprar {
    display: inline-block;
    background: #111820;
    color: white;
    padding: 13px 23px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.comprar:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* =========================================================
   MENSAJES
   ========================================================= */

.error {
    background: #fff0ee;
    color: #a61b12;
    border: 1px solid #ffd0cb;
    padding: 15px 18px;
    border-radius: 8px;
}

.cargando {
    background: #ffffff;
    padding: 18px;
    border-radius: 8px;
    color: #555;
}

/* =========================================================
   CARRITO
   ========================================================= */

.carrito-container {
    max-width: 950px;
    margin: 50px auto;
    padding: 20px;
}

.carrito-container h1 {
    font-size: 34px;
    margin-bottom: 30px;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
    padding: 22px 25px;
    margin-bottom: 14px;

    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: #fff;

    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.carrito-item strong {
    display: block;
    font-size: 19px;
    margin-bottom: 8px;
}

.carrito-precio {
    font-size: 20px;
    font-weight: 800;
    color: #111820;
}

.carrito-derecha {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.eliminar {
    color: #b42318;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.eliminar:hover {
    text-decoration: underline;
}

/* =========================================================
   TOTAL
   ========================================================= */

.carrito-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 25px;
    padding: 25px;

    background: #ffffff;
    border-radius: 12px;

    border: 1px solid #e1e5e9;

    font-size: 23px;
    font-weight: 800;

    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

/* =========================================================
   ACCIONES
   ========================================================= */

.carrito-acciones {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;
    margin-top: 30px;
}

.boton-secundario {
    padding: 13px 20px;
    border: 1px solid #cfd4d9;
    border-radius: 7px;
    text-decoration: none;
    color: #333;
    background: #fff;
    font-weight: 600;
}

.boton-secundario:hover {
    background: #f2f4f6;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: 70px;
    padding: 30px 20px;
    text-align: center;

    background: #111820;
    color: #b9c0c7;

    font-size: 14px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .header {
        padding: 18px 20px;
        flex-direction: column;
        gap: 5px;
    }

    .hero {
        padding: 45px 20px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .buscador {
        flex-direction: column;
        gap: 8px;
        background: transparent;
        box-shadow: none;
    }

    .buscador input {
        border-radius: 8px;
        padding: 16px;
    }

    .buscador button {
        height: 52px;
        border-radius: 8px;
    }

    .resultado {
        flex-direction: column;
        align-items: flex-start;
    }

    .resultado .comprar {
        width: 100%;
        text-align: center;
    }

    .carrito-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .carrito-derecha {
        width: 100%;
        align-items: flex-start;
    }

    .carrito-total {
        font-size: 19px;
    }

    .carrito-acciones {
        flex-direction: column;
        align-items: stretch;
    }

    .boton-secundario,
    .carrito-acciones .comprar {
        width: 100%;
        text-align: center;
    }
}