*{
    margin: 0  ;/*para eliminar el margen predeterminado de los navegadores */
    padding: 0 ;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif; 
}
body {
    line-height: 1.6;
   padding-top: 100px; /*para evitar que el contenido quede oculto debajo del header fijo */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: auto;
}
header {
    background-color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);/*para darle un poco de sombra al header y que se vea más profesional */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.top-bar {
    background-color: white;
    color: rgb(10, 10, 10);
    font-size: 14px;
    padding: 1px 0px;
    text-decoration: none;
    
}

.top-info {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}
a {
    text-decoration: none;
    color: #333;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 65px;

}

.logo {
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   /* 👈 ESTO lo centra */
    text-align: center;
    padding: 0 1rem;
}
/* Tamaño profesional del logo */
.logo img {
    width: 170px;   /* Puedes probar 120px si lo quieres más pequeño */
    height: auto; /*paara mantener la proporción del logo */
    transition: transform 0.4s ease; /*para que el efecto de zoom sea suave */
}
.logo img:hover {
    transform: rotate(-2deg)scale(1.08); /* Efecto de rotación y zoom suave al pasar el mouse sobre el logo */
}
/* Estilo profesional para los enlaces de navegación */
.nav-links {
    display: flex;
    list-style-type: none;
    gap: 2rem;
}
/*Formato profesional de los enlaces de navegación */
.nav-links li a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}
.nav-links li a:hover {
    color: #ff0000;
    transform: scale(1.1); /* Efecto de zoom suave al pasar el mouse sobre los enlaces */
    font-weight: bold;
}
#hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('img/inspedos.jpeg') no-repeat center center/cover;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: #fff;

    padding: 2rem 1rem;
}

#hero h1 {
animation: aparecer 2s ease-out;
height: 100px;
    font-size: 3rem;
    margin-bottom: 1rem;
}
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero p {
    font-size: 1.25rem;
    max-width: 1200px;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0 20px; 
}   
#hero p{
animation: aparecer2 2s ease;
}

@keyframes aparecer2{

from{
opacity:0;
transform:translateY(40px);
}

to{
opacity:1;
transform:translateY(0);
}

}

#hero .cta-button {
    margin-top: 2rem;
    width: 200px;
    padding: 10px 20px;
    color: #fcfcfc;
    background-color: rgb(245, 9, 9);
}
#hero .cta-button:hover {
    background-color: rgb(119, 5, 5);
}

#nosotros {
    padding: 5rem 10%;
    background-color: #F4F6F8;
    text-align: center;
}

#nosotros h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 2rem;
}

#nosotros .descripcion {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}
#certificaciones {
    padding: 5rem 10%;
    background-color: #F4F6F8;
    text-align: center;
}

#certificaciones h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 3rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: #F4F6F8;
    padding: 2rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #444;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.cert-card:hover {
    background-color: #003366;
    color: white;
    transform: translateY(-5px);
}
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border:none;
    border-radius: 5px;
    margin-top: 2rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #0056b3;
}  
/*ESTA SECCIÓN ES PARA LOS CURSOS*/
#formacion {
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 10%;
    background-color: #fdfdfd;
}

.subtitulo {
color: #333;
font-weight: bold;
margin-bottom: 5px;
}

.titulo {
font-size: 40px;
font-weight: 800;
margin-bottom: 20px;
}

.detalles {
max-width: 800px;
margin-bottom: 40px;
color: #555;
line-height: 1.6;
text-align: left;

}

.cursos-grid {
display: grid; /*determina */
grid-template-columns: repeat(2, 1fr);
gap: 40px;
}

.cursos-grid ul {
list-style: none;
padding: 0;
}

.cursos-grid li {
margin-bottom: 15px;
font-size: 18px;
}

.cursos-grid li::before {
content: "🛠";
color: #080808;
margin-right: 10px;
}
#servicios {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
#servicios h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #333;
}
.descripcion {
    max-width: 900px;
    margin-bottom: 40px;
    padding: 0 1rem 1rem;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.servicios-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.servicios-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.servicios-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.servicios-card h3 {
    padding: 1rem;
    font-size: 1.5rem;
    color: #333;
}
.servicios-card button {
        margin: 1rem;
        padding: 0.5rem 1rem;
        background-color: #333;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
    }
.servicios-card button:hover {
        background-color: #020202;
    }
    #contactos {
        padding: 4rem 2rem;
        background-color: #f4f4f4;
        background-size: cover;
    background-position: center;
        
    }
    #contactos h2 {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 2.5rem;
        color: #333;
    }
    form {
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    input, textarea {
        padding: 0.75rem;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 1rem;
    }
    textarea {
        height: 150px;
        resize: vertical;
    }
    form button {
        padding: 0.75rem;
        background-color: #007BFF;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        }
        form button:hover {
        background-color: #0056b3;
        }
        footer{
            height: 30px;
            background-color: #333;
            color: #fff;
            text-align: center;
            padding: 5px ;
            font-size: small;
        }
        
.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    z-index: 1000;
    animation: float 2s ease-in-out infinite;
}
@keyframes flotar{

0%{transform:translateY(0);}
50%{transform:translateY(-8px);}
100%{transform:translateY(0);}
}
.whatsapp img {
    width: 100%;
    border-radius: 50%;
}

.tooltip {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #255509;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp:hover .tooltip {
    opacity: 1;
}


   /* ============================= */
/* RESPONSIVE DESIGN */

@media (max-width: 1024px){

.nav-links{
gap:1rem;
}

.servicios-grid{
grid-template-columns: repeat(2,1fr);
}

}

/* BOTON HAMBURGUESA */
.menu-toggle{
display:none;
font-size:28px;
cursor:pointer;
transition: transform 0.3s ease;
}

.menu-toggle:hover{
transform: scale(1.1);
}

/* MENU RESPONSIVE */
@media (max-width:768px){

.menu-toggle{
display:block;
}

.nav-links{
display:none;
flex-direction:column;
width:100%;
text-align:center;
background:white;
padding:15px 0;
}

.nav-links.active{
display:flex;
}

.servicios-grid{
grid-template-columns:1fr;
}

.cursos-grid{
grid-template-columns:1fr;
}

}

@media (max-width:480px){

.logo img{
width:130px;
}

#hero h1{
font-size:1.8rem;
}

#hero p{
font-size:1rem;
}

.container{
padding:0 10px;
}

}