@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&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Style+Script&display=swap');

/* Estilos generales */



.clear-theme{
    --logo-color: #41c16f;
    --text-color: #000;
    --hover-color: #41c16f;
    --btn-border-color: #41c16f;
    --btn-color: #41c16f;
    --btn-hover-color: #20683b;
    --RLink-hover-color: #472b01;
    --bg-black-50: rgba(255, 255, 255, 0.05);
    --bg-black-70: rgba(255, 255, 255, 0.7);
    --bg-black-25: rgba(190, 190, 190, 0.5);
    --bg-black-100: #ffffff;
    --skin-color: #41c16f;
    --banner-background-image: url('./componentes/fondoBlancoCWS.png');
    --about-background-image: url('./componentes/fondoBlancoAbout.png'); 
    --text-700: #ffffff;
    --text-900: #000;
    --text-950: #252525;
}

:root {
    --logo-color: #41c16f;
    --text-color: #f7faf9;
    --hover-color: #41c16f;
    --btn-border-color: #41c16f;
    --btn-color: #41c16f;
    --btn-hover-color: #20683b;
    --RLink-hover-color: #472b01;
    --bg-black-50: rgba(0, 0, 0, 0.05);
    --bg-black-70: rgba(0, 0, 0, 0.7);
    --bg-black-25:rgba(24,24,24,0.5);
    --bg-black-100:#000;
    --skin-color: #41c16f;
    --banner-background-image: url('./componentes/fondoNegroCWS.png');  
    --about-background-image: url('./componentes/fondoNegroAbout.png'); 
    --text-700: #333;
    --text-900: #fff;
    --text-950: #cccccc;
}

#iconDark {
    width: 30px;
    cursor: pointer;
}

body {
    
    min-height: 100vh;
    background: var(--bg-black-100);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 28px 9%;
    transition: all .50s ease;
}
header.scrolled {
    background-color: var(--bg-black-100); 
}
  

.logo {
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
}
.logoCWS {
    width: 70px; 
    height: auto; 
    position: relative; 
    z-index: 2; 
}

.navLinks {
    display: flex;
}

.navLinks a {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 5px 0;
    margin: 0 30px;
    transition: all .50s ease;
}

.navLinks a:hover,
.navLinks a.active {
    color: var(--hover-color);
}

.main {
    display: flex;
    align-items: center;
}

.main a {
    margin-right: 25px;
    margin-left: 10px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all .50s ease;
}

.main a:hover {
    color: var(--hover-color);
}

.user {
    display: flex;
    align-items: center;
}

.user i {
    color: var(--hover-color);
    font-size: 26px;
    margin-right: 7px;
}

#menu-icon {
    font-size: 35px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1000001;
    display: none;
}

/* Media queries */
@media(max-width:1280px) {
    header {
        padding: 14px 2%;
    }
    .navLinks a {
        padding: 5px 0;
        margin: 0 20px;
    }
}

@media(max-width:1090px) {
    #menu-icon {
        display: block;
    }
    .navLinks {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 270px;
        height: 39vh;
        background: var(--hover-color);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 10px;
        transition: all .50s ease;
    }
    .navLinks a {
        display: block;
        margin: 12px 0;
        padding: 0 25px;
        transition: all .50s ease;
    }
    .navLinks a:hover,
    .navLinks a.active:hover {
        color: var(--RLink-hover-color);
        transform: translate(10px);
    }
    .navLinks a.active {
        color: var(--text-color);
    }
    .navLinks.open {
        right: 2%;
    }
}

@media(max-width:500px) {
    .logo span {
        font-size: 1rem;
    }
    .logoCWS {
        width: 50px;
    }
}

/* Banner Section */
.banner-section {
    height: 100vh;
    background: linear-gradient(var(--bg-black-70), var(--bg-black-25)), var(--banner-background-image);
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 0 9%;
}

