/* ----- GLOBAL ----- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ----- HEADER ----- */
header {
    background: #ffffff; /* blanco */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #eb9f41;
}

nav a {
    color: #eb9f41;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:visited {
    color: #eb9f41; /* mantiene el mismo color tras visitarlo */
}

nav a:hover {
    color: #c47d2e;
    transform: translateY(-2px);
}

/* ----- HERO ----- */
.hero {
    background: url('images/calm.jpg') center/cover no-repeat;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

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

/* ----- CONTENIDO ----- */

.intro p {
    color: #eb9f41;
    font-size: 1.2rem;     /* más pequeño */
    line-height: 1.25;      /* menos interlineado */
    margin-bottom: 10px;   /* más compacto */
}

.container {
    padding: 10px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.container h2 {
    font-size: 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #fcf0df;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 2px solid transparent;     
    transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    border-color: #eb9f41;             
    box-shadow: 0 4px 12px rgba(235,159,65,0.4); 
}

.card-logo {
    width: 100px;              
    height: 100px;
    object-fit: contain;      
    display: block;
    margin-bottom: 10px;
}

.card-header {
    display: flex;
    align-items: center;   
    gap: 15px;             
    margin-bottom: 15px;
    text-decoration: none;  
    color: inherit;         
}

.card-header h3 {
    position: relative;
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.card-header h3::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40%;
    height: 3px;
    background: #eb9f41;
    border-radius: 2px;
}

/* ----- FOOTER ----- */
/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #eb9f41;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 10px; 
    align-items: center;
}

footer p {
    margin: 0;
}

footer .footer-links {
    display: flex;
    gap: 20px; 
    flex-wrap: wrap; 
    justify-content: center;
}

footer .footer-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .footer-links a:hover {
    color: #ffffffcc;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    footer .footer-links {
        gap: 10px;
    }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 10px;
    }

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

    .logo-container {
        justify-content: center;
    }

    .hero {
        padding: 70px 20px;
    }

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



/* ----- CSS DEL CONTACTO ----- */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    resize: vertical;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #eb9f41;
    outline: none;
}

.contact-form button {
    background-color: #eb9f41;
    color: white;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.contact-form button:hover {
    background-color: #c47d2e;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    .contact-form {
        padding: 0 20px;
    }
}


/* ----- ESTILO GLOBAL DE ENLACES ----- */
a {
    text-decoration: none;
    color: inherit;         
}

a:visited {
    text-decoration: none;
    color: inherit;          
}

a:hover {
    text-decoration: none;   
}

a:active {
    text-decoration: none;   
}
