/* =====================================================
   CLOSTERING DOMINICANA - ARCHIVO DE ESTILOS ARQUITECTÓNICO
===================================================== */

/* --- 1. RESET & REGLAS BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}



body {
    font-family: "Poppins", sans-serif;
    background: #FFFFFF;
    color: #0F172A; /* Slate 900 (Contraste fino, no negro puro) */
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- 2. SISTEMA DE VARIABLES (EXTRAÍDO DEL LOGO REAL) --- */
:root {
    --logo-blue: #2E4AA0;    /* Azul de "Dominicana" */
    --logo-red: #BA2737;     /* Rojo de "Clostering" */
    --logo-green: #10B24C;   /* Verde del Isotipo Circular */
    
    --dark: #0F172A;
    --gray: #475569;         /* Gris Slate intermedio */
    --light-bg: #F8FAFC;     /* Fondo claro elegante */
    --white: #FFFFFF;
    --border: #E2E8F0;

    --shadow-sm: 0 4px 12px rgba(46, 74, 160, 0.03);
    --shadow-md: 0 16px 36px rgba(46, 74, 160, 0.06);
    --radius: 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 3. CLASES GLOBALES DE UTILIDAD --- */
.container {
    width: min(1200px, 90%);
    margin: auto;
}

section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-green { color: var(--logo-green); }
.w-100 { width: 100%; }

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--logo-blue);
    background: rgba(46, 74, 160, 0.06);
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 650px;
}

.section-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

/* --- 4. BOTONES --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--logo-blue);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(46, 74, 160, 0.2);
    transition: all var(--transition);
}

.btn-primary:hover {
    background: #1F367A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 74, 160, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--white);
    color: var(--dark);
    border-radius: var(--radius);
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.btn-secondary:hover {
    border-color: var(--logo-blue);
    color: var(--logo-blue);
    transform: translateY(-2px);
}

/* --- 5. HEADER & NAVBAR --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.navbar {
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: height var(--transition);
}

header.scrolled .navbar {
    height: 68px;
}

.logo img {
    height: 48px;
    object-fit: contain;
    transition: height var(--transition);
}

header.scrolled .logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--logo-blue);
}

/* --- 6. HERO SECTION --- */
#hero {
    margin-top: 85px;
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    background: linear-gradient(150deg, #FFFFFF 40%, #F1F5F9 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1.1;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-image {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.hero-img-wrapper img {
    filter: drop-shadow(0 15px 30px rgba(15, 23, 42, 0.08));
}

/* --- 7. SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 74, 160, 0.15);
}

.service-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.service-icon.blue { background: rgba(46, 74, 160, 0.06); color: var(--logo-blue); }
.service-icon.green { background: rgba(16, 178, 76, 0.06); color: var(--logo-green); }
.service-icon.red { background: rgba(186, 39, 55, 0.06); color: var(--logo-red); }

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* --- 8. ECOSISTEMA (SOLUTIONS) --- */
.solutions-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.solutions-image, .solutions-content {
    flex: 1;
}

.solutions-image img {
    border-radius: var(--radius);
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.solution-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.point-item {
    display: flex;
    gap: 15px;
}

.point-item i {
    font-size: 1.2rem;
    margin-top: 4px;
}

.point-item h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.point-item p {
    font-size: 0.95rem;
    color: var(--gray);
}

/* --- 9. TECH STACK REAL GRID --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tech-card-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: all var(--transition);
}

.tech-card-item:hover {
    border-color: var(--logo-blue);
    box-shadow: var(--shadow-sm);
}

.tech-card-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tech-card-item i.color-blue { color: var(--logo-blue); }
.tech-card-item i.color-red { color: var(--logo-red); }
.tech-card-item i.color-green { color: var(--logo-green); }

.tech-card-item h4 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.tech-card-item p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* --- 10. ¿POR QUÉ CLOSTERING? --- */
.why-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.why-content { flex: 1.2; }
.why-image { flex: 0.8; }
.why-image img { border-radius: var(--radius); }

.why-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 35px;
}

.why-list-item {
    display: flex;
    gap: 20px;
}

.why-badge {
    background: rgba(16, 178, 76, 0.08);
    color: var(--logo-green);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    height: fit-content;
}

.why-list-item h4 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.why-list-item p {
    font-size: 0.95rem;
    color: var(--gray);
}

/* --- 11. CONTACTO --- */
.contact-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-info, .contact-card { flex: 1; }

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.info-item i {
    color: var(--logo-blue);
    font-size: 1.2rem;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.tech-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--light-bg);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--logo-blue);
    background: var(--white);
}

/* --- 12. FOOTER --- */
footer {
    background: #0B0F19;
    color: #64748B;
    padding: 50px 0 30px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1E293B;
    padding-bottom: 30px;
}

.footer-slogan {
    font-weight: 700;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.footer-rights {
    margin-top: 25px;
    text-align: center;
}




/* --- 5. HEADER & NAVBAR (LOGO OPTIMIZADO PARA PC) --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.navbar {
    height: 105px; /* Incrementamos la altura inicial de la barra */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: height var(--transition);
}

header.scrolled .navbar {
    height: 80px; /* Altura más cómoda al hacer scroll */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 64px; /* Tamaño más robusto en PC para que se lea "Tecnología al alcance de todos" */
    width: auto;
    object-fit: contain;
    transition: height var(--transition);
}

header.scrolled .logo img {
    height: 52px; /* Reducción sutil al hacer scroll para no tapar pantalla */
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--logo-blue);
}

/* Línea animada debajo de los links al pasar el mouse */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--logo-green); /* El toque verde del isotipo */
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}