html, body {
    overflow-x: hidden;
}


/* Header */
.custom-header {
    position: relative;
    height: 228px;
    background-color: white;
    overflow: hidden;
}

/* Forma roja */
.shape-red {
    position: absolute;
    top: -50px;
    left: 0;
    width: 150%;
    height: 300px;
    background-color: #ff5757;
    clip-path: polygon(35% 0, 75% 19%, 99% 84%, 0 17%);
    z-index: 1;
}

/* Forma azul */
.shape-blue {
    position: absolute;
    bottom: 17%;
    left: 3%;
    width: 100%;
    height: 150px;
    background-color: #4a69ff;
    clip-path: polygon(18% 2%, 50% 27%, 0 100%);
    z-index: 1;
}

/* Forma amarilla */
.shape-yellow {
    position: absolute;
    top: 0;
    left: -25%;
    width: 50%;
    height: 200px;
    background-color: #ffe066;
    clip-path: polygon(46% 0%, 47% 100%, 101% -2%);
    z-index: 1;
}

/* Logo */
.logo-container {
    position: absolute;
    top: 47%;
    left: 3%;
    z-index: 2;
    height: 29px;
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    max-width: 49%; 
    height: auto; 
}

.problem-solving,
.servicios,
.sobreMi,
.testimonios {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Secciones visibles */
.problem-solving.visible,
.servicios.visible,
.sobreMi.visible,
.testimonios.visible {
    opacity: 1;
    transform: translateY(0);
}



.main-section {
    position: relative;
    height: 90vh;
    background: url('image/bg_main.WebP') no-repeat top center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: fadeIn 2s ease-in-out;
    top: -197px;
}

.main-section .content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.text-container {
    position: absolute;
    width: 54%;
    left: 47%;
    top: 27%;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow-y: auto; 
    max-height: 100%; 
    padding: 10px; 
    box-sizing: border-box; 
}

.btn_contact{
    position: absolute;
    width: 30%;
    left: 47%;
    top: 48%;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.button_contact {
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    padding-block: 0.5rem;
    padding-inline: 1.25rem;
    background-color: rgb(0 107 179);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffff;
    gap: 10px;
    font-weight: bold;
    border: 3px solid #ffffff4d;
    outline: none;
    overflow: hidden;
    font-size: 15px;
    width: 85%;
    margin-left: 10px;
  }
  
  .icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease-in-out;
  }
  
  .button_contact:hover {
    transform: scale(1.05);
    border-color: #fff9;
  }
  
  .button_contact:hover .icon {
    transform: translate(4px);
  }
  
  .button_contact:hover::before {
    animation: shine 1.5s ease-out infinite;
  }
  
  .button_contact::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0) 70%
    );
    top: 0;
    left: -100px;
    opacity: 0.6;
  }
  
  @keyframes shine {
    0% {
      left: -100px;
    }
  
    60% {
      left: 100%;
    }
  
    to {
      left: 100%;
    }
  }

  .button_me {
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    background-color: var(--clr); 
    color: #fff;
    border-radius: 10rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease-in-out; 
    margin-top: 17px;
    width: 85%;
    max-width: 512px;
    margin-left: 10px;
    border: 3px solid #9f5ce6; 
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); 
}

.button_me:hover {
    background-color: #7845af; 
    border-color: #b288f5; 
    transform: translateY(-5px); 
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3); 
}

.button__icon-wrapper {
    flex-shrink: 0;
    width: 19px;
    height: 20px;
    position: relative;
    color: var(--clr);
    background-color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    left: 59.5%;
}

.button__icon-svg--copy {
    position: absolute;
    transform: translate(-150%, 150%);
}

.button_me:hover .button__icon-svg:first-child {
    transition: transform 0.3s ease-in-out;
    transform: translate(150%, -150%);
}

.button_me:hover .button__icon-svg--copy {
    transition: transform 0.3s ease-in-out 0.1s;
    transform: translate(0);
}

  
.action-container {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-button {
    padding: 15px 30px;
    background-color: #ff5733;
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #c44226;
}



.h2-text, .typewriter-text {
    display: inline-block;
    overflow: hidden;
    border-right: 0; 
}

.h2-text {
    font-size: 3em;
    font-weight: bold;
    animation: fadeIn 2.5s ease-in-out; 
}

.typewriter-text {
    font-size: 1.5em;
    animation: fadeIn 3.5s ease-in-out; 
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}



/* Estilos generales */
.problem-solving {
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
}

.problem-solving h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
}


.problems-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
}

.problem-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.problem-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}


