/*
Theme Name: Ambertech Theme with Premium Slider
Theme URI: https://ambertec.mx
Description: Template limpio y corporativo inspirado en Ethical IT, optimizado para conversión, con scroll ultra rápido y un slider interactivo integrado.
Version: 2.0
Author: Ambertech
*/

:root {
    --primary-color: #0056b3;
    --secondary-color: #0a192f;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

/* Slider Hero Container */
.hero-slider-container {
    position: relative;
    height: 580px;
    width: 100%;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Capa oscura superior para contrastar el texto y mejorar legibilidad */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(10, 25, 47, 0.82), rgba(10, 25, 47, 0.82));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 44px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.slide-content p {
    font-size: 19px;
    margin-bottom: 30px;
    color: #cbd5e1;
}

/* Controles de Navegación del Slider (Puntos) */
.slider-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active, .dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #004085;
    transform: translateY(-2px);
}

/* Info Section (No hay proyectos pequeños) */
.ribbon {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 32px;
}

.about p {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #4a5568;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--light-bg);
}

.services h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-size: 32px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.card p {
    font-size: 15px;
    color: #4a5568;
}

/* Footer & Contact */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
    font-size: 18px;
}

.footer-info p {
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 15px;
}

.footer-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-info a:hover {
    color: #60a5fa;
}

.bottom-bar {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 14px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 30px;
    }
    .slide-content p {
        font-size: 16px;
    }
    .hero-slider-container {
        height: 480px;
    }
}
