/* 
    El Rincón de La Corita - Design System
    Palette:
    - Cyan: #00BCD4 (Primary)
    - Navy: #002D40 (Secondary/Dark)
    - Light Navy: #004D66
    - Cream: #FDFCF0
    - Warm White: #FFFFFF
    - Text: #333333
*/

:root {
    --primary: #00BCD4;
    --primary-dark: #0097A7;
    --secondary: #002D40;
    --secondary-light: #004D66;
    --accent: #FF9800;
    --bg-light: #FDFCF0;
    --bg-white: #FFFFFF;
    --text-dark: #002D40;
    --text-muted: #556B73;
    --white: #ffffff;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    
    --transition: all 0.3s ease;
    --radius: 12px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.img-rounded {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.section {
    padding: 5rem 0;
}

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

.bg-dark {
    background-color: var(--secondary);
    color: var(--white);
}

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

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

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

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

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

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text .accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,45,64,0.8), rgba(0,45,64,0.3));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.badge {
    background: rgba(0, 188, 212, 0.2);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary);
    backdrop-filter: blur(4px);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

/* About Section */
.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

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

.service-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-icon i {
    width: 32px;
    height: 32px;
}

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

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

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.service-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.news-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.news-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.news-item:hover .news-img {
    transform: scale(1.05);
}

.news-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.news-text.collapsed {
    max-height: 4.8em; /* Roughly 3 lines */
}

.news-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(transparent, var(--bg-white));
}

.read-more-btn {
    margin-top: auto;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    font-size: 0.95rem;
}

.read-more-btn:hover {
    color: var(--primary-dark);
}

/* Contact Section */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
}

.detail-item i {
    color: var(--primary);
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    font-size: 1.1rem;
}

.detail-item p {
    opacity: 0.8;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    background: #1877F2;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    width: fit-content;
}

.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid rgba(255,255,255,0.1);
}

/* Footer */
.footer {
    background: #001a26;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.7;
}

.watermark .capix {
    font-weight: 700;
    color: var(--primary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary);
    color: var(--white);
    padding: 1.5rem 0;
    z-index: 2000;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-banner.hidden {
    display: none;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 3000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu logic in JS */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
}