.content {
    margin: 0 auto;
    width: 100%;
    color: var(--text-color);
    font-family: 'EB Garamond', serif;
}

.content h2 {
    font-size: 2.8rem;
    max-width: 1000px;
    line-height: 70px;
}

.content p {
    font-family: "Style Script", cursive;
    font-size: 2.1rem;
    font-weight: 300;
    max-width: 530px;
    margin-top: 15px;
}

.btn {
    padding: 12px 30px;
    margin-top: 38px;
    font-size: 16px;
    font-weight: 500;
    border: 3px solid var(--btn-border-color);
    border-radius: 6px;
    background: var(--btn-color);
    color: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    background-color: var(--btn-hover-color);
}

/* About Section */

.section-info {
    background: linear-gradient(var(--bg-black-70), var(--bg-black-25)), var(--about-background-image) no-repeat left;
    background-size: 55%;
    background-color: var(--bg-black-100);
    overflow: hidden;
    padding: 100px 0;
    position: relative;
    display: flex;
    justify-content: flex-end; /* Mantiene el contenido alineado a la derecha */
    align-items: center; /* Centra verticalmente el contenido */
    height: 100vh; /* Altura completa de la pantalla */
}

.inner-container-info {
    width: 55%;
    background-color: var(--bg-black-70);
    padding: 150px;
    box-sizing: border-box;
}

.inner-container-info h1 {
    margin-bottom: 30px;
    font-size: 30px;
    font-weight: 600;
    color: var(--logo-color);
}

.inner-container-info p.text-info {
    font-size: 2.5rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    text-align-last: center;
}

.skills-info {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 13px;
}
.skills-info span {
    cursor: pointer; 
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-900);
    transition: color 0.3s ease, transform 0.3s ease; 
}

.skills-info span:hover {
    color: var(--logo-color); 
    transform: scale(1.1); 
}
.extra-info {
    background-color: var(--bg-black-50);
    padding: 40px;
    margin-top: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px; 
    margin: 20px auto;
    text-align: center; 
}

.extra-info h2 {
    font-size: 24px;
    color: var(--logo-color);
}

.extra-info p {
    font-size: 1.2rem;
    color: #555;
}


@media screen and (max-width: 1200px) {
    .inner-container-info {
        padding: 80px;
    }
}

@media screen and (max-width: 1000px) {
    .section-info {
        background-size: 100%;
        padding: 100px 40px;
    }
    .inner-container-info {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .section-info {
        padding: 0;
    }
    .inner-container-info {
        padding: 60px;
    }
}


/* Services Section */
.service .container {
    padding-bottom: 40px;
    background-color: var(--bg-black-100);
}

.service .service-item {
    margin-bottom: 30px;
    margin-left: 5px;
    margin-right: 5px;
    flex: 0 0 33.33%; /* 3 columnas por defecto */
    max-width: 26%;
}

.service .service-item .service-item-inner {
    background-color: var(--bg-black-25);
    border: 1px solid var(--bg-black-50);
    border-radius: 10px;
    padding: 30px 15px;
    text-align: center;
    transition: all 0.3s ease;
}
@media (max-width: 600px) {
    .service .service-item {
        flex: 0 0 50%; /* 2 columnas */
        max-width: 50%;
    }
}
@media (max-width: 300px) {
    .service .service-item {
        flex: 0 0 100%; /* 1 columna */
        max-width: 100%;
    }
}
   
.service .service-item .service-item-inner:hover
{
    box-shadow:  0 0 20px rgba(48, 46, 77, 0.15);
}
.service .service-item .service-item-inner .icon 
{
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: block;
    margin:  0 auto 30px;
    text-align: center;
    transition: all 0.3s ease;
}
.service .service-item .service-item-inner .icon .fa
{
    font-size: 40px;
    line-height: 60px;
    color: var(--skin-color);
    transition: all 0.3s ease;
}
.service .service-item .service-item-inner:hover .icon
{
    background: var(--skin-color);
}
.service .service-item .service-item-inner:hover .icon .fa
{
    font-size: 25px;
    color: var(--text-color);
}
.service .service-item .service-item-inner h4
{
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-900);
    font-weight: 700;
    text-transform: capitalize;
}
.service .service-item .service-item-inner p
{
    font-size: 16px;
    color: var(--text-950);
    line-height: 25px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 2%;
    margin-right: 2%;
    position: relative;
    justify-content: center; 
}