.problem-item img {
    width: 60px; 
    height: 60px;
    margin-bottom: 15px;
}

.problem-item h3 {
    font-size: 1.5rem;
    color: #4a69ff; 
    margin-bottom: 10px;
}

.problem-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}


@media (max-width: 1024px) {
    .problems-container {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }

    .problem-item h3 {
        font-size: 1.25rem;
    }
}

.servicios{
    max-width: 1981px;
}
.servicios h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #007bff;
}

.card-text {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #555;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.sobreMi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.sobreMi .info {
    width: 50%;
    padding-right: 20px;
}

.sobreMi .info h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.sobreMi .info p {
    font-size: 1.2em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sobreMi .info .btn {
    display: inline-flex;
    align-items: center;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.sobreMi .info .btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.sobreMi .info .btn-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%; 
    transition: transform 0.3s ease;
}

.sobreMi .info .btn:hover .btn-logo {
    transform: rotate(360deg); 
}


.sobreMi .imagen {
    width: 50%;
    text-align: center;
}

.sobreMi .imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}


/*Servicios  */
.servicios .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; 
    min-height: 400px; 
}

.servicios .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.servicios .card-body h3 {
    margin-bottom: 15px;
}

.servicios .card-body p {
    flex-grow: 1;
}

.servicios .card-body .btn {
    margin-top: auto; 
}


/*Alianzas  */ 

.alianzas {
    padding: 50px 0;
    background-color: #f4f4f4;
    text-align: center;
}

.alianzas h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.alianzas .logos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

.alianzas .logo-item {
    width: 100%;
    max-width: 200px;
    transition: transform 0.3s ease;
}

.alianzas .logo-item img {
    width: 100%;
    height: auto;
     border-radius: 28px;
}

.alianzas .logo-item:hover {
    transform: scale(1.05);
}

.testimonios {
    text-align: center;
    padding: 50px;
    background-color: #f9f9f9;
}

.testimonios h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.testimonios-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.testimonio {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    text-align: left;
}

.testimonio .usuario {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonio .usuario img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonio .usuario h3 {
    font-size: 1.2em;
    margin: 0;
}

.testimonio p {
    font-size: 1em;
    line-height: 1.6;
}



footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #ff5733;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
/*Entradas del blog */

.blog-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-title {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Letras negras */
.blog-title .black-text {
    color: black;
}

/* Letras azules */
.blog-title .blue-text {
    color: blue;
}

.main-content {
    display: flex;
    gap: 20px;
    margin: 50px auto;
    max-width: 1200px;
}

.main-image {
    width: 65%;
    position: relative;
}

.main-image img {
    width: 90%;
    border-radius: 8px;
    max-height: 410px;
}

.secondary-content {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.secondary-content img {
width: 100%;
    max-height: 170px;
    border-radius: 8px;
}

.cta-button {
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    display: inline-block;
    text-align: center;
    margin-top: 15px;
    text-decoration: none;
}

.main-text {
    font-size: 18px;
    margin-top: 10px;
}

.secondary-title {
    font-weight: bold;
    margin-top: 5px;
}

.secondary-region {
    color: grey;
    font-size: 14px;
}


/* Manchas para la sección problem-solving */
section.problem-solving {
    position: relative;
}

section.problem-solving::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 204, 153, 0.7); 
    border-radius: 50%;
    z-index: -1;
}

section.problem-solving::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: rgba(102, 153, 255, 0.7); 
    border-radius: 50%;
    z-index: -1;
}

/* Manchas para la sección servicios */
section.servicios {
    position: relative;
}

section.servicios::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 102, 102, 0.7); 
    border-radius: 50%;
    z-index: -1;
}

section.servicios::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: rgba(51, 153, 255, 0.7); 
    border-radius: 50%;
    z-index: -1;
}

/* Manchas para la sección sobreMi */
section.sobreMi {
    position: relative;
}

section.sobreMi::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -70px;
    width: 170px;
    height: 170px;
    background: rgba(255, 255, 102, 0.7); 
    border-radius: 50%;
    z-index: -1;
}

section.sobreMi::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(153, 102, 255, 0.7); 
    border-radius: 50%;
    z-index: -1;
}

/* Manchas para la sección testimonios */
section.testimonios {
    position: relative;
}

section.testimonios::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: rgba(102, 255, 153, 0.7); 
    border-radius: 50%;
    z-index: -1;
}

section.testimonios::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 153, 204, 0.7); 
    border-radius: 50%;
    z-index: -1;
}

.no-link-style {
    text-decoration: none; 
    color: inherit; 
}

