:root {
  --primary-color: #eec401;
  --secondary-color: #cb5241;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.text-secondary-custom {
  color: var(--secondary-color) !important;
}

.bg-secondary-custom {
  background-color: var(--secondary-color) !important;
}

.navbar-brand img {
  max-height: 80px; /* Aumentado de 50px */
}

.tagline {
  font-size: 0.75rem; /* Un poco más pequeño para que encaje bien */
  color: var(--secondary-color) !important;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.nav-link {
  font-weight: 500;
  color: #333;
}

.nav-link:hover {
  color: var(--primary-color);
}

.btn-primary-custom {
  background-color: var(--primary-color);
  color: #000;
  border: none;
}

.btn-primary-custom:hover {
  background-color: #d4af01;
  color: #000;
}

section {
  padding: 60px 0;
}

/* Top Bar Styles */
.top-bar {
    background-color: #333; /* Dark background for professionalism */
    color: #fff;
    font-size: 0.75rem;
    padding: 8px 0;
}

.top-bar i {
    color: var(--primary-color);
    margin-right: 5px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.top-bar-divider {
    margin: 0 10px;
    color: #666;
}

/* Hero Section Styles */
#inicio {
    position: relative;
    background-image: url('../images/HeroInicio.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 0 !important; /* Override inline padding if any */
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Oscurecer imagen */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate-fade-in-left {
    animation-name: fadeInLeft;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate-fade-in-right {
    animation-name: fadeInRight;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* About Section Styles */
.about-img {
    border-radius: 15px;
    box-shadow: 15px 15px 0px var(--primary-color); /* Sombra sólida desplazada */
    border: 5px solid #fff;
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: translateY(-5px);
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px; /* Altura fija para las cards */
    perspective: 1000px;
    margin-bottom: 30px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    border-radius: 10px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flip-card-front {
    background-color: #fff;
    color: black;
    border: 1px solid #eee;
}

.flip-card-back {
    background-color: var(--primary-color);
    color: #000; /* Texto negro para contraste con amarillo */
    transform: rotateY(180deg);
    overflow-y: auto; /* Por si el texto es muy largo */
}

.flip-card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Team/Equipment Section Styles */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 350px; /* Altura fija */
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(238, 196, 1, 0.9); /* Primary color with opacity */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #000;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.team-desc {
    color: #333;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.team-card:hover .team-title,
.team-card:hover .team-desc {
    transform: translateY(0);
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-logo {
    max-height: 60px;
    filter: grayscale(100%) invert(1); /* Invert colors to make black text white */
    opacity: 0.8;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: grayscale(100%) invert(1) brightness(1.2); /* Keep it white/bright on hover */
    opacity: 1;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-links a i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.copyright {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Navbar Styles */
.navbar-custom {
    background-color: var(--primary-color); /* Primary color background */
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-custom .nav-link {
    color: #000 !important; /* Black text for contrast */
    font-weight: 600;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fff !important; /* White on hover */
}

.tagline {
    font-size: 0.75rem;
    color: #000; /* Black text */
    margin-top: -5px;
    letter-spacing: 0.5px;
    display: block;
    font-weight: 600;
}

/* Toggler icon color fix for yellow navbar (black icon) */
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}






