/* =====================
   ESTILOS GENERALES
===================== */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2d3d;
    background-color: #ffffff;
}

/* =====================
   HEADER
===================== */
header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 30px 40px;

    min-height: 400px;

    background-size: contain;
    background-position: center 150px;
    background-repeat: no-repeat;

    animation: slider 25s infinite;
}

/* Animación */
@keyframes slider {
    10% {
        background-image: url("../img/foto-corporativa-2.png");
    }
    15% {
        background-image: url("../img/cableado.png");
    }
    50% {
        background-image: url("../img/seguridad.png");
    }
    75% {
        background-image: url("../img/infraestructura.png");
    }
    100% {
        background-image: url("../img/servicios-locativos.png");
    }
}
/* Asegura que el contenido esté sobre el overlay */
header * {
    position: relative;
    z-index: 1;
}


/* =====================
   LOGO Y TEXTO
===================== */
.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: -100px; /* ⬅ SUBE EL LOGO */
}

.logo img {
    height: 300px;
}

.logo-text h1 {
    margin: 0;
    font-size: 30px;
    color: #1f2d3d;
}

.logo-text p {
    margin: 0;
    font-size: 16px;
    color: #1f2d3d;
}

/* =====================
   MENÚ
===================== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 80px; /* ⬅ separación IGUAL para todos */
}
nav a {
    text-decoration: none;
    color: #030c2f;
    font-weight: 500;
}

nav a:hover {
    color: #ffe4cf;
}

/* =====================
   HERO
===================== */
.hero {
    padding: 90px 40px;
    max-width: 1200px;
    margin: auto;
}

.hero h2 {
    font-size: 42px;
    max-width: 800px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 650px;
    color: #5a6b7b;
    margin-bottom: 35px;
}

/* =====================
   BOTONES
===================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: #0077cc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.btn:hover {
    background-color: #005fa3;
}

/* =====================
   SECCIONES
===================== */
section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    font-size: 32px;
    margin-bottom: 50px;
}

/* =====================
   SERVICIOS
===================== */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-box h3 {
    margin-top: 0;
    font-size: 22px;
}

.service-box p {
    color: #1f2d3d;
    line-height: 1.6;
}

/* =====================
   PROCESO
===================== */
.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.process-step {
    border-left: 3px solid #0077cc;
    padding-left: 20px;
}

/* =====================
   CTA
===================== */
.cta {
    background-color: #f4f8fb;
    text-align: center;
    padding: 80px 40px;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* =====================
   FOOTER
===================== */
footer {
    background-color: #1f2d3d;
    color: #ffffff;
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

/* =====================
   MENÚ DESPLEGABLE
===================== */

.dropdown{
position:relative;
display:inline-block;
}

/* ocultar checkbox */
.dropdown input{
display:none;
}

/* estilo del botón servicios */
.dropdown label{
color:#030c2f;
font-weight:500;
cursor:pointer;
}

/* menú oculto */
.dropdown-content{
display:none;
position:absolute;
top:35px;
left:0;
background:#ffffff;
min-width:260px;
box-shadow:0 8px 20px rgba(0,0,0,0.15);
border-radius:6px;
overflow:hidden;
z-index:1000;
}

/* links */
.dropdown-content a{
display:block;
padding:12px 18px;
color:#1f2d3d;
text-decoration:none;
font-size:15px;
}

.dropdown-content a:hover{
background:#f2f6fa;
}
.whatsapp{
position:fixed;
bottom:25px;
right:25px;
background:#25D366;
width:60px;
height:60px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 4px 10px rgba(0,0,0,0.3);
z-index:1000;
}

.whatsapp img{
width:35px;
}

/* mostrar menú */
#menu-servicios:checked + .dropdown-content{
display:block;
}
.dropdown:hover .dropdown-content{
display:block;
}
/* =====================
   MODO CELULAR (AGREGAR)
===================== */

@media (max-width:768px){

header{
flex-direction:column;
align-items:center;
padding:20px;
}

.logo{
flex-direction:column;
margin-top:0;
text-align:center;
}

.logo img{
height:150px;
}

.main-nav{
flex-direction:column;
gap:15px;
margin-top:20px;
}

.hero{
padding:40px 20px;
text-align:center;
}

.hero h2{
font-size:28px;
}

.hero p{
font-size:16px;
}

section{
padding:50px 20px;
}

}
