/* GRom Soluciones Digitales - Stylesheet v1.0
   Design: Corporate, High-Tech, Professional
*/

:root {
    --primary-dark: #071624;
    --primary-blue: #0a2540;
    --accent-gold: #c5a059;
    --accent-cyan: #00d4ff;
    --text-light: #ffffff;
    --text-gray: #a0aec0;
    --bg-light: #f4f7f9;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reseteo y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--primary-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; }
p { line-height: 1.7; }
.text-center { text-align: center; }
.section-padding { padding: 6rem 5%; }

/* Animaciones de Entrada */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header y Navegación */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

header.scrolled {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1rem 5%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-container img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo-text {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

nav a:hover::after { width: 100%; }

/* Hero Section con Video */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 22, 36, 0.9) 0%, rgba(10, 37, 64, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content h1 span { color: var(--accent-gold); }

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #d4af6a;
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-cyan);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--accent-cyan);
    color: var(--primary-dark);
}

/* Servicios */
.services { background-color: #fff; }

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--accent-gold);
    bottom: 0;
    left: 25%;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: 8px;
    border-bottom: 4px solid transparent;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 0;
    background: var(--primary-blue);
    transition: var(--transition-smooth);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card:hover::before { height: 100%; }
.service-card:hover h3, .service-card:hover p { color: var(--text-light); }

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    transition: var(--transition-smooth);
}

.service-card p {
    color: #555;
    transition: var(--transition-smooth);
}

/* Stats CTA */
.stats-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    text-align: center;
}

.stats-cta h2 { font-size: 2.5rem; margin-bottom: 2rem; }

/* Contacto */
.contact { background-color: var(--bg-light); }

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-gray);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 35px; height: 35px; fill: currentColor; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    nav ul { display: none; }
    .btn-outline { margin-left: 0; margin-top: 15px; display: block; }
    .contact-container { padding: 2rem; }
    .section-padding { padding: 4rem 5%; }
}
