/* ====================================
   Grupo San Uriel - Estilos Personalizados
   ====================================== */

/* Variables CSS */
:root {
    /* Colores principales */
    --primary-color: #1a5f7a;
    --primary-dark: #134b5f;
    --primary-light: #2d7d9a;
    --secondary-color: #159895;
    --accent-color: #57c5b6;
    --accent-light: #9fe8df;

    /* Colores neutros */
    --dark: #1a1a2e;
    --dark-gray: #2d3436;
    --gray: #636e72;
    --light-gray: #b2bec3;
    --off-white: #f8f9fa;
    --white: #ffffff;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);

    /* Sombras */
    --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 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.25);

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Bordes */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

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

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

/* ====================================
   Navbar
   ====================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 95, 122, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition-normal);
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: var(--white) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    animation: fadeInDown 0.3s ease;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--dark-gray);
    transition: var(--transition-fast);
}

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

/* ====================================
   Hero Section
   ====================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    transform: skewY(-2deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-xl);
    color: var(--white);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ====================================
   Buttons
   ====================================== */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-xl);
    color: var(--white);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--white);
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-xl);
    color: var(--white);
    font-weight: 600;
    transition: var(--transition-normal);
}

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

/* ====================================
   Section Styles
   ====================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

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

/* ====================================
   Cards
   ====================================== */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition-normal);
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Division Cards (Home Page) */
.division-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.division-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.division-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}

.division-card:hover .division-card-bg {
    transform: scale(1.1);
}

.division-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.3) 100%);
    transition: var(--transition-normal);
}

.division-card:hover .division-card-overlay {
    background: linear-gradient(to top, rgba(26, 95, 122, 0.95) 0%, rgba(26, 95, 122, 0.5) 100%);
}

.division-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.division-card:hover .division-card-content {
    transform: translateY(0);
}

.division-card-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.division-card-content p {
    opacity: 0;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.division-card:hover .division-card-content p {
    opacity: 1;
}

/* ====================================
   About Section
   ====================================== */
.about-section {
    background: var(--off-white);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-badge h4 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0;
}

.about-badge span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ====================================
   Features/Stats Section
   ====================================== */
.stats-section {
    background: var(--gradient-dark);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
}

.stat-item {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ====================================
   Contact Section
   ====================================== */
.contact-section {
    background: var(--off-white);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-control {
    border: 2px solid #e9ecef;
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--gray);
    margin-bottom: 0;
}

/* ====================================
   Footer
   ====================================== */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--accent-color);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    transition: var(--transition-normal);
}

.footer-links a:hover::before {
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
}

/* ====================================
   Page Hero (Inner Pages)
   ====================================== */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-dark);
    text-align: center;
    padding-top: 100px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.page-hero.inmobiliaria::before {
    background-image: url('../images/inmobiliaria-hero.jpg.png');
}

.page-hero.gasolineras::before {
    background-image: url('../images/gasolinera-hero.png');
}

.page-hero.llantera::before {
    background-image: url('../images/llantera-hero.png');
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb-custom {
    justify-content: center;
    margin-top: 1.5rem;
}

.breadcrumb-custom .breadcrumb-item,
.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--accent-color);
}

.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ====================================
   Price Cards (Llantera)
   ====================================== */
.price-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    height: 100%;
}

.price-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.price-card .service-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price-card .price span {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
}

/* ====================================
   Fuel Cards (Gasolineras)
   ====================================== */
.fuel-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
}

.fuel-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.fuel-card-header {
    padding: 2rem;
    color: var(--white);
    text-align: center;
}

.fuel-card-header.magna {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.fuel-card-header.premium {
    background: linear-gradient(135deg, #F44336 0%, #C62828 100%);
}

.fuel-card-header.diesel {
    background: linear-gradient(135deg, #212121 0%, #424242 100%);
}

.fuel-card-header h4 {
    color: var(--white);
    margin-bottom: 0;
}

.fuel-card-body {
    padding: 2rem;
}

.fuel-card-body p {
    color: var(--gray);
    margin-bottom: 0;
}

/* ====================================
   Promo Banner
   ====================================== */
.promo-banner {
    background: var(--gradient-accent);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.promo-banner h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.promo-banner ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.promo-banner ul li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.promo-banner ul li i {
    margin-right: 0.5rem;
}

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

.gallery-item img {
    transition: var(--transition-slow);
}

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

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 95, 122, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    font-size: 2rem;
    color: var(--white);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================
   Responsive Styles
   ====================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: rgba(26, 95, 122, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        margin-top: 1rem;
    }

    .division-card {
        height: 300px;
    }

    .about-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .hero-badge {
        width: 100%;
        max-width: 200px;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ====================================
   Utility Classes
   ====================================== */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-dark {
    background: var(--gradient-dark) !important;
}

.bg-gradient-accent {
    background: var(--gradient-accent) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.mb-6 {
    margin-bottom: 4rem !important;
}

.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}