@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&family=Turret+Road:wght@200;300;400;500;700;800&display=swap');

:root {
    --hue-color: 242;

    --skin-color: #dccf6f;
    --mirage-color: hsl(210, 10%, 23%);
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 85%);
    --body-color: hsl(var(--hue-color), 19%, 5%);
    --box-color: hsl(var(--hue-color), 14%, 10%);
    --scroll-box-color: hsl(var(--hue-color), 12%, 38%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 26%);

    --body-font: 'Poppins', sans-serif;
    --signature-font: 'Turret Road', sans-serif;

    --biggest-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;

    --font-medium: 500;
    --font-bold: 600;

    --mb025: .25rem;
    --mb05: .5rem;
    --mb075: .75rem;
    --mb1: 1rem;
    --mb15: 1.5rem;
    --mb2: 2rem;
    --mb25: 2.5rem;
    --mb3: 3rem;

    --z-fixed: 10;
    --z-modal: 100;

}

@media screen and (max-width: 1024px) {
    :root {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.5rem;
        --h2-font-size: 1.25rem;
        --h3-font-size: 1.125rem;
        --normal-font-size: .938rem;
        --small-font-size: .813rem;
        --smaller-font-size: .75rem;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, button, input { font-family: var(--body-font); font-size: var(--normal-font-size); }
    body { background-color: var(--body-color); color: var(--text-color); }
h1, h2, h3 { color: var(--title-color); font-weight: var(--font-bold); }
ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; }
    button, input { border: none; outline: none; }
.container { max-width: 1250px; margin-left: auto; margin-right: auto; }
.grid { display: grid; }
.button { 
    display: inline-flex; 
    align-items: center; 
    column-gap: .5rem; 
    background-color:#DCCF6F; 
    color: black; 
    padding: 0.75rem 1.4rem; 
    border-radius: .25rem; 
    font-weight: var(--font-medium);
    position: relative;
    z-index: 1;
    transition: .4s;
}
    .button::after { 
        position: absolute; 
        content: ''; 
        left: 0; 
        top: 0; 
        width: 100%; 
        height: 100%; 
        background-color: #DCCF6F; 
        z-index: -1;
        transform-origin: center; 
        transform: scale(0); 
        border-radius: .25rem;
        transition: .3s; 
    }
        .button:hover::after { transform: scale(1); }
.section { padding: 6.5rem 0 8rem; }
.section-title { text-align: center; font-size: var(--h1-font-size); margin-bottom: var(--mb3); }
    .section-title::before { content: attr(data-heading); display: block; font-size: var(--normal-font-size); font-weight: var(--font-medium); color: var(--skin-color); }
::-webkit-scrollbar { width: 0.6rem; background-color: var(--scroll-box-color); border-radius: .5rem; }
::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb-color); border-radius: .5rem; }

/* Sidebar */

.sidebar { position: fixed; width: 100px; height: 100vh; background-color: var(--body-color); border-right: 1px solid var(--box-color); }
.nav-logo { position: absolute; left: 0; right: 0; top: 1.8rem; width: 40px; height: 40px; border-radius: 50%; background-color: var(--skin-color); text-align: center; margin: auto; }
.nav-logo-text { font-size: 1.125rem; color: var(--title-color); font-weight: var(--font-bold); line-height: 40px; }
.nav-menu { position: fixed; transform: rotate(-90deg) translateX(-100%); transform-origin: left top; width: 100vh; }
.menu { display: flex; }
.nav-list { display: flex; flex-direction: row-reverse; margin: -2px auto 0 auto; }
.nav-link { float: right; height: 100%; line-height: 100px; padding: 0 1rem; color: var(--title-color); font-weight: var(--font-medium); position: relative; transition: .4s; }
.nav-toggle {
    height: 32px;
    width: 36px;
    cursor: pointer;
    position: fixed;
    right: 1.5rem;
    top: 2rem;
    font-size: 1.2rem;
    border-radius: .25rem;
    background-color: var(--skin-color);
    color: var(--title-color);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.nav-close { font-size: 1.5rem; position: absolute; top: 1rem; right: 1.25rem; cursor: pointer; display: none; }
    .nav-link.active-link, .nav-link:hover { color: var(--skin-color); }
        .nav-link.active-link::after, .nav-link:hover::after {
            position: absolute;
            content: '';
            width: 6px;
            height: 6px;
            background-color: var(--skin-color);

            bottom: 1.8rem;
            left: 0;
            right: 0;
            margin: auto;
        }
.btn-share { position: absolute; bottom: 1.8rem; left: 0; right: 0; text-align: center; cursor: pointer; }
.social-share { font-size: 1.5rem; }

/* Main - Home */

/* Video de fondo */
#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* para que cubra toda la pantalla */
  z-index: -1;        /* se queda detrás del contenido */
}
.home {
  position: relative; /* importante para que el video quede debajo */
  height: 100vh;
  overflow: hidden;
}
.home::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
}