.main-text, .secondary-title {
    color: #000;  
    font-weight: bold; 
}
/* Footer*/
  .footer_one {
    background-color: rgb(35, 39, 51);
    padding: 60px 0; 
    margin-top: 30px;
}

.footer_one h4 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 25px;
}

.footer_one p {
    font-size: 14px;
    font-family: "Nunito";
    color: #98a2aa;;
    line-height: 2.143;
    margin-bottom: 0;
}

.footer_about_widget, .footer_qlink_widget, .footer_contact_widget, .footer_social_widget {
    margin-bottom: 30px;
}

.footer_qlink_widget ul, .footer_contact_widget ul {
    padding-left: 0;
}

.footer_qlink_widget a, .footer_contact_widget a {
    color: #8a99b3; 
    text-decoration: none;
    transition: color 0.3s;
    line-height: 2.429;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.footer_qlink_widget a:hover, .footer_contact_widget a:hover {
    color: #fffffe; 
}

.footer_social_widget .list-inline-item a {
    Font-size: 14px;
    font-family: "Nunito";
    color: #96a8c8;

}

.footer_social_widget .list-inline-item a:hover {
    color: #ffffff; 
}
@media (min-width: 1027px) and (max-width: 1280px) {
    .text-container {
        width: 60%; 
        left: 40%; 
        top: 30%;   
    }

    .btn_contact {
        width: 35%;  
        left: 45%;  
        top: 50%;    
    }

    .button_contact, .button_me {
        width: 90%;  
        margin-left: 5%; 
    }

    .button__icon-wrapper {
        left: 50%;  
    }


    .h2-text {
        font-size: 2.5em;
    }

    .typewriter-text {
        font-size: 1.4em;
    }
}
@media (max-width: 1024px) { /* Tablet */
    .btn_contact{
     width: 55%;
     left: 46%;
     top: 65%;
 
    }
    .button__icon-wrapper{
     left: 56.5%;
    }
 }

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .floating-logos {
        transform: translateX(-120%);
    }

    .floating-logos.show {
        transform: translateX(0);
    }

    .toggle-logos {
        display: block; 
    }
    .floating-logos a img {
        width: 81px;
        height: auto;
        transition: transform 0.3s;
    }
    .main-section .content {
        flex-direction: column;
        text-align: center;
    }

    .text-container, .action-container {
        width: 100%;
        text-align: center;
        left:0;
    }

    .h2-text {
        font-size: 2em;
    }

    .typewriter-text {
        font-size: 1.2em;
        left:0;
    }

    .action-button {
        font-size: 1.2em;
    }

    .btn_contact{
    width: 100%;
    left:0;
    top: 64%;
    }
    .button__icon-wrapper{
        left:79%
    }
    .problems-container {
        grid-template-columns: 1fr; 
        gap: 15px;
    }

    .problem-item {
        padding: 15px;
    }

    .problem-item img {
        width: 50px;
        height: 50px;
    }
    
    .problem-item h3 {
        font-size: 1.2rem;
    }
    
    .problem-item p {
        font-size: 0.9rem;
    }
    .sobreMi {
        flex-direction: column;
        padding: 20px;
    }

    .sobreMi .info, .sobreMi .imagen {
        width: 100%;
        padding: 0;
    }

    .sobreMi .info {
        margin-bottom: 20px;
        margin-top: 110px;
    }

    .sobreMi .info h2 {
        font-size: 2em;
    }

    .sobreMi .info p {
        font-size: 1.1em;
    }
    .alianzas .logos-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .alianzas h2 {
        font-size: 1.5rem;
    }
    .testimonios-container {
        flex-direction: column;
    }
.testimonios.visible{
    margin-top: 37px;
}
    .testimonio {
        width: 100%;
        margin-bottom: 20px;
    }


    /* Blog*/
    .blog-section{
        margin-top: 42px;
    }
    footer {
        padding: 15px;
    }

    footer p {
        font-size: 0.9em;
    }
    
}


@media (min-width: 1124px) and (max-width: 1390px) {
    .main-section .content {
        flex-direction: row;
        justify-content: space-between; 
        padding: 40px;
    }

    .text-container {
        width: 50%;
        left: 48%;
        top: 30%;
    }

    .btn_contact {
        width: 65%;
        left: 48%;
        top: 67%;
    }
    
    .button_contact, .button_me {
        width: 60%; 
        font-size: 18px; 
        padding: 1rem 2rem;
    }

    .button__icon-wrapper {
        left: 55%; 
    }

    .h2-text {
        font-size: 3em; 
    }

    .typewriter-text {
        font-size: 1.5em; 
    }
}

