html {
    overflow-x: hidden
}

/* .main-banner:after {
    background: url(/wp-content/webp-express/webp-images/themes/sanchezdonate/images/sobre-mi/sobre-carlos.png.webp);
    bottom: 0;
    right: 0;
    position: absolute;
    width: 600px;
    height: 746px;
    z-index: -1;
    content: '';
    background-repeat: no-repeat
  } */

.main-banner::before {
    background: url(/noindex/about-me/assets/images/banner-left.png);
    top: 225px;
    left: 0;
    position: absolute;
    width: 194px;
    height: 667px;
    z-index: -1;
    transform: skewY(135deg);
    content: ''
}

.services::before {
    content: '';
    top: 120px;
    left: 0;
    position: absolute;
    width: 100%;
    height: 673px;
    z-index: -1;
    background-image: url(/noindex/about-me/assets/images/services-left.png);
    background-repeat: no-repeat;
    background-size: 25%
}

div#services:after {
    background: url(/noindex/about-me/assets/images/contact-left.png);
    bottom: -150px;
    right: 0;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    position: absolute;
    width: 103px;
    height: 464px;
    z-index: -1;
    content: ''
}

#apariciones:after {
    background: url(/noindex/about-me/assets/images/contact-left.png);
    bottom: -150px;
    right: 0;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    position: absolute;
    width: 103px;
    height: 464px;
    z-index: -1;
    content: ''
}

.main-banner h1 {
    font-size: 20px;
    color: var(--main);
    text-transform: uppercase;
    font-weight: 700
}

.main-banner .line-dec {
    margin: 30px 0 20px 0;
    width: 210px;
    height: 2px;
    background-color: #decdfa
}

.main-banner h2 {
    font-size: 52px;
    color: #2a2a2a;
    font-weight: 700;
    line-height: 70px;
    margin-bottom: 20px
}

.main-banner h2 em {
    font-style: normal;
    color: var(--main)
}

.main-banner h2 span,
.bluecolor {
    color: var(--third)
}

.main-banner p {
    padding-right: 25%;
    margin-bottom: 30px
}

#apariciones {
    margin-top: 72px;
    position: relative
}

#apariciones ul li {
    list-style: none;
}

#apariciones ul{
    display: grid;
    gap: 16px 24px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 2em;
}

#apariciones ul li a {
    display: grid;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align:center;
    min-height: 70px;
    width: 100%;
    background-color: #fff;
    color: var(--dark-grey);
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid var(--secondary);
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;    
}

#apariciones ul li a:hover {
    background-color: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

#apariciones ul li a:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}

div#img-sobremi {
    margin-top: 72px;
    height: calc(100vh - 144px);
    min-height: 750px;
    max-height: 1200px;
    display: flex
}

#sobremi.contendor {
    margin: 0 auto;
    width: 140ch;
    max-width: 100%;
}

.services .section-heading h2 {
    padding-right: 30px
}

.section-heading h2 {
    color: #2a2a2a;
    font-size: 30px;
    text-transform: capitalize;
    text-decoration: none;
    margin-bottom: 30px;
    line-height: 44px
}

.section-heading h2 em {
    color: var(--main);
    font-style: normal
}

.section-heading h2 span {
    color: var(--third)
}

.section-heading .line-dec {
    width: 60px;
    height: 2px;
    margin-bottom: 20px;
    background: #5500e3;
    background: linear-gradient(90deg, rgb(85 0 227) 0%, rgb(198 61 255) 100%)
}

p {
    font-size: 15px;
    line-height: 30px;
    color: var(--dark-grey);
    max-width: 800px;
    margin: auto;
}

.services .service-item {
    border: 1px solid #f3d7ff;
    border-radius: 23px;
    margin: 0 5px;
    background-color: var(--white);
    margin-bottom: 10px;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    padding-left: 10rem;
    padding-right: 10rem;
}

.cajitillas {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: stretch;
    align-items: stretch;
}

