@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

header {
    background: #2d0246;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    float: left;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

a {
    color: #6a0dad;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
  }
  
  a:hover {
    color: #ff6f61; /* Dorado */
  }

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #333;
        position: absolute;
        top: 60px;
        left: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
}

.hero {
    padding: 80px 20px;
    text-align: center;
    background-image: url('./assets/images/laptop2.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    margin-top: 3rem;
}

.hero-content {
    margin-left: auto;
    margin-right: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.5);  */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    background: #ff6f61;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background: #ff4a3d;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.services {
    padding: 80px 20px;
    text-align: center;
    background: #f4f4f4;
}

.services h2 {
    margin-bottom: 40px;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ff6f61;
}

@media (max-width: 768px) {
    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%;
    }
    .hero-content {
        text-align: center;
        width: 80%;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

.portfolio {
    padding: 80px 20px;
    text-align: center;
}

/* Sección de Portafolio */
.portfolio-section {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9f9;
}

.portfolio-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.portfolio-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

/* Botón de Portafolio */
.portfolio-button {
    display: inline-block;
    background: #6a0dad;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.portfolio-button:hover {
    background: #4a097d;
    transform: scale(1.05);
}

.contact {
    padding: 80px 20px;
    text-align: center;
    background: #f4f4f4;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact input, .contact textarea {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact button {
    background: #ff6f61;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background: #ff4a3d;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
    background: #2d0246;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

@media (max-width: 768px) {
    footer p {
        font-size: 0.9rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.about h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    text-align: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .about-text {
        text-align: center;
    }
}
  /*  */

  .technologies {
    padding: 80px 20px;
    text-align: center;
    background-image: url('./assets/images/laptop.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.technologies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Capa oscura para contraste */
}

.tech-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tech-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.tech-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.images {
    width: 5.9rem;
    height: 5rem;
    border-radius: .3rem; 
}

.loader {
    display: none;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sección de Descripción de Servicios */
.service-description {
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
}

.service-description h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
}

/* Contenedor de artículos */
.service-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cada tarjeta de servicio */
.service-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    width: 30%;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item h3 {
    font-size: 1.8rem;
    color: #6a0dad; /* Puedes ajustar el color a tu paleta */
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Efecto hover */
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Adaptación para dispositivos móviles */
@media (max-width: 768px) {
    .service-item {
        width: 80%;
        margin: 0 auto;
    }
}
