@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ===================== RESET & VARIABLES ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    list-style: none;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}

:root {
    --color-light: #29EBF4;
    --color-mid-light: #29DAE2;
    --color-mid: #21C4CB;
    --color-mid-dark: #1C9BA1;
    --color-dark: #177A7F;
    --color-black: #000000;
    --color-white: #ffffff;
    /* Gradientes */
    --gradient-main: linear-gradient(135deg, var(--color-light), var(--color-mid-light));
    --gradient-highlight: linear-gradient(135deg, var(--color-mid), var(--color-mid-dark));
    --gradient-dark: linear-gradient(135deg, var(--color-mid-dark), var(--color-dark));
}

/* ===================== BASE ===================== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-main);
    color: var(--color-black);
}

h1,
h2,
h3 {
    color: var(--color-dark);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

section {
    padding: 50px 10%;
}

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

.logo-text {
    color: #194DDB !important; 
    font-size: 1.8rem;
    font-weight: 600;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 100px;
    background: var(--gradient-highlight);
    height: 80px;
}

header .logo {
    display: flex;
    align-items: center;
    height: 90px;
}

header .logo img {
    height: 100%;
    width: auto;
    margin-right: 10px;
    display: inline-block;
}

header .logo span {
    font-size: 1.8rem;
    font-weight: 600;
    color: #177A7F;
}

/* Navbar */
.navbar {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar a {
    font-size: 1rem;
    padding: 10px 20px;
    font-weight: 600;
    color: var(--color-white);
    transition: all .5s ease;
}

.navbar a:hover {
    color: var(--color-light);
}

#menu-icon {
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

/* Responsive */
@media (max-width: 816px) {
    header {
        padding: 11px 4%;
        height: 60px;
    }

    header .logo img {
        height: 100%;
    }
}

/* ===================== HOME ===================== */
.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url(./img/fondo5.jpg) no-repeat right center / cover fixed;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.home::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.home-text {
    position: relative;
    z-index: 2;
}



.home-text h1 {
    font-size: 3.1rem;
    color: #1C9BA1;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.3);
    
}

.home-text p {
    color: #f8f8f8;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* ===================== BOTONES ===================== */
button,
.btn {
    background: var(--gradient-dark);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-size: 17px;
}

button:hover,
.btn:hover {
    background: var(--gradient-highlight);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.heading {
    text-align: center;
    margin-bottom: 50px;
    background: rgba(0, 0, 0, 0.7); 
    padding: 1rem;
    border-radius: 10px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.heading span {
    color: #21C4CB; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.4rem;
}

.heading h2 {
    font-size: 1.8rem;
    margin-top: 10px;
    color: #ffffff; 
}


/* ===================== CAJAS / PRODUCTOS ===================== */

.shop{
background-color: #4DBCD8 !important;

}

.shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    gap: 1rem;
    margin-top: 2rem;
}

.box {
    position: relative;
    border-radius: 16px;
    background: var(--gradient-dark);
    color: var(--color-white);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.box .box-img {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.box .box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: .5s;
}

.box .box-img img:hover {
    transform: scale(1.1);
}

.title-price {
    display: flex;
    justify-content: space-between;
    padding: 12px;
}

.title-price h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

/* ===================== CARTAS ===================== */
.cards-module {
    --cards-bg-dark: #2d3548;
    --cards-text-light: rgba(255, 255, 255, 0.6);
    --cards-text-lighter: rgba(255, 255, 255, 0.9);
    --cards-spacing-s: 8px;
    --cards-spacing-m: 16px;
    --cards-spacing-l: 24px;
    --cards-spacing-xl: 32px;
    --cards-spacing-xxl: 64px;
    --cards-width-container: 1200px;
    background-color: #19536C !important;
}

.cards-module .hero-section {
    align-items: flex-start;
    background-image: linear-gradient(15deg, #0f4667 0%, #2a6973 150%);
    display: flex;
    min-height: 100%;
    justify-content: center;
    padding: var(--cards-spacing-xxl) var(--cards-spacing-l);
    max-width: 1400px;
    margin: 0 auto;
    
}

.cards-module .card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: var(--cards-spacing-l);
    grid-row-gap: var(--cards-spacing-l);
    max-width: var(--cards-width-container);
    width: 100%;
    margin: 0 auto;
}

@media(min-width: 540px) {
    .cards-module .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 960px) {
    .cards-module .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cards-module .card {
    list-style: none;
    position: relative;
}

.cards-module .card:before {
    content: '';
    display: block;
    padding-bottom: 150%;
    width: 100%;
}

.cards-module .card__background {
    background-size: cover;
    background-position: center;
    border-radius: var(--cards-spacing-l);
    bottom: 0;
    filter: brightness(0.75) saturate(1.2) contrast(0.85);
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform-origin: center;
    transform: scale(1) translateZ(0);
    transition: filter 200ms linear, transform 200ms linear;
}

.cards-module .card:hover .card__background {
    transform: scale(1.05) translateZ(0);
}

.cards-module .card-grid:hover>.card:not(:hover) .card__background {
    filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
}

.cards-module .card__content {
    left: 0;
    padding: var(--cards-spacing-l);
    position: absolute;
    top: 0;
}

.cards-module .card__category {
    color: var(--cards-text-light);
    font-size: 0.9rem;
    margin-bottom: var(--cards-spacing-s);
    text-transform: uppercase;
}

.cards-module .card__heading {
    color: var(--cards-text-lighter);
    font-size: 1.9rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    word-spacing: 100vw;
}

/* ===================== ABOUT ===================== */
.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background-color: #4DBCD8 !important; 
    
}

.about-img img {
    width: 80%;
    border-radius: 10px;
    object-fit: contain;
}

.about-text span {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #0C0C0C;
}

.about-text p {
    font-size: 1rem;
    margin: 0.5rem 0 1.4rem;
    text-align: justify;
}


/* ===================== CONTACT FORM ===================== */
.contact {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #AEECEF !important;
}

.contact-container {
    width: 100%;
    max-width: 800px;
    background-color: var(--color-mid-dark);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-form .form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-dark);
}

.contact-form textarea {
    resize: none;
    width: 100%;
}

.contact-form .btn {
    display: inline-block;
    background: var(--main-color);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
}

.contact-form .btn:hover {
    background: var(--color-dark);
}


/* ===================== FOOTER ===================== */
.footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, auto));
    gap: 1rem;
}