.col-10 {
  -ms-flex: 0 0 83.333333%;
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}

.col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
    margin-top: auto;
    margin-bottom: auto;
}

.row-cover {
    display: flex;
    flex-direction: row;
    height: 100%;
    align-items: flex-end;
}

.row.rowright .col-lg-6.offset-lg-6 {
    width: 70%
}

.row.rowright {
    display: flex;
    justify-content: flex-end
}

div#services {
    position: relative
}

div#services {
    position: relative;
    margin-top: 72px;
    margin-bottom: 72px
}

.icon svg {
    width: 60px;
    color: var(--main)
}

.icon {
    display: flex;
    justify-content: space-evenly;
    align-items: center
}

.service-item .icon {
    flex-shrink: 0;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.service-item details {
    width: 100%;
}

.service-item summary {
    width: 100%;
    display: flex;
    justify-content: center;
    /* Centra el h3 */
    align-items: center;
    cursor: pointer;
    padding: 1rem 0;
}

.service-item summary h3 {
    width: 100%;
    text-align: center;
    font-size: 1.2em;
    margin: 0;
    min-height: 3rem;
}

.service-item summary:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 20px
}

.carrousel {
    margin-bottom: 36px
}

.carrousel-contendor {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem auto
}

.carrousel-track {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-20%);
    background: rgb(0 0 0 / .5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: .5rem 1rem;
    cursor: pointer;
    z-index: 1
}

.nav.prev {
    left: 10px
}

.nav.next {
    right: 10px
}

.carrusel {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
    margin: 10px;
    border-radius: 20px;
    position: relative;
    width: 320px;
    height: fit-content
}

.carrusel img {
    width: -webkit-fill-available;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: 20px;
    height: 250px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0
}

.carrusel p {
    margin-top: 240px
}

.carrusel a {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: catamaran;
    border-bottom: 4px solid var(--secondary)
}

.carrusel a:after {
    background-image: unset !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    padding: 0px !important;
    margin: 0px !important;
    opacity: 0;
    transition: opacity 0.3s ease
}

.slider {
    margin-bottom: 32px
}

#sobre-mi {
    max-width: 130ch;
    margin: auto;
    margin-top: 72px;
    padding-right: 10%
}

main.about-me {
    display: flex;
    position: relative;
    overflow: visible;
}

#sobre-mi {
    background: #faf7fb99
}

img.coversobremi {
    display:block;
}

img.decorativecarlos {
    position: absolute;
    right: 0;
    top: calc(100vh - 672px);
    height: 600px;
    z-index: -1
}

section.descripcion, section#ranking {
    margin-top: 5em;
    margin-left:2em;
    text-align: left !important;
}

.descripcion h3 {
    margin:auto;
    margin-top: 30px;
    margin-bottom: 8px;
    max-width: 800px;
    text-align: left;
    color: var(--main);
}

.descripcion hr {
    margin: 25px auto;
    max-width: 800px;
}

.descripcion ul {
    margin:auto;
    max-width:800px;
    font-size: 15px;
    line-height: 30px;
    color: var(--dark-grey)
}

#trabajos h2 {
  margin: 0 auto;
  text-align: center;
}

#trabajos p {
    margin-bottom: 2em;
}

/* CSS Ranking */
.favikon-rankings {
  list-style: none;
  padding: 28px;
  margin: 0 auto;
  max-width: 760px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  margin-bottom: 2em;
}

.favikon-rankings li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 16px;
  line-height: 1.4;
}

.favikon-rankings li strong {
  min-width: 64px;
  height: 44px;
  border-radius: 14px;
  background: #eef2ff;
  color: var(--third);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.favikon-rankings li strong.top-rank {
    font-size: 24px;
    background: var(--third); 
    color: #000;    
}

.favikon-wrapper {
  display: flex;
  justify-content: center;
}

.favikon-rankings li img.icon-flag, .favikon-rankings li img.icon-rrss {
    width: auto;
    height: 16px;
    vertical-align: middle; 
    display: inline-block;
}

#ranking p {
    text-align: left;
}

