/* ========================================
   MANO AMIGA - ESTILOS PRINCIPALES
   Inspirado en Acciona - Diseño Profesional
   ======================================== */

/* Variables CSS */
:root {
    --color-primary: #E31937;
    --color-primary-dark: #B7152C;
    --color-secondary: #00A651;
    --color-secondary-dark: #008A43;
    --color-dark: #1A1A1A;
    --color-gray-dark: #333333;
    --color-gray: #666666;
    --color-gray-light: #999999;
    --color-light: #F5F5F5;
    --color-white: #FFFFFF;
    --color-accent: #FF6B35;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

/* ========================================
   UTILIDADES
   ======================================== */

.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-dark { color: var(--color-dark) !important; }
.text-white { color: var(--color-white) !important; }

.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-dark { background-color: var(--color-dark) !important; }
.bg-light { background-color: var(--color-light) !important; }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 50px 0;
}

/* ========================================
   BOTONES
   ======================================== */

.btn {
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: var(--transition);
    font-size: 13px;
}

.btn-primary {
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-outline-light {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-outline-dark {
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* ========================================
   NAVEGACIÓN
   ======================================== */

.navbar {
    padding: 0;
    transition: var(--transition);
    z-index: 999;
}

.navbar.scrolled {
    background-color: var(--color-white) !important;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-link,
.navbar.scrolled .navbar-brand {
    color: var(--color-dark) !important;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white) !important;
    padding: 15px 0;
}

.navbar-brand span {
    color: var(--color-primary);
}

.nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 25px 18px !important;
    position: relative;
}

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

.nav-link:hover::after {
    width: calc(100% - 36px);
}

.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    padding: 0;
    margin-top: 0;
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.dropdown-item:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

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

.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
    color: var(--color-primary);
    font-weight: 600;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons .btn {
    margin: 0 10px 10px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    animation: bounce 2s infinite;
}

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

/* ========================================
   SECCIÓN ÁREAS DE ACTIVIDAD
   ======================================== */

.areas-section {
    background-color: var(--color-white);
}

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

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.area-card {
    position: relative;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.area-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition);
}

.area-card:hover .area-overlay {
    background: linear-gradient(to top, rgba(227,25,55,0.9) 0%, rgba(227,25,55,0.6) 50%, rgba(0,0,0,0.3) 100%);
}

.area-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-white);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 20px;
}

.area-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.area-count {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* ========================================
   SECCIÓN PROYECTOS
   ======================================== */

.proyectos-section {
    background-color: var(--color-light);
}

.proyecto-card {
    background: var(--color-white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.proyecto-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.proyecto-img {
    height: 250px;
    overflow: hidden;
}

.proyecto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.proyecto-content {
    padding: 25px;
}

.proyecto-tag {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.proyecto-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.proyecto-text {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.proyecto-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.proyecto-link:hover {
    color: var(--color-primary-dark);
}

.proyecto-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.proyecto-link:hover i {
    margin-left: 10px;
}

/* ========================================
   SECCIÓN MANO AMIGA (DESTACADA)
   ======================================== */

.manoamiga-section {
    position: relative;
    padding: 100px 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.manoamiga-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,166,81,0.9);
}

.manoamiga-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    text-align: center;
}

.manoamiga-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.manoamiga-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.manoamiga-text {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* ========================================
   SECCIÓN NOTICIAS
   ======================================== */

.noticias-section {
    background-color: var(--color-white);
}

.noticia-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-bottom: 3px solid var(--color-light);
    transition: var(--transition);
    padding-bottom: 25px;
}

.noticia-card:hover {
    border-bottom-color: var(--color-primary);
}

.noticia-img {
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
}

.noticia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.noticia-card:hover .noticia-img img {
    transform: scale(1.05);
}

.noticia-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.noticia-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-right: 15px;
}

.noticia-date {
    font-size: 12px;
    color: var(--color-gray-light);
}

.noticia-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.5;
    margin-bottom: 15px;
}

.noticia-text {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.6;
    flex-grow: 1;
}

/* ========================================
   SECCIÓN EMPLEO
   ======================================== */

.empleo-section {
    background-color: var(--color-dark);
    color: var(--color-white);
}

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

.empleo-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.empleo-text p {
    font-size: 16px;
    opacity: 0.8;
    margin: 0;
}

/* ========================================
   SECCIÓN NEWSLETTER
   ======================================== */

.newsletter-section {
    background-color: var(--color-primary);
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    color: var(--color-white);
}

.newsletter-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-text {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 14px;
}

.newsletter-form button {
    padding: 15px 30px;
    background-color: var(--color-dark);
    color: var(--color-white);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--color-secondary);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0 0;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--color-white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--color-gray-light);
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-about {
    font-size: 14px;
    color: var(--color-gray-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 25px 0;
    margin-top: 40px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--color-gray-light);
    text-align: center;
}

.footer-copyright span {
    color: var(--color-primary);
}

/* ========================================
   PÁGINAS INTERNAS - HEADER
   ======================================== */

.page-header {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
}

.page-title {
    font-size: 52px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.page-breadcrumb {
    font-size: 14px;
}

.page-breadcrumb a {
    color: var(--color-white);
    opacity: 0.8;
}

.page-breadcrumb a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.page-breadcrumb span {
    margin: 0 10px;
}

/* ========================================
   PÁGINA NOSOTROS
   ======================================== */

.about-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 25px;
}

.about-content p {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
}

.about-experience {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 30px;
    text-align: center;
}

.about-experience .number {
    font-size: 48px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.about-experience .text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.valores-section {
    background-color: var(--color-light);
}

.valor-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-white);
    transition: var(--transition);
    height: 100%;
}

.valor-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.valor-icon {
    font-size: 50px;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.valor-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.valor-text {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.7;
}

/* ========================================
   PÁGINA SERVICIOS/SOLUCIONES
   ======================================== */

.servicio-card {
    display: flex;
    background: var(--color-white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
}

.servicio-card:hover {
    box-shadow: var(--shadow-lg);
}

.servicio-img {
    width: 40%;
    min-height: 300px;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.servicio-content {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.servicio-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.servicio-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.servicio-text {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

.servicio-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.servicio-list li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-gray);
    border-bottom: 1px solid #eee;
}

.servicio-list li i {
    color: var(--color-secondary);
    margin-right: 10px;
}

/* ========================================
   PÁGINA CONTACTO
   ======================================== */

.contact-info-card {
    background: var(--color-white);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 25px;
}

.contact-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.contact-text {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.6;
}

.contact-form {
    background: var(--color-white);
    padding: 50px;
    box-shadow: var(--shadow-md);
}

.form-control {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: none;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark);
    margin-bottom: 10px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1199px) {
    .hero-title {
        font-size: 52px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--color-white);
        padding: 20px;
    }
    
    .navbar.scrolled .nav-link,
    .navbar .nav-link {
        color: var(--color-dark) !important;
        padding: 12px 0 !important;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .servicio-card {
        flex-direction: column;
    }
    
    .servicio-img,
    .servicio-content {
        width: 100%;
    }
    
    .servicio-img {
        min-height: 200px;
    }
    
    .about-experience {
        left: 20px;
        bottom: -20px;
        padding: 20px;
    }
    
    .about-experience .number {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .area-card {
        height: 300px;
    }
    
    .manoamiga-title {
        font-size: 32px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