.footer-box h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-box h3 {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-white);
}

.footer-box span {
    color: var(--color-light);
}

.footer-box p {
    font-size: .938rem;
    margin-bottom: 10px;
}

.social {
    display: flex;
    align-items: center;
}

.social a {
    font-size: 24px;
    margin-right: 10px;
    color: var(--color-black);
}

.social a:hover {
    color: var(--color-light);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info span {
    color: var(--color-black);
}

.copyright {
    padding: 20px;
    text-align: center;
}

.copyright span {
    font-family: 'Turret Road';
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    header {
        padding: 18px 4%;
    }

    section {
        padding: 50px 4%;
    }
}

@media (max-width: 881px) {
    .home-text h1 {
        font-size: 2rem;
    }

    .shop-container {
        grid-template-columns: repeat(auto-fit, minmax(218px, auto));
    }
}

@media (max-width: 816px) {
    header {
        padding: 11px 4%;
    }

    #menu-icon {
        display: initial;
    }

    .navbar {
        position: absolute;
        top: -500px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--color-white);
        box-shadow: 0 4px 4px rgb(0, 0, 0 / 100%);
        transition: .2s ease;
        text-align: center;
    }

    .navbar a {
        padding: 1.5rem;
        display: block;
    }

    .navbar a:hover {
        color: var(--color-white);
        background: var(--color-dark);
    }

    .navbar.active {
        top: 100%;
    }

    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-img {
        padding-top: 1rem;
    }
}

@media (max-width: 491px) {
    .home-text h1 {
        font-size: 1.7rem;
    }

    .shop-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    }

    .box {
        height: 400px;
    }

    .box .box-img {
        height: 300px;
    }

    .about-text h2 {
        font-size: 1.2rem;
    }

    .title-price {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .footer-box {
        place-items: center;
    }
}