/* ==========================================================
   EWSolTec - CONFIGURACIÓN GENERAL (BASE)
   ========================================================= */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #3d3d3d; 
    color: #ffffff;
    scroll-behavior: smooth;
}

/* ==========================================================
   CABECERA (NAV & HEADER)
   ========================================================= */
nav {
    background: #2b2b2b;
    padding: 1rem;
    position: sticky; /* Siempre visible al bajar */
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    width: 100%;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #aaaaaa;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #ffffff;
}

header {
    background: #3d3d3d;
    /* 100vh menos el alto aproximado del nav */
    height: calc(100vh - 60px); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo {
    max-height: 180px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0px 5px 15px rgba(0,0,0,0.4));
}

.slogan {
    color: #cccccc;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* ==========================================================
   SECCIONES PANTALLA COMPLETA
   ========================================================= */
section, 
.seccion-contacto {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 80px 20px;
    /* Evita que el Nav tape el título al clickear */
    scroll-margin-top: 60px; 
}

/* ==========================================================
   TIPOGRAFÍA Y CONTENIDO
   ========================================================= */
h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 700;
}

.subtitulo-contacto {
    text-align: center;
    margin-top: -15px; 
    margin-bottom: 35px;
    color: #bbbbbb;
    font-weight: 400;
    font-size: 1.1rem;
    max-width: 600px;
}

.contenedor-reducido {
    max-width: 800px;
    text-align: center;
}

.tarjetas-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.tarjeta {
    background: #4a4a4a;
    border: 1px solid #555;
    border-radius: 12px;
    width: 280px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    text-align: center;
}

.tarjeta:hover {
    transform: translateY(-10px);
    background: #555555;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: #ffffff;
}

.icono-servicio {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* ==========================================================
   FORMULARIO
   ========================================================= */
.contenedor-formulario {
    width: 100%;
    max-width: 600px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #cccccc;
}

input, textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    background: #4a4a4a;
    border: 1px solid #666;
    border-radius: 8px;
    color: white;
    box-sizing: border-box;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ffffff;
    background: #555555;
}

.boton-enviar {
    background: #ffffff;
    color: #333;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    text-transform: uppercase;
}

.boton-enviar:hover {
    background: #cccccc;
    transform: scale(1.02);
}

/* ==========================================================
   FOOTER (REDES)
   ========================================================= */
footer {
    background: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    width: 100%;
    border-top: 1px solid #222;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    color: #bbbbbb;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.instagram-link:hover {
    color: #ffffff;
}

.insta-svg {
    margin-right: 8px;
    fill: #888;
    transition: all 0.3s ease;
    transform: translateY(-2px); /* Tu ajuste de precisión */
}

.instagram-link:hover .insta-svg {
    fill: #ffffff;
    transform: translateY(-2px) scale(1.1);
}

/* ==========================================================
   VERSION MOBILE (RESPONSIVE)
   ========================================================= */
@media (max-width: 768px) {
    header, section, .seccion-contacto {
        min-height: auto; 
        padding: 80px 15px;
    }

    header {
        height: calc(100vh - 80px); /* Ajuste para el nav en mobile */
    }

    h2 {
        font-size: 1.7rem;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .tarjeta {
        width: 100%;
    }
}