/* ===========================
   CaribeXCOM — Base Styles
   Archivo: cx-base.css
   =========================== */

/* Google Fonts (Montserrat) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap");

/* (Opcional) Lemon Milk local: copia el .woff2 a web/fonts/LemonMilk.woff2 y descomenta
@font-face{
  font-family: "Lemon Milk";
  src: url("../fonts/LemonMilk.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

*,
*::before,
*::after{
    box-sizing: border-box;
}

html, body{
    height: 100%;
}

body{
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    background-image: var(--grad-panel);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /*padding-bottom: 70px;*/
    padding-bottom: 0;
    padding-top: var(--nav-h);
}

main{
    flex: 1 0 auto;
    /*padding-bottom: calc(var(--footer-h) + 18px);*/
    padding-bottom: 18px;
}

/* Selección */
::selection{
    background: rgba(253,215,3,.25);
    color: var(--text);
}

/* Links */
a{
    color: inherit;
    text-decoration: none;
}

/* Headings */
h1,h2,h3,h4{
    margin: 0 0 12px 0;
    font-family: var(--font-title);
    letter-spacing: .2px;
}

p{
    margin: 0 0 16px 0;
    color: var(--muted);
    line-height: 1.6;
}

/* Layout */
.cx-container{
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.cx-section{
    padding: var(--section-pad) 0;
    position: relative;
}

/* Utilidades */
.cx-muted{
    color: var(--muted);
}
.cx-pill{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    background: rgba(18,24,38,.65);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}
.cx-divider{
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}

.cx-grid{
    display: grid;
    gap: 20px;
}
.cx-grid-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cx-grid-3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cx-grid-4{
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px){
    :root{
        --section-pad: 64px;
        --footer-h: 78px;
    }
    .cx-grid-4{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cx-grid-3{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cx-grid-2{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px){
    :root{
        --nav-h: 64px;
        --footer-h: 78px;
    }
    .cx-grid-4, .cx-grid-3{
        grid-template-columns: 1fr;
    }
}
.cx-footer{
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
}
.cx-grid-1{
    grid-template-columns: 1fr;
}

.cx-social__icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

