/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #6a6a6a;
    line-height: 1.6;
    font-size: 16px;
}

p{
    font-size: 1.1rem !important;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem !important;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #007aff;
    padding: 15px 30px;
    color: #fff;
    font-size: 1rem;
    border-radius: 30px;
    display: inline-block;
    transition: background-color 0.3s ease;
    opacity: 0;
    animation: slideUp 1s forwards;
}

.cta-button:hover {
    background-color: #005bb5;
}

/* Portfolio Section */
.portfolio {
    text-align: center;
    padding: 80px 20px;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* ESTILO DE CADA PROYECTO */
.portfolio-item {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

/* EFECTO HOVER SOLO EN PC */
@media (min-width: 769px) {
    .portfolio-item:hover {
        transform: scale(1.05);
    }
    .portfolio-item:hover .overlay {
        opacity: 1;
    }
}

/* OVERLAY (HOVER) */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--color);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    text-align: center;
}

.overlay a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.overlay a:hover {
    background: black;
    color: white;
}

/* EFECTO PARA CELULAR (ACTIVAR AL HACER CLIC) */
@media (max-width: 768px) {
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        max-width: 100%;
    }

    .portfolio-item.active .overlay {
        opacity: 0.9;
    }
}


.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--color);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}
/* Services Section */
.services {
    text-align: center;
    padding: 50px 20px;
}

.iconos-services{
    font-size: 25px !important;
    margin-bottom: 15px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.service {
    width: 300px;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.service-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.service:hover .service-inner {
    transform: rotateY(180deg);
}

/* Clase para activar animación en dispositivos táctiles */
.service.flipped .service-inner {
    transform: rotateY(180deg);
}

.service-front, .service-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.35);
}

.service-front {
    background: white;
    color: black;
}

.service-front h3 {
    font-size: 1.5rem;
    padding: 10px;
}

.service-back {
    padding: 8px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
    color: white;
    transform: rotateY(180deg);
}

/* 📱 RESPONSIVE DESIGN */