@media only screen and (max-width:1400px) {
    .main-banner:after {
        background-size: 50%;
        background-position: bottom;
        background-position-x: right
    }

    img.decorativecarlos {
        filter: drop-shadow(2px 4px 6px black)
    }

    .main-banner h2 {
        line-height: 44px;
    }
}

@media only screen and (max-width:900px) {
    .contendor {
        max-width: 80ch
    }

    .main-banner:after {
        background-size: 50%;
        opacity: .78;
        filter: drop-shadow(2px 4px 6px black)
    }

    .services::before {
        display: none
    }
}

@media only screen and (max-width:746px) {
    main {
        text-align: center
    }

    .caption.header-text {
        text-align: center
    }

    .line-dec {
        margin: auto !important;
        max-width: 80%;
        text-align: left;
    }

    .main-banner p {
        padding: 0;
        width: 60ch;
        margin: auto;
        text-align: left;
    }

    .main-banner:after {
        background-size: 35%;
        opacity: .6;
        filter: drop-shadow(2px 4px 6px black);
        transform: rotate3d(1, 1, 1, 295deg);
        bottom: auto
    }

    .section-heading p {
        text-align: left;
    }

    .service-item details {
        text-align: left;
    }
    
    div#img-sobremi {
        position: relative
    }

    div#services {
        margin-top: 0
    }

    .row.rowright {
        max-width: 80%;
        margin: auto !important;
        display: block
    }

    .contendor {
        max-width: 100%
    }

    .row.rowright .col-lg-6.offset-lg-6 {
        width: 100%
    }

    .services .section-heading h2 {
        padding: 0;
        font-size: 26px
    }

    div#sobre-mi {
        padding-right: 0;
        max-width: 80%;
        width: 90%;
        min-width: 200px;
        margin: 0 auto;
        text-align: left;
    }

    img.decorativecarlos {
        position: inherit
    }

    main.about-me {
        display: block
    }

    img.decorativecarlos {
        position: inherit;
        height: 300px;
        top: auto;
        filter: none
    }

    section#apariciones {
        text-align: left
    }

    section#apariciones a {
        line-height: 1.5em
    }
    
    #tecnologias h2, #eventos h2, #apariciones h2 {
        width: 80%;
        margin: auto;
    }

     #trabajos p{
        width: 80%;
        margin: auto;
    }

    .row-cover {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .col-lg-8,
    .col-lg-4 {
        width: 100%;
        flex: 0 0 100%;
        margin: 0;
    }

    .col-lg-4 img {
        max-width: 60%;
        height: auto;
        margin: auto;
    }

    .col-10 {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .services .service-item {
        flex-direction: row;
        align-items: flex-start;
        padding: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .service-item .icon {
        margin-right: 1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .service-item summary {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0.5rem 0;
    }

    .service-item summary h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        font-size: 1.1em;
        margin: 0;
    }
    
    .service-item details p {
        margin-left: -3rem;
    }

    .favikon-rankings li {
        display: block;
    }

    #ranking {
        width: 80%;
    }
    
    #ranking p {
        text-align: left;
    }
}

@media only screen and (max-width:500px) {
    .cajitillas {
        display: flex;
        flex-direction: column;
        align-items: center
    }

    .cajitillas .col-lg-6.col-sm-6 {
        width: 100%
    }

    .main-banner:after {
        display: none
    }

    div#img-sobremi {
        margin-top: 0;
        display: inline;
        position: initial
    }

    .caption.header-text h2 {
        font-size: 1.5em;
        margin: auto;
        width: 80%
    }

    .main-banner p {
        max-width: 80%
    }

    .caption.header-text {
        margin: 72px auto
    }

    section.descripcion {
        margin: 5em auto;
        text-align: left;
    }
}

