/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== VARIABLES - COLORES OFICIALES AMBUAIR ===== */
:root {
    --primary-color: #D43429;     /* Maximum Red */
    --secondary-color: #878787;   /* Battleship Gray */
    --accent-color: #25D366;      /* WhatsApp Green */
    --text-color: #000000;        /* Black */
    --text-light: #878787;        /* Battleship Gray */
    --bg-light: #FDF4E7;          /* Old Lace */
    --bg-dark: #000000;           /* Black */
    --white: #ffffff;
    --border-color: #878787;      /* Battleship Gray */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn--primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn--whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn--whatsapp:hover {
    background-color: #1ebf5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    max-width: none;
}

.nav__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link--emergency {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
}

.nav__link--emergency:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0 60px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/0.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 52, 41, 0.7) 0%, rgba(135, 135, 135, 0.5) 100%);
    z-index: 1;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__title--highlight {
    color: var(--bg-light);
}

.hero__description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-light);
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero__image {
    display: none;
}

.hero__img {
    display: none;
}

/* ===== DIFFERENTIATORS SECTION ===== */
.differentiators {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.differentiators__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.differentiator {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.differentiator__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.differentiator__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.differentiator__description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== EMERGENCY CTA SECTION ===== */
.emergency-cta {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.emergency-cta::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" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.emergency-cta__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.emergency-cta__text {
    flex: 1;
}

.emergency-cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.emergency-cta__description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.emergency-cta__buttons {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.btn--emergency {
    background-color: var(--white);
    color: #e74c3c;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.btn--emergency:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: #f8f9fa;
}

.btn--emergency i {
    font-size: 1.5rem;
}

.btn--emergency small {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.btn--whatsapp-emergency {
    background-color: #25D366;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp-emergency:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background-color: #1ebf5a;
}

.btn--whatsapp-emergency i {
    font-size: 1.5rem;
}

.btn--whatsapp-emergency small {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

/* ===== SECTIONS ===== */
.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section__description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

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

.service__title {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.service__description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== TYPES OF TRANSFERS SECTION ===== */
.types-transfers {
    padding: 80px 0;
    background-color: var(--white);
}

.transfers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.transfer {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.transfer__title {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.transfer__features {
    list-style: none;
    padding: 0;
}

.transfer__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

.transfer__features li i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

/* ===== DIFFERENTIATING FACTORS SECTION ===== */
.differentiating-factors {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.factors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.factor {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

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

.factor__title {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.factor__description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.about__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.about__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: grayscale(100%);
}

.about__content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about__description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature span {
    color: var(--text-color);
}

.about__img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact__items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact__icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.contact__icon--whatsapp {
    background-color: #25D366;
}

.contact__details h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact__details p {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact__details span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact__phone {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact__phone:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== FORM STYLES ===== */
.contact__form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact__form h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
    background-color: var(--white);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 52, 41, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer__logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer__title {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer__social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: start;
        padding: 2rem 0;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }
    
    .nav__menu.show {
        left: 0;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .hero {
        padding: 80px 0 50px;
        text-align: center;
    }
    
    .hero__container {
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero::before {
        background-position: right center;
        opacity: 0.3;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .emergency-cta__content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .emergency-cta__buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .emergency-cta__title {
        font-size: 2rem;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }

    .transfers__grid {
        grid-template-columns: 1fr;
    }

    .factors__grid {
        grid-template-columns: 1fr;
    }
    
    .about__content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service {
        padding: 1.5rem;
    }
    
    .contact__form {
        padding: 1.5rem;
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.service,
.contact__item,
.transfer,
.factor {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.float-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.float-wa:hover {
    transform: scale(1.1);
}

.float-wa svg {
    width: 28px;
    height: 28px;
}

.float-wa a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Responsive para botón flotante */
@media (max-width: 768px) {
    .float-wa {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
    }

    .float-wa svg {
        width: 22px;
        height: 22px;
    }
}

/* ===== GALLERY SECTION ===== */
.gallery {
    padding: 80px 0;
    background-color: var(--white);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    height: 250px;
}

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

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

.gallery__item:hover .gallery__img {
    transform: scale(1.1);
}

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 52, 41, 0.8) 0%, rgba(135, 135, 135, 0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.gallery__overlay span {
    font-size: 1rem;
    font-weight: 500;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

.modal__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.modal__img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.modal__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.modal__close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Gallery responsive */
@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery__item {
        height: 200px;
    }
    
    .modal__close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
    
    .modal__img {
        max-width: 95%;
        max-height: 95%;
    }
} 