/* -------------------- */
/*   RESET GLOBAL       */
/* -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/* -------------------- */
/*   ESTILOS GENERALES  */
/* -------------------- */
body {
    font-family: "Poppins", Arial, sans-serif;
    background: #152235;
    color: #e8e8e8;
    overflow-x: hidden;
}


/* -------------------- */
/*       HEADER         */
/* -------------------- */
header {
    background: rgba(0, 80, 140, 0.65);
    color: white;
    padding: 18px 45px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.22);
    display: grid;
    grid-template-columns: auto 1fr auto; /* izquierda — centro — derecha */
    align-items: center; 
}

.header-buttons {
    display: flex;
    gap: 12px;
    justify-self: end; /* Para grid */
    align-items: center;
}

p{
     grid-column: 2;     /* obligación: siempre en el centro real */
    justify-self: center;
}
h2 {
     margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    grid-column: 2;     /* obligación: siempre en el centro real */
    justify-self: center;
}

.title {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    grid-column: 2; /* fuerza que siempre quede al centro */
    justify-self: center;
}


.header-buttons {
    display: flex;
    gap: 18px;
}

.btn {
    background-color: white;
    color: #003a63;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: 0.25s;
}

.btn:hover {
    background-color: #dceeff;
    transform: translateY(-2px);
}

.btn-login {
    background-color: #ff5e5e;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.25s;
}

.btn-login:hover {
    background-color: #d90000;
    transform: scale(1.06);
}


/* -------------------- */
/*     BANNER GIF       */
/* -------------------- */
/* -------------------- */
/*     BANNER GIF       */
/* -------------------- */
.bg-gif {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 420px;


    background:
        linear-gradient(to bottom, rgba(0,0,0,0.20), rgba(21,34,53,1)),
        url('../fondo/Ocean-Homepage-1468x512.gif')
        center/cover no-repeat;

    z-index: 1;
}
/* -------------------- */
/*        MAIN          */
/* -------------------- */
main {
    position: relative;
    z-index: 2;
}


/* -------------------- */
/*     TARJETAS         */
/* -------------------- */
.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 30px;
}

.card {
    background: #ffffff;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.card-img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.placeholder {
    background: #ced4da;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
}

.card h3 {
    font-size: 1.4rem;
    margin: 10px 0 5px;
    color: #000;
}

.card p {
    margin: 5px 0;
    color: #000;
}
.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #273c75;
}

.card button {
    margin-top: 12px;
    padding: 10px 20px;
    border: none;
    background: #273c75;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.card button:hover {
    background: #192a56;
}


/* -------------------- */
/*        MODAL         */
/* -------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: rgba(28, 38, 53, 0.85);
    padding: 28px;
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    animation: fadeIn 0.25s ease-out;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
}

@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.closeModal {
    background: #e63946;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.closeModal:hover {
    background: #c91828;
    transform: scale(1.06);
}

.modal-right {
    background: #ffca3a;
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.modal-right:hover {
    background: #e0b12f;
    transform: scale(1.06);
}

.modal-content input {
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: #ffffff;
    font-size: 15px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
}

.modal-content label {
    font-weight: bold;
    margin-top: 4px;
    color: #f1f1f1;
}

.modal-content h3 {
    margin: 6px 0;
    color: #ffd36b;
    text-align: center;
}


/* -------------------- */
/*        FOOTER        */
/* -------------------- */
footer {
    padding: 10px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 18px;
    text-align: center;
    margin-top: 40px;
    position: relative;
}

.footer-socials {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid white; /* borde blanco delgado */
    color: white;            /* letra blanca */
    background-color: rgba(0,0,0,0.45); /* negro transparente */
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

.social-btn:hover {
    transform: scale(1.15);
    background-color: rgba(255,255,255,0.15); /* ligero efecto hover */
}

/* MISMO fondo para botón y menú */
:root {
    --menu-bg: rgba(0, 0, 0, 0.55);
    --menu-blur: blur(14px);
}

/* Botón del menú */
.menu-toggle-left {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);

    font-size: 26px;
    cursor: pointer;
    z-index: 1002;

    color: white;
    background: var(--menu-bg);
    backdrop-filter: var(--menu-blur);

    padding: 6px 12px;
    border-radius: 8px;
}

.side-menu-left {
    position: fixed;
    top: 0;
    left: -25vw;
    width: 25vw;
    height: calc(100vh - 0px); /* pantalla completa */
    
    background: var(--menu-bg);
    backdrop-filter: var(--menu-blur);

    padding-top: 100px; /* AJUSTA ESTO → separa el menú del titulo */

    transition: left 0.35s ease;
    z-index: 1001;

    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Cuando el menú se abre → aparece completamente */
.side-menu-left.open {
    left: 0;
}

/* Botones */
.side-menu-left .side-btn {
    display: block;
    padding: 14px 18px;
    margin: 0 20px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(3px);
}

.about-text {
    text-align: center;        /* centra el texto */
    margin: 20px auto 80px;    /* margen superior 20px, auto horizontal, inferior 80px para que no choque con el footer */
    max-width: 850px;          /* opcional: limita ancho para que sea más legible */
    line-height: 1.6;          /* mejora la lectura */
    font-size: 1.1rem;         /* tamaño legible */
}


/* -------------------- */
/*       RESPONSIVE     */
/* -------------------- */

/* Móviles medianos */
@media (max-width: 1024px) {
    header {
        padding: 12px 25px;
        grid-template-columns: auto 1fr auto;
    }

    .title, h2, p {
        font-size: 1.8rem;
    }

    .bg-gif {
        height: 320px;
    }

    .productos {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        padding: 15px 20px;
    }

    .card-img {
        height: 160px;
    }

    .side-menu-left {
        width: 40vw;
        left: -40vw;
    }
}

/* Móviles pequeños */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }

    .title, h2, p {
        font-size: 1.5rem;
    }

    .bg-gif {
        height: 250px;
        background-size: cover;
        background-position: center top;
    }

    .productos {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }

    .card-img {
        height: 140px;
    }

    .modal-content {
        width: 95%;
        max-width: 350px;
        padding: 20px;
    }

    .modal-content input {
        font-size: 0.9rem;
        padding: 10px;
    }

    .modal-content label {
        font-size: 0.9rem;
    }

    .side-menu-left {
        width: 70vw;
        left: -70vw;
        padding-top: 80px;
    }

    .about-text {
        font-size: 1rem;
        margin: 15px auto 60px;
        line-height: 1.4;
        padding: 0 10px;
    }
}

/* Extra pequeños / móviles muy estrechos */
@media (max-width: 480px) {
    header {
        padding: 8px 12px;
    }

    .title, h2, p {
        font-size: 1.3rem;
    }

    .bg-gif {
        height: 200px;
    }

    .card-img {
        height: 120px;
    }

    .modal-content {
        width: 95%;
        max-width: 300px;
        padding: 15px;
    }

    .modal-content input {
        font-size: 0.85rem;
        padding: 8px;
    }

    .modal-content label {
        font-size: 0.85rem;
    }

    .about-text {
        font-size: 0.95rem;
        margin: 10px auto 50px;
        line-height: 1.3;
        padding: 0 8px;
    }

    .side-menu-left .side-btn {
        font-size: 16px;
        padding: 12px 16px;
        margin: 0 10px;
    }

    .footer-socials {
        gap: 10px;
    }

    .social-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

