/* ====== ESTILO CABECERA ====== */
header {
background: linear-gradient(135deg, #26507a, #3b6c9d);
color: #fff;
text-align: center;
padding: 50px 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

header h1 {
font-size: 2.5rem;
margin-bottom: 10px;
}

header p {
font-size: 1.2rem;
opacity: 0.9;
}

/* ====== NAVEGACIÓN ====== */
nav {
background: #26507a;
padding: 12px 0;
position: sticky;
top: 0;
z-index: 100;
}

nav ul {
list-style: none;
display: flex;
justify-content: center;
gap: 20px;
margin: 0;
padding: 0;
}

nav a {
color: #fff;
font-weight: bold;
text-decoration: none;
padding: 8px 14px;
border-radius: 5px;
transition: background 0.3s;
}

nav a:hover {
background: #3b6c9d;
}

/* ====== CONTENEDOR PRINCIPAL ====== */
.container {
width: 90%;
max-width: 1200px;
margin: auto;
padding: 40px 0;
}

h2 {
text-align: center;
font-size: 2rem;
margin-bottom: 30px;
color: #26507a;
position: relative;
}

h2::after {
content: "";
display: block;
width: 70px;
height: 3px;
background: #1abc9c;
margin: 10px auto 0;
border-radius: 2px;
}

/* ====== TARJETAS ====== */
.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
}

.card {
background: #fff;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 6px 18px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
transform: translateY(-8px);
box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card img {
width: 100%;
height: 180px;
object-fit: cover;
}

.card-content {
padding: 20px;
flex: 1;
}

.card h3 {
font-size: 1.4rem;
margin-bottom: 10px;
color: #2c3e50;
}

.card p {
font-size: 1rem;
color: #555;
margin-bottom: 20px;
}

/* ====== BOTONES ====== */
.btn-ver {
display: inline-block;
padding: 10px 16px;
background: #1abc9c;
color: #fff;
font-weight: bold;
border-radius: 8px;
text-decoration: none;
transition: background 0.3s, transform 0.2s;
}

.btn-ver:hover {
background: #16a085;
transform: scale(1.05);
}

/* ====== PIE DE PÁGINA ====== */
footer {
    background: #26507a;
color: #fff;
text-align: center;
padding: 25px 15px;
margin-top: 50px;
font-size: 0.9rem;
}
/* Botón Volver */
.volver-container {
text-align: center;
margin: 30px 0;
}

.btn-volver::before {
content: "🏠 ";
}


.btn-volver {
display: inline-block;
padding: 10px 18px;
background-color: #26507a;
color: #fff;
border-radius: 8px;
text-decoration: none;
font-size: 1rem;
transition: background 0.3s, transform 0.2s;
}

.btn-volver:hover {
background-color: #1a3659;
transform: translateY(-2px);
}

.btn-volver::before {
content: " ";
}

/* Animación especial para el botón Volver */
.btn-volver {
position: relative;
overflow: hidden;
}

.btn-volver:hover {
transform: scale(1.05); /* Zoom ligero */
}

.btn-volver:active {
transform: scale(0.95); /* Efecto de rebote al hacer clic */
}
