/* ============================================
   GESTOGAN - ESTILOS PARA PÁGINA DE INICIO
   Sistema de Gestión Ganadera
   ============================================ */

/* ============================================
   PALETA DE COLORES CORPORATIVA GESTOGAN
   ============================================ */
:root {
    /* Colores Corporativos Principales */
    --primary-color: #97C777;          /* Verde principal */
    --primary-dark: #7AB05A;           /* Verde oscuro (generado) */
    --primary-light: #B5D99A;          /* Verde claro (generado) */
    --secondary-color: #333333;        /* Negro/Gris oscuro */
    --secondary-light: #4D4D4D;        /* Gris medio (generado) */
    
    /* Colores de Sistema (mantienen funcionalidad) */
    --success-color: #97C777;          /* Usar verde corporativo */
    --warning-color: #E8B44D;          /* Amarillo complementario (generado) */
    --danger-color: #D96459;           /* Rojo complementario (generado) */
    --info-color: #77B9C7;             /* Azul complementario (generado) */
    
    /* Escala de Grises Corporativa */
    --gray-900: #333333;               /* Negro corporativo */
    --gray-800: #4D4D4D;               /* Gris muy oscuro */
    --gray-700: #666666;               /* Gris oscuro */
    --gray-600: #808080;               /* Gris medio */
    --gray-500: #999999;               /* Gris */
    --gray-400: #B3B3B3;               /* Gris claro */
    --gray-300: #D3D3D3;               /* Gris claro corporativo */
    --gray-200: #E6E6E6;               /* Gris muy claro */
    --gray-100: #F5F5F5;               /* Casi blanco */
    --white: #FFFFFF;                  /* Blanco corporativo */
    
    /* Sombras con colores corporativos */
    --shadow-primary: rgba(151, 199, 119, 0.3);
    --shadow-dark: rgba(51, 51, 51, 0.15);
}

/* ============================================
   RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: var(--gray-900);
    background-color: var(--white);
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gray-900) !important;
    gap: 12px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--shadow-primary);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    overflow: hidden;
    min-height: 100vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,90.7C960,96,1056,128,1152,133.3C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: var(--gray-100);
}

.hero-buttons .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.hero-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: var(--white);
    opacity: 0.7;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray-600);
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(151, 199, 119, 0.2);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.feature-icon.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--primary-dark) 100%);
}

.feature-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #D4A33D 100%);
}

.feature-icon.bg-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #5FA8B5 100%);
}

.feature-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-dark);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(151, 199, 119, 0.25);
    border-color: var(--primary-color);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(151, 199, 119, 0.95) 0%, rgba(122, 176, 90, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay i {
    font-size: 4rem;
    color: var(--white);
}

.service-content {
    padding: 2rem;
}

.service-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-content ul {
    list-style: none;
    padding: 0;
}

.service-content ul li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-content ul li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-primary);
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(151, 199, 119, 0.2);
    border-color: var(--primary-color);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-author h6 {
    margin: 0;
    font-weight: 700;
    color: var(--gray-900);
}

.testimonial-author p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ============================================
   DEMO SECTION
   ============================================ */
.demo-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-dark);
    border: 1px solid var(--gray-200);
}

.demo-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.demo-list {
    list-style: none;
    padding: 0;
}

.demo-list li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.demo-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.demo-form {
    background: var(--gray-100);
    padding: 2.5rem;
    border-radius: 16px;
}

.demo-form .form-control {
    padding: 1rem 1.2rem;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.demo-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(151, 199, 119, 0.15);
    outline: none;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(151, 199, 119, 0.2);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.contact-info-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-dark);
    border: 1px solid var(--gray-200);
}

.contact-form-card .form-control,
.contact-form-card textarea {
    padding: 1rem 1.2rem;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(151, 199, 119, 0.15);
    outline: none;
}

/* ============================================
   FOOTER PARA INDEX
   ============================================ */
.app-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gray-800) 100%);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand i {
    font-size: 32px;
    color: var(--primary-color);
}

.footer-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-copyright {
    font-size: 14px;
    color: var(--gray-300);
    margin: 0 0 0.5rem 0;
}

.footer-version {
    color: var(--gray-500);
    font-size: 12px;
    margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-primary);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .demo-card,
    .contact-form-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

.brand-logo {
    height: 50px;
    width: auto; /* Mantiene la proporción de la imagen */
    object-fit: contain; /* Asegura que la imagen no se distorsione */
}