/* Custom CSS for Ganadería Premium Landing Page */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 80px; /* Increased padding to prevent navbar overlap */
}

/* Section spacing to prevent navbar overlap */
section {
    scroll-margin-top: 80px; /* Ensures proper scroll positioning */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    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 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-image {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Hero Image Animation (DISABLED) */
.hero-image i {
    font-size: 8rem !important;
    opacity: 0.8;
    /* animation: float 3s ease-in-out infinite; */
}

/*
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
*/

/* Feature Icons */
.feature-icon i {
    font-size: 3rem;
    color: #198754;
    margin-bottom: 1rem;
}

/* Service Items */
.service-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #198754;
}

/* Price Badge for Services */
.price-badge {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #198754, #20c997);
    border-radius: 20px;
    text-align: center;
}

.price-badge span {
    color: white;
    font-size: 1.1rem;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon i {
    font-size: 2.5rem;
    color: #198754;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Card Image Styles */
.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* Contact Icons */
.contact-icon i {
    font-size: 2.5rem;
    color: #198754;
}

/* Stats Section */
.stat-item {
    padding: 2rem 0;
}

.stat-item h2 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Buttons */
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #ffb300;
    border-color: #ffb300;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Social Links */
.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffc107 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-image i {
        font-size: 4rem !important;
        margin-top: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
    
    /* Ajustar altura de imágenes en móvil */
    .card-img-top {
        height: 200px;
    }
}

@media (max-width: 576px) {
    /* Imágenes más pequeñas en pantallas muy pequeñas */
    .card-img-top {
        height: 180px;
    }
    
    .card-body {
        padding: 1rem 0.75rem;
    }
}

/* Animations (DISABLED) */
/*
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}
*/

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #198754;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #157347;
}