/*.home { background: url('https://www.interoleo.com/wp-content/uploads/2025/08/fondo.jpg'); background-size: cover; background-position: center center; height: 100vh; }*/
.home-container { position: relative; height: 85%; align-items: center; }
.home-social { position: absolute; top: 1.8rem; left: 0; display: flex; align-items: center; column-gap: 3.5rem; color:black }
.home-social-follow { font-weight: var(--font-medium); position: relative; }
.home-social-follow::after { content: ''; position: absolute; width: 1rem; height: 2px; background-color:transparent; right: -45%; top: 50%; }
.home-social-links { display: inline-flex; column-gap: 1rem; }
.home-social-link { font-size: 1.08rem; color: var(--text-color); transition: .4s; }
.home-social-link:hover { transform: translateY(.25rem); }
.home-img { display: none; }
.home-title{
  font-size:85px;
  font-weight:800;
  color:#dccf6f;                  /* dorado */
  -webkit-text-fill-color:#dccf6f;
  text-shadow:
    1px  0   0 #000, -1px 0   0 #000,
    0   1px  0 #000,  0  -1px 0 #000,
    1px  1px 0 #000, -1px 1px 0 #000,
    1px -1px 0 #000, -1px -1px 0 #000;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

.home-subtitle { font-size: 50px; font-weight: var(--font-medium); margin-bottom: var(--mb075); }
.home-description { max-width: 450px; margin-bottom: var(--mb2); }
.my-info { display: flex; column-gap: 1.8rem; position: absolute; left: 0; bottom: 1.8rem; }
.info-item { display: flex; align-items: center; }
.info-title, .info-subtitle { font-size: var(--small-font-size); }
    .info-title { font-weight: var(--font-medium); }
.info-icon { font-size: 1.8rem; color: var(--skin-color); margin-right: var(--mb075); }

/* Main - About */

.about-container { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; align-items: center; }
.about-img { width: 480px; border-radius: .75rem; justify-self: center; }
.about-heading { font-size: var(--h3-font-size); margin-bottom: var(--mb075); }
.about-description { text-align: justify; padding-right: 6rem; margin-bottom: var(--mb2); }
.about-info { display: grid; grid-template-columns: repeat(3, 140px); column-gap: .5rem; margin-bottom: var(--mb3); }
.about-box { text-align: center; border-radius: .25rem; padding: 1rem 1.25rem; background-color: var(--box-color); }
.about-icon { font-size: 1.5rem; color: var(--skin-color); margin-bottom: var(--mb075); }
.about-title { font-size: var(--small-font-size); }
.about-subtitle { font-size: var(--small-font-size); }

/* Main - Qualification */

.qualification-container { grid-template-columns: repeat(2 ,340px); column-gap: 3rem; justify-content: center; }
.qualification-title { font-size: var(--h3-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb2); }
.timeline-item { position: relative; margin-bottom: var(--mb25); padding-left: 3rem; }
    .timeline-item:last-child { margin-bottom: 0; }
    .timeline-item::before { content: ''; width: 1px; position: absolute; left: 0.48rem; top: 0; height: 100%; background-color: var(--skin-color); }
.circle-dot { position: absolute; left: 0; top: 0; height: 1rem; width: 1rem; border: 2px solid var(--skin-color); border-radius: 50%; background-color: var(--skin-color); transition: .4s; }
    .timeline-item:hover .circle-dot { background-color: var(--body-color); }
.timeline-title { font-size: var(--normal-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb025); }
.timeline-text { font-size: var(--smaller-font-size); margin-bottom: var(--mb1); }
.timeline-date { display: flex; align-items: center; column-gap: .4rem; font-size: var(--normal-font-size); color: var(--skin-color); }

/* Main - Skills */ 

.skills-container { grid-template-columns: 360px 320px; column-gap: 3rem; justify-content: center; }
.skills-header { display: flex; align-items: center; cursor: pointer; }
    .skills-header:not(:last-child) { margin-bottom: var(--mb25); }
.skills-icon, .skills-arrow { font-size: 2rem; color: var(--skin-color); }
    .skills-icon { margin-right: var(--mb075); }
    .skills-arrow { margin-left: auto; }
        .skills-active .skills-arrow { transform: rotate(-90deg); transition: .4s; }
.skills-title { font-size: var(--h3-font-size); font-weight: var(--font-medium); }
.skills-subtitle { font-size: var(--small-font-size); }
.skills-list { row-gap: 1.8rem; }
.skills-titles { display: flex; justify-content: space-between; margin-bottom: var(--mb05); }
.skills-name { font-size: var(--normal-font-size); font-weight: var(--font-medium); }
.skills-bar, .skills-percentage { height: 5px; border-radius: .25rem; }
    .skills-bar { background-color: var(--box-color); }
    .skills-percentage { display: block; background-color: var(--skin-color); }
.skills [data-content] { display: none; }
    .skills-active[data-content] { display: block; }

/* Main - Work */ 

.work-container { grid-template-columns: repeat(3, 330px); gap: 1.8rem; justify-content: center; padding-top: 1rem; }
.work-filters { display: flex; justify-content: center; align-items: center; column-gap: .75rem; margin-bottom: 2rem; }
.work-item { cursor: pointer; color: var(--title-color); padding: 0.25rem .75rem; font-weight: var(--font-medium); border-radius: .5rem; }
.work-card { background-color: var(--box-color); padding: 1.25rem; border-radius: .5rem; }
.portfolio-item-details { display: none; }
.work-img { border-radius: .5rem; margin-bottom: var(--mb1); }
.work-title { font-size: var(--normal-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb05); }
.work-button { color: var(--skin-color); font-size: var(--small-font-size); display: flex; align-items: center; column-gap: .25rem; cursor: pointer; }
.work-button-icon { font-size: 1rem; transition: .4s; }
    .work-button:hover .work-button-icon { transform: translateX(.25rem); }
.active-work { background-color: var(--skin-color); color: var(--title-color); }

.portfolio-popup { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: rgba(0, 0, 0, .5); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0 1rem;
    opacity: 0;
    visibility: hidden; 
    z-index: var(--z-modal); 
    transition: .4s; 
}
.portfolio-popup.open { opacity: 1; visibility: visible; }
.portfolio-popup-inner { background-color: var(--box-color); width: 900px; border-radius: .5rem; padding: 2.5rem; position: relative; }
.portfolio-popup-content { grid-template-columns: repeat(2, 1fr); align-items: center; column-gap: 3rem; }
.portfolio-popup-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; color: var(--skin-color); cursor: pointer; }
.portfolio-popup-img { border-radius: .5rem; }
.portfolio-popup-subtitle { font-size: var(--smaller-font-size); margin-bottom: var(--mb025); }
.details-title { font-size: var(--h3-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb1); }
.details-description { font-size: var(--small-font-size); margin-bottom: var(--mb2); }
.details-info li { margin-bottom: var(--mb075); text-transform: capitalize; font-size: var(--small-font-size); }
    .details-info li:last-child { margin-bottom: 0; }
    .details-info li span { font-weight: normal; }
    .details-info li a { text-transform: lowercase; color: var(--skin-color); }

