/* Palette de cores extraída das imaxes de EUMAXÍN */
:root {
    --primary-color: #B55333;       /* Terracota / Teja emblemático de EUMAXÍN */
    --primary-hover: #964025;       /* Terracota máis escuro para botóns */
    --accent-green: #A9B299;        /* Verde sabia / suave */
    --accent-peach: #F4C1A8;        /* Melocotón suave */
    --bg-light: #F8F4EE;            /* Crema / marfil de fondo cálido */
    --bg-card: #FFFFFF;             /* Blanco puro para tarxetas */
    --text-main: #2D241E;           /* Marrón moi escuro / case negro para texto */
    --text-muted: #6B625B;          /* Marrón/Gris suave para subtítulos */
    --border-color: #E6DFD5;        /* Liña suave neutra */
    --shadow: 0 4px 15px rgba(181, 83, 51, 0.08);
    --transition: all 0.3s ease;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* Utiles */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 83, 51, 0.25);
}

/* Header & Nav */
.header {
    background-color: var(--bg-card);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: -4px;
    letter-spacing: 0;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(244, 193, 168, 0.35) 0%, rgba(169, 178, 153, 0.25) 100%);
    padding: 90px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-main);
    max-width: 650px;
    margin: 0 auto 30px auto;
    /*font-style: italic;*/
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 16px;
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--bg-card);
}

/* Contacto */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 35px 40px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    width: 290px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    background-color: #FFFBF7;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--text-main);
    color: var(--bg-light);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Responsivo (Móbiles) */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .contact-card {
        width: 100%;
    }
}
