/*
Theme Name: Consulting
Description: A professional consulting theme with light design and institutional colors
Author: Your Name
Version: 2.0
*/

/* style.css */

:root {
    --primary-color: #B31E2D;      /* Rojo institucional suave */
    --secondary-color: #2E4A7D;    /* Azul acero confiable */
    --background-color: #F9F9F9;   /* Blanco cálido */
    --support-color: #E5D9C7;      /* Arena claro */
    --cta-background: #EDF2FA;     /* Azul claro para secciones CTA */
    --text-primary: #2D2D2D;       /* Gris oscuro */
    --text-secondary: #6B6B6B;     /* Gris medio */
    --white: #ffffff;
    --footer-bg: #3A3A3A;          /* Gris oscuro para footer */
    --accent-color: #DADADA;       /* Bordes suaves */
    --font-main: 'Segoe UI', sans-serif;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-primary);
    scroll-behavior: smooth;
    line-height: 1.6;
}

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

a:hover {
    color: var(--secondary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-speed);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed);
}

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

/* Botón destacado en header */
.nav-cta {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.nav-cta:hover {
    background: var(--secondary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.mobile-menu:hover {
    color: var(--primary-color);
}

section {
    padding: 80px 20px;
    margin-top: 70px;
}

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

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--background-color) 100%);
    padding: 120px 20px 100px;
    overflow: hidden;
    margin-top: 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .cta-buttons {
    margin-top: 40px;
}

.btn {
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 74, 125, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Floating Icons - más sutiles */
.floating-element {
    position: absolute;
    animation: float 8s ease-in-out infinite;
    color: var(--primary-color);
    opacity: 0.08;
    font-size: 2rem;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Services */
.services {
    background: var(--white);
    padding: 100px 20px;
}

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

.service-card {
    background: var(--background-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-speed);
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(179, 30, 45, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About */
.about {
    background: var(--cta-background);
    padding: 100px 20px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-around;
    flex: 1;
}

.stat-item {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 150px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Proyectos/Casos de Éxito */
.projects {
    background: var(--white);
    padding: 100px 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--cta-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--support-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact */
.contact {
    background: var(--background-color);
    padding: 100px 20px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-item div h4 {
    color: var(--text-primary);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.contact-item div p {
    color: var(--text-secondary);
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--accent-color);
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
    box-sizing: border-box;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(46, 74, 125, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    cursor: pointer;
    transition: all var(--transition-speed);
    width: 100%;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 74, 125, 0.3);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--footer-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--accent-color);
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    color: #CCCCCC;
    line-height: 1.6;
}

.footer-section a {
    color: #CCCCCC;
    transition: color var(--transition-speed);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(179, 30, 45, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #AAAAAA;
}

/* Animaciones mejoradas */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 80px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .btn {
        display: block;
        margin: 10px auto;
        width: fit-content;
        min-width: 200px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .stats {
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 20px;
    }
    
    /* Mobile Navigation */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid var(--accent-color);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .nav-container {
        position: relative;
    }

    .nav-cta {
        margin-top: 10px;
    }
}