/* Main - Services */ 

.services-container { grid-template-columns: repeat(3, 250px); justify-content: center; column-gap: 1.8rem; }
.services-content { position: relative; background-color: var(--box-color); padding: 6rem 0 2rem 2.5rem; border-radius: .25rem; }
.services-icon { display: block; font-size: 1.8rem; color: var(--skin-color); margin-bottom: var(--mb1); }
.services-title { font-size: var(--h3-font-size); margin-bottom: var(--mb1); font-weight: var(--font-medium); }
.services-button { color: var(--skin-color); font-size: var(--small-font-size); display: flex; align-items: center; column-gap: .25rem; cursor: pointer; }
.services-button-icon { font-size: 1rem; transition: .4s; }
    .services-button:hover .services-button-icon { transform: translateX(.25rem); }
.services-modal {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: rgba(0, 0, 0, .5); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0 1rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden; 
    transition: .4s;
}
.active-modal { opacity: 1; visibility: visible; }
.services-modal-content { width: 500px; position: relative; background-color: var(--box-color); padding: 4.5rem 2.5rem 2.5rem; border-radius: .5rem; }
.services-modal-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; color: var(--skin-color); cursor: pointer; }
.services-modal-title, .services-modal-description { text-align: center; }
    .services-modal-title { font-size: var(--h3-font-size); font-weight: var(--font-medium); margin-bottom: var(--mb1); }
    .services-modal-description { font-size: var(--small-font-size); padding: 0 3.5rem; margin-bottom: var(--mb2); }