/* Para tablets (menor a 900px) */
@media (max-width: 900px) {
    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Para celulares (menor a 600px) */
@media (max-width: 600px) {
    .service-list {
        grid-template-columns: 1fr;
    }

    .service {
        width: 80%;
    }
}


/* Contact Section */
.contact {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries for Mobile and Tablet */
@media screen and (max-width: 768px) {

    .about {
        text-align: center;
        padding: 50px 20px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
        color: white;
        width: 85% !important;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* Portfolio Section */
    .portfolio-gallery {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-item {
        width: 80%;
        margin-bottom: 30px;
    }

    .portfolio-item h3 {
        font-size: 1.1rem;
    }

    /* Services Section */
    .service-list {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 80%;
        margin-bottom: 20px;
    }

    .service h3 {
        font-size: 1.3rem;
    }

    /* Contact Section */
    .contact h2 {
        font-size: 2rem;
    }

    .contact p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {

    .about {
        text-align: center;
        padding: 50px 20px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
        color: white;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    /* Portfolio Section */
    .portfolio h2 {
        font-size: 2rem;
    }

    .portfolio-item {
        width: 100%;
    }

    /* Services Section */
    .service {
        width: 100%;
    }

    .service h3 {
        font-size: 1.2rem;
    }

    /* Contact Section */
    .contact h2 {
        font-size: 2rem;
    }

    .contact p {
        font-size: 0.9rem;
    }
}



/* Menu Toggle Button */
.menu-toggle {

    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    font-size: 30px;
    cursor: pointer;
    color: #6a6a6a;
}

/* Side Navigation (hidden initially) */
.side-nav {
    z-index: 3;
    position: fixed;
    top: 0;
    left: -250px; /* Hidden off-screen */
    height: 100%;
    width: 250px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
    color: #fff;
    transition: left 0.3s ease-in-out;
    padding-top: 60px;
}

/* When the side nav is active */
.side-nav.active {
    left: 0;
}

/* Style for the menu items */
.side-nav ul {
    list-style: none;
    padding: 0;
}

.side-nav ul li {
    padding: 15px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.side-nav ul li a {
    color: #fff;
    font-size: 20px;
    display: block;
    text-decoration: none;
}

/* Hover effect for menu items */
.side-nav ul li:hover {
    background-color: #007aff;
}

.side-nav ul li a:hover {
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#SobreMi{
    text-align: center;
    margin-bottom: 10px;
}


/* Asegurar visibilidad */
.about {
    display: block;
    position: relative;
    width: 75%;
    height: auto;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
    color: white;
    padding: 30px;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    
    /* Inicialmente oculta con animación */
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

/* Cuando se vuelve visible */
.about.visible {
    transform: translateX(0);
    opacity: 1;
}


.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: auto;
}



.about-text {
    max-width: 600px;
    text-align: justify;
}

@media (max-width: 768px) {
    .about-text {
        text-align: center;
    }
    
}

/* Para Celulares */
@media (max-width: 480px) {
    .about-text {
        text-align: center;
    }
}


/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    background-color: #333;
    color: white;
    font-size: 35px;
    text-align: center;
    line-height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    animation: pulse 2s infinite;
    text-decoration: none;
}

/* ICONO DE WHATSAPP */
.whatsapp-button i {
    display: block;
}

/* ANIMACIÓN SUAVE (LATIDO) */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* EFECTO AL PASAR EL CURSOR */
.whatsapp-button:hover {
    transform: scale(1.1);
}



/* SECCIÓN FOOTER */


.footer-section {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.footer-container {
    max-width: 800px;
    margin: auto;
}

/* Estilo para la sección de cierre */
.cierre-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.profile-photo:hover {
    transform: scale(1.05) !important;
}

.cierre-text {
    max-width: 400px;
    font-size: 18px;
    margin-top: 20px;
}

/* Estilo para el formulario */
.contact-form {
    background: #6a6a6a;
    padding: 20px;
    border-radius: 10px;
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #888888;
}


@media (max-width: 768px) {
    .footer-container {
        max-width: 90%;
    }

    .cierre-text {
        font-size: 16px;
        text-align: center;
    }

    
}

/* Para Celulares */
@media (max-width: 480px) {
    .footer-section {
        padding: 40px 10px;
    }


    .cierre-text {
        font-size: 14px;
        text-align: center;
        padding: 0 10px;
    }

    .cta-button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .contact-form {
        padding: 15px;
    }

    .contact-form h2 {
        font-size: 20px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    .contact-form button {
        font-size: 16px;
    }

}



.proceso{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 80px;
    margin-top: 80px;

}


.accordion{
    width: 60%;
}

.accordion-body{
    background-color: black;
    color: white;
    text-align: justify;
}


.accordion-button{
    background-color: #6a6a6a !important;
    color: white !important;
    
}

.accordion-button:focus {

    box-shadow: none !important;
}


@media (max-width: 768px) {
    .accordion{
        width: 75%;
    }
    
}

/* Para Celulares */
@media (max-width: 480px) {
    .accordion{
        width: 85%;
    }
}

.separador {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1));
    margin-top: 100px;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.photo-separador, .dialogo {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.separador.show .photo-separador, 
.separador.show .dialogo {
    opacity: 1;
    transform: translateX(0);
}


.contenedor {
    display: flex;
    align-items: center;
    max-width: 800px;
}

.dialogo {
    background: #6a6a6a;
    color: white;
    text-align: justify;
    padding: 20px;
    border-radius: 15px;
    max-width: 500px;
    position: relative;
    font-size: 16px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin-left: 20px;
}

@media (max-width: 768px) {
    .dialogo{
        text-align: center;
    }
    
}

/* Para Celulares */
@media (max-width: 480px) {
    .dialogo{
        text-align: center;
    }
}

.triangulo {
    position: absolute;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}



/* Estilos para las redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    font-size: 24px;
    color: #6a6a6a;
    transition: color 0.3s ease-in-out;
}

.social-icon.instagram:hover {
    color: #E4405F;
}

.social-icon.linkedin:hover {
    color: #0077B5;
}

.social-icon.email:hover {
    color: #D44638;
}


button.accordion-button::after {
    
    color: white !important;
   
    
}

.accordion-button:not(.collapsed)::after {
    color: white !important;
}