/* Contact Section */
.contact {
    background-color: var(--bg-black-100);
}

.contact-title {
    color: var(--skin-color);
    text-align: center;
    font-size: 25px;
    margin-bottom: 20px;
}

.contact-sub-title {
    color: var(--text-color);
    text-align: center;
    font-size: 15px;
    margin-bottom: 60px;
}

.contact .contact-info-item {
    flex: 0 0 25%;
    max-width: 25%;
    text-align: center;
    margin-bottom: 60px;
}

.contact .contact-info-item .icon {
    display: inline-block;
}

.contact .contact-info-item .icon .fa {
    font-size: 25px;
    color: var(--skin-color);
}

.contact .contact-info-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: capitalize;
    margin: 15px 0 5px;
}

.contact .contact-info-item p {
    font-size: 16px;
    line-height: 25px;
    color: var(--text-950);
    font-weight: 400;
}

.contact .contact-form {
    flex: 0 0 100%;
    max-width: 100%;
}

.contact .contact-form .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.contact .contact-form .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.contact .contact-form .form-item {
    margin-bottom: 30px;
}

.contact .contact-form .form-item .form-control {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    background: var(--bg-black-25);
    border: 1px solid var(--bg-black-50);
    padding: 10px 25px;
    font-size: 16px;
    color: var(--bg-black-70);
    transition: all 0.3s ease;
    outline: none;
}

.contact .contact-form .form-item input.form-control,
.contact .contact-form .form-item textarea.form-control {
    color: var(--text-950);
}

.contact .contact-form .form-item .form-control:focus,
.contact .contact-form .form-item input.form-control:focus,
.contact .contact-form .form-item textarea.form-control:focus {
    box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
    border-color: var(--bg-black-70);
    background-color: var(--bg-black-25) !important;
    color: var(--text-950) !important;
}

.contact .contact-form .form-item textarea.form-control {
    height: 140px;
}

.contact .contact-form .btn {
    height: 50px;
    padding: 0 50px;
}

/* portafolio*/
.portfolio .container
{
    padding-bottom: 40px;
}
.portfolio .portfolio-heading
{
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 40px;
}
.portfolio .portfolio-heading h2
{
    color: var(--text-950);
    font-weight: 500;
}
.portfolio .portfolio-item
{
    flex: 0 0 33.33%;
    max-width: 33.33%;
    margin-bottom: 30px;
}
.portfolio .portfolio-item-inner
{
    border: 6px solid var(--bg-black-100);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}
.portfolio .portfolio-item-inner .portfolio-img img
{
    width: 100%;
    display: block;
}