.services-modal-services { row-gap: var(--mb075); }
.services-modal-service { display: flex;column-gap: .5rem; }
.services-modal-icon { color: var(--skin-color); font-size: 1.1rem; }
.services-modal-info { font-size: var(--small-font-size); }

/* Main - Testimonials */

@media screen and (min-width: 992px) {
    .testimonials-container { width: 750px; margin-left: auto !important; margin-right: auto !important; }
    .home-title {font-size: 85px;}
    
}

.testimonial-card { background-color: var(--box-color); padding: 1.8rem 2rem; border-radius: .5rem; margin-bottom: 3rem; }
.testimonial-quote { display: inline-flex; font-size: 1.5rem; color: var(--skin-color); margin-bottom: var(--mb1); }
.testimonial-description { margin-bottom: var(--mb1); font-size: var(--small-font-size); text-align: justify; }
.testimonial-date { font-size: var(--normal-font-size); margin-bottom: var(--mb2); }
.testimonial-profile { display: flex; align-items: center; column-gap: 1rem; }
.testimonial-profile-img { width: 60px; height: 60px; border-radius: 3rem; }
.testimonial-profile-name { font-size: var(--h3-font-size); font-weight: var(--font-medium); color: var(--title-color); }
.testimonial-profile-detail { font-size: var(--small-font-size); display: block; }
.testimonial-profile-data { display: flex; flex-direction: column; row-gap: .4rem; }

/* Swiper */

.swiper-pagination-bullet { background-color: var(--box-color); }
.swiper-pagination-bullet-active { background-color: var(--skin-color); }

/* Main - Contact */

.contact-container { grid-template-columns: 300px 340px; column-gap: 3rem; justify-content: center; align-items: center; }
.contact-info { display: grid; row-gap: 1rem; }
.contact-card { background-color: var(--box-color); padding: 1rem; border-radius: .5rem; text-align: center; }
.contact-card-icon { font-size: 1.8rem; color: var(--title-color); margin-bottom: var(--mb025); }
.contact-card-title, .contact-card-data { font-size: var(--small-font-size); }
    .contact-card-title { font-weight: var(--font-medium); }
    .contact-card-data { display: block; margin-bottom: var(--mb075); }
.contact-button { color: var(--skin-color); font-size: var(--small-font-size); display: flex; align-items: center; justify-content: center; column-gap: .25rem; cursor: pointer; }
.contact-button-icon { font-size: 1rem; transition: .4s; }
    .contact-button:hover .contact-button-icon { transform: translateX(.25rem); }
