/* Estilos Globales */
:root {
    --primary-color: #0b2b40;
    --hover-color: #143d59;
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3 {
    font-weight: 400;
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barra de Navegación Superior con Logo */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-logo img {
    height: 50px; /* Ajusta este valor según el tamaño de tu logo */
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 30px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9em;
    transition: color 0.3s;
    padding-bottom: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Sección Inicio - Banner */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin: 0;
}

/* Breve Descripción y Contacto */
/* --- Nueva Sección de Descripción (Inicio) --- */
.description-section {
    padding: 60px 20px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: left;
}

.section-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 40px;
}

.description-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.description-image {
    flex: 1;
}

.description-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.description-text {
    flex: 1;
    text-align: center; /* Centra el texto dentro de su lado derecho */
}

.description-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}


.contact-card {
    background-color: var(--light-bg);
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-card p {
    font-size: 1.1rem;
    color: #444;
}

/* Sección Servicios */
.services-section {
    padding: 60px 0;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-content ul {
    list-style-type: none;
    padding: 0;
}

.service-content ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.service-content ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Sección Data Center */
.datacenter-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.datacenter-header {
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.dc-item img {
    width: 240px;
    height: 240px;
    border-radius: 50%; /* Esto hace que la imagen sea circular */
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dc-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.dc-item p {
    font-size: 0.95rem;
    color: #555;
    text-align: justify;
}

.dc-item strong {
    color: var(--primary-color);
}

/* Pie de Página */
footer {
    background-color: var(--bg-color);
    color: #777;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-top: 1px solid var(--border-color);
}

/* Botón Flotante Rediseñado (Como tu imagen) */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Sombra suave */
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    stroke: #333333; /* Color de la flecha */
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsivo */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px;
    }
    .nav-logo {
        margin-bottom: 15px;
    }
    .nav-links a {
        margin: 5px 10px;
        display: inline-block;
    }
    .hero h1 { font-size: 2rem; }
    
    /* Agregamos .description-content aquí para celulares */
    .service-row, .service-row:nth-child(even), .description-content {
        flex-direction: column;
    }
    
    .dc-grid {
        grid-template-columns: 1fr;
    }
}