/* ========================================= */
/* 1. REGRAS GERAIS E BASE                   */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
}

/* Container de Largura Máxima */
.contact-container {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

/* Botões Padrão (.btn) */
.btn {
    padding: 15px 25px;
    background: #e63946;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

/* ========================================= */
/* 2. NAVEGAÇÃO E FLUTUANTES                 */
/* ========================================= */

/* Navegação Principal (Header) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #AA151B; /* Vermelho Escuro da Bandeira */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.logo {
    font-size: 24px;
    color: #fffffffb; /* Amarelo (Gualda) */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: white; /* Texto em branco */
    font-weight: bold;
    transition: color 0.3s;
}

nav a.active,
nav a:hover {
    color: #F1BF00; /* Destaque com o Amarelo */
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 25px;
    right: 25px;
    background-color: #fdfdfd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform 0.2s ease;
}

.whatsapp-float img {
    width: 38px;
    height: 38px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/* ========================================= */
/* 3. ANIMAÇÕES (KEYFRAMES)                  */
/* ========================================= */

/* Animação para a Página SOBRE */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação para a Página LOJA */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ========================================= */
/* 4. PÁGINA INICIAL (INDEX.HTML)            */
/* ========================================= */

/* Hero Section (Banner) */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: url('../img/spain-flag-banner.jpg') center/cover no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: #AA151B;
    color: white; 
    max-height: 500px; 
    overflow: hidden;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); 
}

/* Seção de Valor */
.value-prop-section {
    background: #fcfcfc; 
    padding: 80px 20px;
    text-align: center;
}

.value-prop-section h2 {
    font-size: 38px;
    margin-bottom: 10px;
    color: #333;
}

.value-prop-section p {
    font-size: 19px;
    color: #555;
    margin-bottom: 60px;
}

.secondary-btn {
    background: #333; 
    color: white;
    margin-top: 20px;
}

.secondary-btn:hover {
    background: #555;
}

/* Card Flip 3D */
.value-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px; 
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s; 
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid #e63946;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-front h3 {
    color: #e63946;
    font-size: 24px;
    margin-bottom: 5px;
}
.flip-card-front p {
    color: #888;
    font-size: 16px;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: #e63946;
    color: white;
    padding: 25px;
    justify-content: space-around;
}

.flip-card-back h3 {
    color: white;
    font-size: 20px;
    margin-top: 0;
}

.flip-card-back p {
    color: #eee;
    font-size: 15px;
    line-height: 1.5;
}

.small-btn {
    background: white;
    color: #e63946;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    align-self: flex-start;
    margin-top: 15px;
    transition: background 0.2s;
}

.small-btn:hover {
    background: #f7f7f7;
}

/* ========================================= */
/* 5. PÁGINA SERVIÇOS (SERVICES.HTML)        */
/* ========================================= */
.services-container {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.service-intro {
    max-width: 700px;
    margin: 15px auto 50px;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
    border-top: 5px solid #e63946;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #e63946;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

/* ========================================= */
/* 6. PÁGINA SOBRE (ABOUT.HTML)              */
/* ========================================= */

.about-section {
    padding: 60px 20px;
}

.about-content {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    color: #e63946;
    margin-bottom: 40px;
}

.story-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 40px;
    align-items: flex-start; 
    justify-content: center;
    text-align: left;
}

/* Coluna da Foto/Detalhes */
.story-image-wrapper {
    width: 320px; 
    min-width: 320px;
    flex-shrink: 0; 
    text-align: center;
    
    /* Animação */
    opacity: 0; 
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.2s; 
}

.profile-img {
    width: 100%;
    max-width: 350px; 
    height: auto;
    border-radius: 12px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
    object-fit: cover;
}

/* Detalhes do Perfil (Nome/Cargo) */
.profile-details {
    margin-top: 20px;
    margin-bottom: 5px; 
    text-align: center;
    color: #333;
}

.profile-details h3 {
    font-size: 26px;
    color: #e63946;
    margin: 0;
}

.profile-details p {
    font-size: 16px;
    color: #555;
    margin: 5px 0 0;
    font-weight: 500;
}

/* Links Sociais */
.social-links {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-icon {
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon.instagram:hover {
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.social-icon.youtube:hover {
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* Coluna do Texto da História */
.story-text {
    flex: 1; 
    min-width: 450px; 
    
    /* Animação */
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s; 
}

.story-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 17px;
}

.story-text h3 {
    color: #F1BF00; /* Amarelo (Gualda) da Espanha */
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 24px;
}


/* ========================================= */
/* 7. PÁGINA CONTATO (CONTACT.HTML)          */
/* ========================================= */

.contact-container h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 10px;
    color: #e63946;
}

.contact-container p {
    text-align: center;
    margin-bottom: 50px;
    font-size: 19px;
    color: #555;
}

.contact-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Formulário */
.contact-form {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e63946;
    outline: none;
}

/* Informações e Mapa */
.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 22px;
    color: #e63946;
}

.contact-info a.btn {
    background: #25D366;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
    margin-bottom: 30px;
}

.contact-info a.btn:hover {
    background: #1faf58;
}

.contact-info iframe {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 280px;
}


/* ========================================= */
/* 8. PÁGINA LOJA (STORE.HTML)               */
/* ========================================= */

.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 300px); 
    text-align: center;
    padding: 40px 20px;
}

.coming-soon-box {
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.coming-soon-box h2 {
    font-size: 32px;
    color: #e63946;
    margin-bottom: 15px;
}

.coming-soon-box p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.gear-icon-wrapper {
    font-size: 80px;
    color: #333;
    margin-bottom: 25px;
    display: inline-block;
}

.gear-icon {
    animation: spin 3s linear infinite; 
    display: block;
}

.whatsapp-btn {
    background: #25D366;
    margin-top: 10px;
}

.whatsapp-btn:hover {
    background: #1faf58;
}


/* ========================================= */
/* 9. RODAPÉ (FOOTER)                        */
/* ========================================= */
footer {
    background: #333;
    color: #ffffff;
    padding: 40px 20px 20px;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto 30px;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px; /* Ajustado para melhor responsividade */
}

.footer-section h3 {
    color: #e63946;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #555;
    padding-bottom: 8px;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #e63946;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #555;
    color: #aaa;
}

/* ========================================= */
/* 10. RESPONSIVIDADE (@MEDIA QUERIES)       */
/* ========================================= */

@media (max-width: 768px) {
    /* --- Layout Geral e Sobre --- */
    .story-container {
        flex-direction: column;
        flex-wrap: wrap;
    }
    .story-image-wrapper {
        margin-bottom: 20px;
        width: auto;
        min-width: auto;
    }
    .profile-img {
        max-width: 80%;
    }
    .story-text {
        text-align: center;
    }
    .story-text h3 {
        text-align: center;
    }
    
    /* --- Rodapé --- */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 20px;
        min-width: 100%;
    }
    .footer-section h3 {
        text-align: center;
    }
    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    /* --- Navegação --- */
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 10px;
    }
    .logo {
        margin-bottom: 10px;
    }
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    /* --- Hero --- */
    .hero {
        padding: 60px 20px;
        max-height: 400px;
    }
    .hero h2 {
        font-size: 32px;
    }

    /* --- Cards --- */
    .flip-card {
        height: 250px;
    }
    .flip-card-front h3,
    .flip-card-back h3 {
        font-size: 20px;
    }
    .service-card {
        padding: 20px;
    }
    .service-card h3 {
        font-size: 20px;
    }
}