@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: black;
    color: white;
}

@font-face {
	font-family: 'mk-font';
	src: url('../fonts/mk-font.woff2') format('woff2'),
		url('../fonts/mk-font.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

/* Navigation styles */
.main-nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

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

.nav-options a {
    color: #999;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-options > li > a:hover {
    background-color: white;
    color: black;
}

/* Mobile navigation button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 280px;
    border-radius: 10px;
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: #666;
    padding: 0.8rem 1.2rem;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #000;
}

/* Hero section styles */
.hero {
    height: 100vh;
    background-image: url('../images/main.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 5% 5% 5%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Nosotros container styles */
.nosotros-container {
    width: 60%;
    margin: 0 auto;
    text-align: center;
    padding: 6rem 0;
    font-size: large;
}

.nosotros-container span {
    font-size: xx-large;
}

/* Responsive adjustment for nosotros container */
@media (max-width: 768px) {
    .nosotros-container {
        width: 90%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 1rem;
        position: relative;
    }
    
    .nav-options {
        flex-direction: column;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        transform: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

.meraki-heading {
    font-family: mk-font;
}

/* Enhanced responsive styles */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 0.7rem;
        z-index: 1001;
    }

    .logo {
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 32px;
    }

    .nav-options {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 999; /* Ensure it's below the toggle button */
    }

    .nav-options.active {
        display: flex !important; /* Force display when active */
    }

    .nav-options > li {
        width: 100%;
        text-align: center;
    }

    .nav-options a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }

    .dropdown-content {
        position: static;
        background-color: transparent;
        box-shadow: none;
        min-width: 100%;
        transform: none;
        margin-top: 1rem;
    }

    .dropdown-content a {
        color: #999;
        padding: 0.8rem;
        text-align: center;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .hero {
        height: 80vh;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        padding: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter input,
    .subscribe-btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Tablet responsive styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 1rem 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 3rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

    .nav-options.active {
        overflow-y: auto;
        padding: 4rem 2rem;
    }
}

/* Image container styles */
.image-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    max-width: 1920px;
    padding: 0 20px;
}

.curved-image {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
}

.intro {
    padding: 3% 0;
    text-align: justify;
    max-width: 100%;
}

.intro p {
    margin-bottom: 1.5em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .intro {
        padding: 5% 4%;
    }
    
    .nosotros-container {
        font-size: medium;
    }
    
    .nosotros-container span {
        font-size: x-large;
    }
    
    .nosotros h2 {
        font-size: 1.8rem;
        margin: 2rem 0;
    }
    
    .nosotros h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        padding: 0 1rem;
    }
}

@media (max-width: 1280px) {
    .curved-image {
        width: 300px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .image-container {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }
    .curved-image {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 4/5;
        margin-bottom: 20px;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification.warning {
    background-color: #ffc107;
    color: #000;
}

/* Footer Styles */
.site-footer {
    background-color: #1c1c1c;
    padding: 4rem 0 0;
    color: #fff;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

#subscription-message {
    margin-top: 10px;
    font-size: 0.9em;
}

#subscription-message p {
    margin: 0;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
}

.newsletter input::placeholder {
    color: #999;
}

.subscribe-btn {
    width: 45%;
    background-color: #fff;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #e6e6e6;
}

.privacy-note {
    font-size: 0.8rem;
    color: #999;
    margin: 1rem 0;
}

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

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 3rem;
    padding: 1.5rem 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-left a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-left a:hover {
    color: #fff;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.9rem;
}

.reviews {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 1rem;
    }
}