/*
 * GRUPO SOLER - Design System
 * Colors: Navy Blue (#000350), Gold (#feac00)
 */

:root {
    --primary-color: #000350;
    --accent-color: #feac00;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

nav.scrolled {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 60px;
    transition: var(--transition);
    mix-blend-mode: multiply; /* Removes white background from header logo over navy blue */
}

nav.scrolled .logo img {
    mix-blend-mode: normal; /* Normal state when header is white */
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--white);
    font-size: 15px;
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--primary-color);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.social-nav {
    display: flex;
    gap: 15px;
}

.social-nav a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

nav.scrolled .social-nav a {
    background: var(--primary-color);
    color: var(--white);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #000350 0%, #00058e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(254, 172, 0, 0.05) 0%, transparent 70%);
    top: -25%;
    left: -25%;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-tagline {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
    animation: fadeInUp 0.8s ease backwards;
}

.hero h1 {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(254, 172, 0, 0.3);
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(254, 172, 0, 0.4);
}

/* --- Sections --- */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* --- Services Grid (Integral) --- */
.services-integral {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,3,80,0.2);
    border-color: var(--accent-color);
}

.service-card img {
    height: 80px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.service-card p {
    font-size: 15px;
    opacity: 0.8;
}

/* --- Steps Section --- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

#historia, #soluciones, #pasos {
    scroll-margin-top: 100px;
}

.step-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    width: 60px;
}

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

/* --- Professional Solutions (Service Cards) --- */
.pro-solutions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pro-card {
    background: var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pro-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.pro-logo-area {
    background: #ffffff;
    padding: 30px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 2px solid var(--accent-color);
}

.pro-logo-area img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.pro-card:hover .pro-logo-area img {
    transform: scale(1.1);
}

.pro-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pro-content h3 {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.pro-content p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-about img {
    height: 70px;
    margin-bottom: 30px;
}

.footer-about p {
    opacity: 0.7;
    margin-bottom: 30px;
}

.footer-links h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.footer-contact p {
    opacity: 0.7;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    opacity: 0.6;
}

/* --- Animations & Effects --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Special Animations --- */
.text-rotator {
    display: inline-block;
    color: #feac00;
    text-align: center;
    margin: 5px auto 0;
    font-weight: 700;
}

@keyframes rotateText {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: #feac00;
    margin-left: 2px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary-color);
    margin-left: 5px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Founder / Historia Section --- */
.founder-story {
    background: linear-gradient(135deg, #ffffff 0%, #f7f8fb 100%);
    position: relative;
    overflow: hidden;
}

.founder-story::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(254, 172, 0, 0.08);
    top: -120px;
    right: -120px;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.section-eyebrow {
    display: inline-block;
    color: var(--accent-color);
    background: rgba(254, 172, 0, 0.12);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.founder-content h2 {
    font-size: 42px;
    line-height: 1.15;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.founder-content p {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 16px;
}

.founder-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.founder-highlights div {
    background: var(--white);
    border: 1px solid rgba(0, 3, 80, 0.08);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 3, 80, 0.06);
}

.founder-highlights strong {
    display: block;
    color: var(--primary-color);
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 6px;
}

.founder-highlights span {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.4;
}

.founder-btn {
    margin-top: 5px;
}

.founder-image {
    background: var(--white);
    padding: 14px;
    border-radius: 26px;
    box-shadow: 0 25px 70px rgba(0, 3, 80, 0.18);
    transform: rotate(1deg);
}

.founder-image img {
    border-radius: 18px;
    width: 100%;
    height: auto;
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 54px; }
    .steps-container, .pro-solutions { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .founder-grid { grid-template-columns: 1fr; }
    .founder-content h2 { font-size: 34px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .hero h1 { font-size: 38px; }
    .text-rotator { display: block; margin-left: 0; min-width: auto; }
    .steps-container, .pro-solutions { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .founder-highlights { grid-template-columns: 1fr; }
    .founder-image { transform: none; }
    .founder-content h2 { font-size: 30px; }
    section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
}