.input-container { position: relative; margin-top: 1rem; margin-bottom: 1.9rem; }
.input { 
    width: 100%; 
    border: 2px solid var(--text-color); 
    background-color: transparent; 
    padding: 0.6rem 1.2rem; 
    color: var(--title-color); 
    font-weight: var(--font-medium); 
    font-size: var(--normal-font-size); 
    letter-spacing: .5px; 
    border-radius: .5rem;
    outline: none; 
    transition: .4s; 
}
textarea.input { padding: 0.8rem 1.2rem; min-height: 140px; border-radius: .5rem; resize: none; font-family: var(--body-font); }
    .input-container label {
        position: absolute;
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
        padding: 0 .4rem;
        color: var(--text-color);
        font-size: 1rem;
        font-weight: var(--font-medium);
        pointer-events: none;
        z-index: 15;
        transition: .5s;
    }
        
        .input-container.textarea label { top: 1rem; transform: translateY(0); }
    .input-container span { 
        position: absolute; 
        top: 0; 
        left: 25px; 
        transform: translateY(-50%); 
        font-size: var(--small-font-size); 
        padding: 0 .4rem; 
        pointer-events: none; 
        z-index: var(--z-fixed); 
        color: transparent; 
    }
        .input-container span::before, .input-container span::after { 
            content: '';
            position: absolute;
            width: 10%;
            opacity: 0;
            height: 5px;
            background-color: var(--body-color);
            top: 50%;
            transform: translateY(-50%);
            transition: .4s;
        }
            .input-container span::before { left: 50%; }
            .input-container span::after { right: 50%; }
            .input-container.focus label { top: 0; transform: translateY(-50%); left: 25px; font-size: var(--smaller-font-size); }
                .input-container.focus span::before, .input-container.focus span::after  { width: 50%; opacity: 1; }

/* Footer */

.footer { padding-top: 2rem; }
.footer-container { grid-template-columns: repeat(3, 1fr); column-gap: 1.6rem; }
.footer-bg { background-color: var(--box-color); padding: 3rem 0 3.5rem; }
.footer-title { font-size: var(--h1-font-size); margin-bottom: var(--mb025); }    
.footer-subtitle { font-size: var(--small-font-size); }
.footer-links { display: flex; justify-self: center; column-gap: 2rem; }
    .footer-links:hover { color: var(--skin-color); }
.footer-socials { justify-self: flex-end; }
.footer-social { font-size: 1.25rem; margin-right: var(--mb15); }
    .footer-social:hover { color: var(--skin-color); }
.footer-copy { font-size: var(--smaller-font-size); text-align: center; margin-top: 4.5rem; }
    .footer-copy a { font-family: var(--signature-font); } 
        .footer-copy a:hover { color: var(--skin-color); }
    .footer-title, .footer-subtitle, .footer-links, .footer-social, .footer-copy a { color: var(--title-color); }

/* Media Queries */

@media screen and (max-width: 1408px) {
    .container { margin-left: var(--mb25); margin-right: var(--mb25); }
}

@media screen and (max-width: 1216px) {
    .about-container { column-gap: 2.5rem; }
    .about-description { padding-right: 0; }
    .work-container { grid-template-columns: repeat(2, 330px); gap: 3rem; }
}

