/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #121212;
    color: #fff;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #333;
}

header .logo h1 {
    font-size: 1.8em;
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

nav ul li a:hover {
    color: #00bcd4;
}

/* Hero Section */
.hero {
    background-image: url('https://programandolaweb.com/img/slides/desarrollo.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero a {
    background-color: #00bcd4;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 10px;
}

.hero a:hover {
    background-color: #007c8a;
}

/* Services Section */
.services {
    padding: 60px 20px;
    background-color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el contenido horizontalmente */
    justify-content: center; /* Centra el contenido verticalmente */
}

.services h2 {
    font-size: 2.5em;
    color: #00bcd4;
    margin-bottom: 20px;
}

/* Contenedor de los servicios */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra las tarjetas de servicio */
    gap: 20px; /* Espacio entre las tarjetas */
    max-width: 1200px; /* Limita el ancho máximo */
    margin: 0 auto; /* Centra el contenedor */
}

.service {
    background-color: #444;
    padding: 20px;
    border-radius: 8px;
    width: 300px; /* Define un ancho fijo para cada servicio */
    text-align: center;
    transition: transform 0.3s ease;
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service h3 {
    font-size: 1.5em;
    color: #00bcd4;
    margin-bottom: 10px;
}

.service p {
    font-size: 1em;
    color: #fff;
    text-align: justify;
    line-height: 1.5;
}

/* Efecto hover */
.service:hover {
    transform: translateY(-10px);
}


/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .services-container {
        flex-wrap: wrap; /* Permite reorganización en filas en pantallas pequeñas */
    }
    .service {
        flex: 1 1 100%; /* Tarjetas ocupan toda la fila */
        max-width: 100%;
        height: auto; /* Altura flexible */
    }
    .service-img {
        height: 200px; /* Ajusta la altura de la imagen en pantallas pequeñas */
    }
}


/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .services-container {
        flex-wrap: wrap; /* Permite reorganización en filas */
        justify-content: center;
    }
    .service {
        flex: 1 1 100%; /* Tarjetas ocupan toda la fila */
        max-width: 100%;
        height: auto; /* Altura flexible */
    }
    .service-img {
        height: 200px; /* Ajusta la altura de la imagen en pantallas pequeñas */
    }
}

/* Contact Section */
.contact {
    padding: 80px 40px;
    background-color: #333;
    text-align: center;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.contact input, .contact textarea {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #555;
    color: #fff;
    font-size: 1em;
}

.contact button {
    padding: 10px;
    background-color: #00bcd4;
    color: #fff;
    border: none;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background-color: #007c8a;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #222;
    color: #fff;
    font-size: 0.9em;
}
