/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}

/* PALETA */
:root {
    --bg: #ffffff;
    --text: #000000;
    --gray: #f5f5f5;
    --border: #e0e0e0;
}

/* BODY */
body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

/* FLEX & GRID */
.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

/* LOGO */
.logo {
    font-size: 20px;
    font-weight: 700;
}

/* NAV */
.nav {
    display: flex;
    gap: 15px;
}

.nav a {
    text-decoration: none;
    color: black;
    font-size: 14px;
}

.nav a:hover {
    text-decoration: underline;
}

/* HAMBURGER BUTTON */
.menu-btn {
    display: block;
    font-size: 22px;
    cursor: pointer;
    border: none;
    background: none;
}

/* HERO */
.hero {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.hero h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

/* BUTTON */
.btn {
    padding: 12px 20px;
    background: black;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* CARDS */
.card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--gray);
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #666;
}

/* ================= MOBILE MENU ================= */
@media (max-width: 767px) {
    .nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav a {
        padding: 12px;
        border-top: 1px solid var(--border);
    }

    .nav.active {
        display: flex;
    }
}

/* ================= TABLET ================= */
@media (min-width: 768px) {
    .menu-btn {
        display: none;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        grid-column: 1 / -1;
        padding: 30px;
    }

    .hero h2 {
        font-size: 32px;
    }
}

/* =============================== */
/* ABOUT ME SECTION - MIGUEL       */
/* =============================== */

.about-me {
    margin-top: 40px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--gray);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* TITULO */
.about-me h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* TEXTO */
.about-me p {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    max-width: 800px;
}

/* CONTENEDOR IMAGEN CIRCULAR */
.about-me .img-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    margin: 10px 0;
}

/* IMAGEN */
.about-me img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CENTRAR IMAGEN */
.img-center {
    margin-left: auto;
    margin-right: auto;
}

/* GRID DE FOTOS (OPCIONAL) */
.about-me-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* SOMBRA PROFESIONAL */
.about-me .img-circle {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .about-me {
        padding: 20px;
    }

    .about-me h2 {
        font-size: 22px;
        text-align: center;
    }

    .about-me p {
        font-size: 14px;
    }

    .about-me .img-circle {
        width: 120px;
        height: 120px;
    }
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
    .about-me {
        padding: 40px;
    }

    .about-me h2 {
        font-size: 32px;
    }

    .about-me .img-circle {
        width: 180px;
        height: 180px;
    }
}

/* ==============================
   STYLE CARD NEW MAIN
================================= */

.style-card-new {
    padding: 60px 0;
    background-color: #fff;
}

/* Card Layout */
.card-style {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 40px;
    padding: 30px;
    border: 1px solid #000;
    border-radius: 20px;
    max-width: 1000px;
    margin: auto;
    background-color: #fff;
}

/* Image Circle */
.card-image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #000;
}

/* Text Style */
.card-content h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .card-style {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .card-image img {
        margin: auto;
    }
}

/* ==============================
   RESET LINKS STYLE (GLOBAL)
================================= */

a {
    text-decoration: none;      /* Quita el subrayado */
    color: inherit;              /* Usa el color del texto padre */
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* Hover moderno corporativo */
a:hover {
    opacity: 0.7;
}

/* Links visitados */
a:visited {
    color: inherit;
}

/* Links activos */
a:active {
    opacity: 0.5;
}