@media screen and (max-width: 1024px) {
    .container { margin-left: var(--mb15); margin-right: var(--mb15); }
    .sidebar { width: 100%; z-index: 999; transform: translateX(-100%); }
    .show-sidebar { transform: translateX(0); }
    .nav-logo, .btn-share { display: none; }
    .nav-menu { height: 100%; width: 100%; transform: rotate(0deg) translateX(0); display: flex; justify-content: center; }
    .nav-list { flex-direction: column; height: 100%; justify-content: center; align-items: center; }
    .nav-link { padding: 1rem 0; line-height: 1.5; }
        .nav-link.active-link::after, .nav-link:hover::after { bottom: 0; }
    .nav-close { display: block; }
    .nav-toggle { display: flex; }

    .main { margin-left: 0; }

    .about-container { grid-template-columns: 1fr; row-gap: 2.5rem; }
    .about-img { width: 350px; }
    .about-data { text-align: center; }
    .about-info { justify-content: center; }
    .about-box { padding: 0.75rem .5rem; }
    .about-description { padding: 0 4rem; text-align: center; }

    .qualification-container { grid-template-columns: repeat(2, 290px); }
    .skills-container { grid-template-columns: 340px 300px; }
    .skills-list { row-gap: 1.7rem; }

    .work-card { padding: 1rem; }
    .work-img { margin-bottom: var(--mb075); }
    .work-title { margin-bottom: var(--mb025); }

    .services-container { grid-template-columns: repeat(3, 220px); }

    .testimonial-card { padding: 1.25rem 1.5rem; }

    .portfolio-item-details { margin-bottom: var(--mb15); }
    .details-info li { margin-bottom: var(--mb05); }
    .details-title { margin-bottom: var(--mb075); }
}

@media screen and (max-width: 768px) {
    .about-img { width: 250px; }
    .qualification-container { grid-template-columns: 290px; row-gap: 3rem; }
    .skills-container { grid-template-columns: 300px; row-gap: 3rem; }
    .work-container { grid-template-columns: 330px; }

    .services-container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .services-content { padding: 3.5rem .5rem 1.25rem 1.5rem; }
    .services-icon { font-size: 1.5rem; }

    .contact-container { grid-template-columns: 360px; row-gap: 3rem; }
    .footer-container { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
    .footer-socials { justify-self: start; }
    .footer-links { flex-direction: column; row-gap: 1.5rem; }
    .footer-bg { padding: 2rem 0 3rem; }
    .footer-copy { margin-top: var(--mb3); }

    .portfolio-popup-inner { width: 420px; padding: 2.8rem 1.5rem 2.5rem; }
    .portfolio-popup-content { grid-template-columns: 1fr; row-gap: 1.6rem; }
    .details-title { font-size: var(--normal-font-size); }
    .portfolio-popup-close { top: .5rem;  }
}

@media screen and (max-width: 576px) {
    .nav-toggle { right: initial; left: 1.5rem; }
    .home { background-image: none; height: initial; align-items: initial; padding: 7rem 0 2rem; }
    .home-container { row-gap: 2rem; }
    .home-img { display: block; width: 250px;         margin-right: 90px;justify-self: center; }
    .my-info { display: none; }
    .home-social { left: initial; right: -1rem; flex-direction: column; row-gap: 3.5rem; }
    .home-social-follow { font-size: var(--smaller-font-size); transform: rotate(90deg); }
    .home-social-links { flex-direction: column; row-gap: .25rem; }
    .home-social-link { font-size: var(--normal-font-size); }

    .about-info { grid-template-columns: repeat(3, 1fr); }
    .about-description { padding: 0; }

    .services-modal-content { padding: 4.5rem 1.5rem 2.5rem; }
    .services-modal-description { padding: 0; }

    .work-container, .contact-container { grid-template-columns: 300px; }

    .footer-container { grid-template-columns: 1fr;  }
    .footer-links { justify-self: flex-start; }

}

@media screen and (max-width: 350px) {
    .container { margin-left: var(--mb1); margin-left: var(--mb1); }
    .home-img { width: 200px; margin-right: 90px;}
    .home-title { font-size: 100px; }
    .home-subtitle { font-size: var(--normal-font-size); }
    
    .about-info { grid-template-columns: repeat(2, 1fr); row-gap: .5rem; }
    .work-container, .skills-container, .qualification-container, .contact-container { grid-template-columns: 1fr; }
    .skills-title { font-size: var(--normal-font-size); }
    .work-item { font-size: var(--normal-font-size); }
    .work-filters { column-gap: .25rem; }
    .services-container { grid-template-columns: max-content; }
    .services-content { padding-right: 3.5rem; }
}


.primary-menu-wrapper .nav > li > a {
  font-size: 16px;  /* o el número que prefieras */
}


.navbar-nav {
    display: flex
;
    font-weight: 400;
    flex-wrap: wrap;
    justify-content: center;
}


section#contact {
    background-color: #778c43;
}
section.testimonials.section {
    background-color: #586e26;
}

