/* ==========================================================================
   TEXFIX - ESTILOS PRINCIPALES
   ========================================================================== */

/* --- VARIABLES --- */
:root {
    --primary-color: #0A66C2; /* Azul Profesional */
    --primary-dark: #074b8f;
    --primary-light: #e6f0fa;
    --secondary-color: #0d1117; /* Oscuro */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e4e8;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(10, 102, 194, 0.08);
    --shadow-lg: 0 15px 35px rgba(10, 102, 194, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s ease;
}

/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 100px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--secondary-color); }
.text-white { color: var(--bg-white); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4 {
    color: var(--bg-white);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 15px; }

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

.underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.underline.bg-white { background-color: var(--bg-white); }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 1rem;
}

.btn i { margin-right: 8px; }

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 102, 194, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

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

.btn-block {
    display: block;
    width: 100%;
}

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

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar.scrolled .logo { color: var(--secondary-color); }

.logo span { color: var(--primary-color); }
.logo i { color: var(--primary-color); }

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

.nav-link {
    color: var(--bg-white);
    font-weight: 500;
    position: relative;
}

.navbar.scrolled .nav-link { color: var(--text-main); }

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

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--bg-white);
    cursor: pointer;
}
.navbar.scrolled .menu-toggle { color: var(--secondary-color); }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('img/hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(13, 17, 23, 0.9), rgba(13, 17, 23, 0.5));
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
    color: var(--bg-white);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e1e4e8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* --- BENEFITS --- */
.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-list { margin-top: 30px; }

.benefits-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.benefits-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 4px;
}

.benefits-list h4 { margin-bottom: 5px; font-size: 1.1rem; }
.benefits-list p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.benefits-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 { font-size: 2rem; margin-bottom: 5px; color: var(--secondary-color); }
.stat-card p { margin: 0; color: var(--text-muted); font-weight: 500; }

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image { position: relative; }

.rounded-shadow {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.experience-badge .number { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.experience-badge .text { font-size: 0.9rem; font-weight: 500; }

.lead { font-size: 1.2rem; color: var(--secondary-color); font-weight: 500; }

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h4 { color: var(--bg-white); margin-bottom: 5px; }
.gallery-overlay p { color: #ccc; margin: 0; font-size: 0.9rem; }

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    color: var(--text-main);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 50px; height: 50px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.author-info h4 { margin: 0; font-size: 1.1rem; }
.author-info span { font-size: 0.85rem; color: var(--text-muted); }

.rating { color: #FFB800; font-size: 0.9rem; }

/* --- CONTACT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 50px;
}

.contact-info h2 { color: var(--bg-white); margin-bottom: 20px; }
.contact-info p { color: rgba(255,255,255,0.8); margin-bottom: 40px; }

.info-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-list i { font-size: 1.5rem; margin-top: 5px; }
.info-list h4 { color: var(--bg-white); margin-bottom: 5px; font-size: 1.1rem; }
.info-list p { color: rgba(255,255,255,0.8); margin: 0; font-size: 0.95rem; }

.contact-form-container { padding: 50px; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--secondary-color); font-size: 0.95rem; }

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

/* --- FOOTER --- */
.footer { background-color: var(--secondary-color); color: #fff; padding: 60px 0 20px; }

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

.footer-brand p { color: #a0aab2; margin-top: 20px; max-width: 400px; }

.footer-links h3, .footer-social h3 { color: var(--bg-white); font-size: 1.2rem; margin-bottom: 20px; }

.footer-links ul li { margin-bottom: 12px; }
.footer-links a { color: #a0aab2; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }

.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 40px; height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-icons a:hover { background-color: var(--primary-color); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #a0aab2;
    font-size: 0.9rem;
}

/* --- FACEBOOK MESSENGER FLOAT BUTTON --- */
/* Cambiado a azul según lo solicitado */
.messenger-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0084FF; /* Color oficial de FB Messenger / Azul brillante */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.messenger-float:hover {
    background-color: #006bce;
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.6);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .benefits-content, .about-grid, .contact-wrapper, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper { display: flex; flex-direction: column-reverse; }
    
    .hero-content h1 { font-size: 3rem; }
    
    .experience-badge { right: 0; bottom: -20px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0; left: -100%;
        width: 80%; height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active { left: 0; }
    
    .nav-link { color: var(--secondary-color); font-size: 1.2rem; }
    
    .nav-btn { display: none; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .section { padding: 60px 0; }
}