/* Footer */
.footer{
	background-color: var(--bg-black-100);
    padding: 70px 0;
}
.footer-col{
   width: 25%;
   padding: 0 15px;
}
.footer-col h4{
	font-size: 18px;
	color: var(--text-color);
	margin-bottom: 35px;
	font-weight: 500;
	position: relative;
}
.footer-col h4::before{
	content: '';
	position: absolute;
	left:0;
	bottom: -10px;
	background-color: var(--skin-color);
	height: 2px;
	box-sizing: border-box;
	width: 50px;
}
.footer-col ul li:not(:last-child){
	margin-bottom: 10px;
}
.footer-col ul li a{
	font-size: 16px;
	text-transform: capitalize;
	color: var(--text-color);
	text-decoration: none;
	font-weight: 300;
	color: #797878;
	display: block;
	transition: all 0.3s ease;
}
.footer-col ul li a:hover{
	color: var(--text-color);
	padding-left: 8px;
}
.footer-col .social-links a{
	display: inline-block;
	height: 40px;
	width: 40px;
    font-size: 1.4rem;
	background-color: var(--bg-black-100);
	margin:0 10px 10px 0;
	text-align: center;
	line-height: 40px;
	border-radius: 50%;
	color: var(--text-color);
	transition: all 0.5s ease;
}
.botonFlotante {
    position: fixed !important;
    top: 80% !important;
    transform: translateY(-50%) !important;
    right: 0 !important;
    background: var(--skin-color) !important;
    color: var(--text-700) !important;
    font-size: 4rem !important;;
    width: 80px;
    height: auto;
    border-radius: 40px 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    padding-right: 10px;
    z-index: 9999;
}
.botonUp {
    display: none;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: var(--bg-black-70) !important;
    color: var(--text-900) !important;
    font-size: 2.2rem !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
}


/* Responsive Design */
@media (max-width: 768px) {
    .footer-col{
        width: 50%;
        margin-bottom: 30px;
    }
    .banner-section {
        height: 120vh;
    }

    .content h2 {
        font-size: 2.2rem;
    }

    .content p {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .about .about-content .about-text {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about .about-content .personal-info {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about .about-content .skills {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .portfolio .portfolio-grid {
        grid-template-columns: 100%;
    }

    .contact .form-group {
        flex: 1;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-col{
        width: 100%;
      }
    .navLinks a {
        font-size: 0.9rem;
    }

    .main a {
        font-size: 0.9rem;
    }

    .user i {
        font-size: 22px;
    }    

    .logo span {
        font-size: 1rem;
    }
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  position: relative;
  cursor: pointer;
}
.dropdown__link, 
.dropdown__sublink {
  padding: 1rem 1.5rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}



.dropdown__menu {
  position: absolute;
  top: 100%; 
  left: 0;
  width: 200px;
  background-color: var(--bg-black-70);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease;
  z-index: 99;
}

/* Hover to show menu */
.dropdown__item:hover .dropdown__menu {
  opacity: 1;
  max-height: 500px;
  pointer-events: initial;
}

/*CARRUSEL*/
.wrapper{
    max-width: 1900px;
    width: 100%;
    position: relative;
}
.wrapper .arrow{
    height: 50px;
    width: 50px;
    background: var(--bg-black-25);
    color: var(--text-color);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 1.25rem;
    transform: translateY(-50%);
}
.wrapper .arrow:first-child{
    left:-22px;
}
.wrapper .arrow:last-child{
    right: -22px;
}


.wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 4) - 12px);
    gap: 16px;
    overflow-x: auto; 
    scroll-behavior: smooth; 
    scrollbar-width: 0;
}
.carousel::-webkit-scrollbar{
    display: none;
}
.carousel :where(.card, .img){
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel.dragging .card {
    cursor:grab;
    user-select: none;
}
.carousel .card {
    height: 342px;
    list-style: none;
    background: var(--bg-black-25);
    border-radius: 8px;
    display: flex;
    padding-bottom: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.card .img {
    background: var(--skin-color);
    width: 148px;
    height: 148px;
    border-radius: 50%;
}
.card .img img{
    width: 140px;
    height: 140px;
    object-fit:cover;
    border-radius: 50%;
    border: 4px solid var(--bg-black-100);
}

.carousel .card span {
    font-size: 1.3rem; 
    text-align: center;
}

.carousel .card h2 {
    text-align: center;
}

.carousel .card .social-links {
    font-size: 1.6rem; 
}

@media screen and (max-width:1100px) {
    .wrapper .carousel {
        grid-auto-columns: calc((100% / 3) - 9px);
    }
}
@media screen and (max-width:800px) {
    .wrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }
}
@media screen and (max-width:600px) {
    .wrapper .carousel {
        grid-auto-columns: 100%;
    }
}