section#services {
    background-color: #445a14;
}
section#work {
    background-color: #3b5110;
}

section#experiencia {
    background-color: #31470b;
}

section#reconocimientos {
    background-color: #283e06;
}

section#about {
    background-color: #202500;
}







/* === DIFUMINADOS ENTRE SECCIONES === */

/* De #202500 → #283e06 */
section#about::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #202500 0%, #283e06 100%);
}

/* De #283e06 → #31470b */
section#reconocimientos::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #283e06 0%, #31470b 100%);
}

/* De #31470b → #3b5110 */
section#experiencia::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #31470b 0%, #3b5110 100%);
}

/* De #3b5110 → #445a14 */
section#work::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #3b5110 0%, #445a14 100%);
}

/* De #445a14 → #586e26 */
section#services::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #445a14 0%, #586e26 100%);
}

/* De #586e26 → #778c43 */
section.testimonials.section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #586e26 0%, #778c43 100%);
}

/* Asegura que cada sección tenga posición relativa */
section {
  position: relative;
  overflow: hidden;
}



/* === MENÚ RESPONSIVE (WordPress) === */

/* Desktop: el menú se muestra normal */
.primary-menu-wrapper {
  display: block;
}

/* Botón hamburguesa visible en móvil (ya lo tienes, refuerzo) */
/* ===== FIX PANE LATERAL EN MÓVIL (no se veía nada) ===== */
@media (max-width:1024px){
  /* El panel lateral: ancho y visibilidad clara */
  .primary-menu-wrapper{
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 82vw;                /* ancho del panel */
    max-width: 420px;
    background: #101218;        /* fondo oscuro */
    color: #fff;
    transform: translateX(100%);/* oculto por defecto */
    transition: transform .35s ease;
    z-index: 100000;            /* por encima de todo */
    padding: 1rem 1rem 2rem;
    overflow-y: auto;

    /* Anula bootstrap collapse que lo escondía */
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
  /* Si estás logueado, no tapes el admin bar */
  body.admin-bar .primary-menu-wrapper{
    top: 46px;                           /* altura admin bar en móvil */
    height: calc(100vh - 46px);
  }

  /* Abierto */
  .primary-menu-wrapper.is-open{
    transform: translateX(0);
  }

  /* Estructura interior visible y en columna */
  .primary-menu-wrapper > ul,
  .primary-menu-wrapper .nav,
  .primary-menu-wrapper .sub-menu{
    display: flex !important;
    flex-direction: column;
    gap: .25rem;
  }

  /* Enlaces legibles */
  .primary-menu-wrapper a{
    color: #fff !important;
    display: block;
    padding: .9rem .6rem;
    text-decoration: none;
  }

  /* Submenús SIN posición absoluta en móvil (evita superposición) */
  .primary-menu-wrapper .sub-menu{
    position: static !important;
    display: none !important;            /* cerrado por defecto */
    margin: .25rem 0 .75rem 0;
    padding-left: 1rem;
    border-left: 2px solid rgba(220,207,111,.25);
    box-shadow: none !important;
    background: transparent !important;
    z-index: auto;
  }
  .primary-menu-wrapper li.is-expanded > .sub-menu{
    display: block !important;           /* abre y empuja contenido */
  }

  /* Cabecera del padre con caret a la derecha */
  .primary-menu-wrapper li.menu-item-has-children > a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-right: .5rem;
  }
}

/* Escritorio: comportamiento clásico (hover) */
@media (min-width:1025px){
  .primary-menu-wrapper .sub-menu{ display:none; position:absolute; }
  .primary-menu-wrapper li:hover > .sub-menu{ display:block; }
}


/* Bloquea scroll del body cuando el menú está abierto (opcional) */
body.menu-open{
  overflow: hidden;
}
/* Escritorio: submenús ocultos por defecto y visibles al hover */
@media (min-width:1025px){
  .primary-menu-wrapper .sub-menu{
    display: none;
    position: absolute; /* típico mega/menú */
  }
  .primary-menu-wrapper li:hover > .sub-menu{
    display: block;
  }
}






/* ========== Responsive sólido para móvil ========== */

/* 1) Ajustes base para pantallas pequeñas (teléfonos) */
@media (max-width: 480px), (max-width: 568px) and (orientation: landscape) {

  /* Botón hamburguesa: objetivo táctil cómodo y fijo */
  .nav-toggle{
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    z-index: 100001;
  }

  /* Panel lateral */
  .primary-menu-wrapper{
    position: fixed;
    top: env(safe-area-inset-top);
    right: 0; bottom: 0;
    width: min(92vw, 380px);             /* más ancho en móviles estrechos */
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 100000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
  body.admin-bar .primary-menu-wrapper{
    top: calc(env(safe-area-inset-top) + 46px);  /* admin bar WP en móvil */
    height: calc(100vh - 46px - env(safe-area-inset-top));
  }
  .primary-menu-wrapper.is-open{ transform: translateX(0); }

  /* Acordeón: sin superposición */
  .primary-menu-wrapper .sub-menu{
    position: static !important;
    display: none !important;
    margin: .25rem 0 .65rem;
    padding-left: .9rem;
    border-left: 2px solid rgba(220,207,111,.25);
    box-shadow: none !important;
    background: transparent !important;
  }
  .primary-menu-wrapper li.is-expanded > .sub-menu{
    display: block !important;
  }

  /* Enlaces más legibles y tocables */
  .primary-menu-wrapper a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem .6rem;
    font-size: clamp(.94rem, 3.2vw, 1.05rem);
  }

  /* Hero: tipografía fluida para que no tape la pantalla */
  .home__title,
  .hero h1,
  .hero .title{
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    line-height: 1.05;
    margin: 0 .5rem;
  }
  .home__subtitle,
  .hero h2{
    font-size: clamp(1rem, 4.6vw, 1.2rem);
    line-height: 1.2;
    margin: .35rem .5rem 0;
  }

  /* Evita saltos por la aparición de la barra de scroll */
  html { overflow-y: scroll; }
  body.menu-open{ overflow: hidden; overscroll-behavior: contain; }
}

/* 2) Phablets/tablets pequeñas (≥481px y ≤768px) */
@media (min-width: 481px) and (max-width: 768px){

  .nav-toggle{
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    width: 44px; height: 44px;
    border-radius: 12px;
    z-index: 100001;
  }

  .primary-menu-wrapper{
    position: fixed;
    top: env(safe-area-inset-top);
    right: 0; bottom: 0;
    width: min(78vw, 440px);             /* un poco más estrecho en phablet */
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 100000;
    display: block !important;
  }
  body.admin-bar .primary-menu-wrapper{
    top: calc(env(safe-area-inset-top) + 46px);
    height: calc(100vh - 46px - env(safe-area-inset-top));
  }
  .primary-menu-wrapper.is-open{ transform: translateX(0); }

  .primary-menu-wrapper a{
    padding: 1rem .9rem;
    font-size: clamp(1rem, 2.4vw, 1.1rem);
  }

  .home__title,
  .hero h1,
  .hero .title{
    font-size: clamp(2.2rem, 6.6vw, 3rem);
  }
  .home__subtitle,
  .hero h2{
    font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  }
}

/* 3) Solo táctiles (mejora de intención) */
@media (hover: none) and (pointer: coarse){
  .primary-menu-wrapper a{ -webkit-tap-highlight-color: transparent; }
}

/* 4) Modo reducido de movimiento */
@media (prefers-reduced-motion: reduce){
  .primary-menu-wrapper{ transition: none !important; }
}




@media (max-width: 400px) {
.home-title {    font-size: 60px;
}
    .home-social {
    right: -4rem;
    }
	

}