@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Merriweather:wght@400;700&display=swap');

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

/* Body */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ecf0f1;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #ecf0f1;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand h1, .brand h3 {
    margin: 0;
}

.brand h3 {
    font-weight: normal;
    font-size: 1rem;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0rem 0.5rem;
    border-radius: 20px;
    transition: all 0.3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

nav ul li a:hover,
nav ul li a.active,
nav ul li a:focus {
    background: rgba(52, 152, 219, 0.3);
    color: #ecf0f1;
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Main */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

section {
    margin-bottom: 3rem;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

p {
    margin-bottom: 1rem;
    color: #bdc3c7;
}

/* Card-based designs */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Buttons */
button, .btn2 {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.btn {
    background: none;
    color: #3498db;
    box-shadow: none;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0;
    min-height: auto;
}

button:hover, .btn:hover,
button:focus, .btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(52, 152, 219, 0.6);
    outline: 2px solid #ecf0f1;
    outline-offset: 2px;
}

.btn:hover,
.btn:focus {
    text-decoration: underline;
    color: #2980b9;
    transform: none;
    box-shadow: none;
    outline: none;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

/* Contact page specific link styles */
a[href^="mailto"],
a[href*="linkedin"],
a[href*="github"] {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a[href^="mailto"]:visited,
a[href*="linkedin"]:visited,
a[href*="github"]:visited {
    color: #3498db;
}

a[href^="mailto"]:hover,
a[href*="linkedin"]:hover,
a[href*="github"]:hover {
    color: #2980b9;
}

a[href^="mailto"]:active,
a[href*="linkedin"]:active,
a[href*="github"]:active {
    color: #3498db;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #ecf0f1;
    margin-top: 2rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    main {
        padding: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .chip {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .tech-items {
        gap: 0.5rem;
    }
}
/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    display: block;
    padding: 10px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    color: #ecf0f1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(52, 152, 219, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.5);
}

.carousel-prev:focus,
.carousel-next:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Carousel Flex for <=3 images */
.carousel-flex {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.carousel-flex .carousel-image {
    flex: 1;
    min-width: 200px;
    height: auto;
    object-fit: contain;
    padding: 10px;
}

.showcase-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* opcional: rellena sin deformar */
  border-radius: 8px; /* igual que tu imagen si tenía bordes redondeados */
}
/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel {
        max-width: 100%;
        margin: 0;
    }

    .carousel-image {
        height: auto;
    }

    .carousel-prev,
    .carousel-next {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .carousel-flex {
        flex-direction: column;
    }

    .carousel-flex .carousel-image {
        min-width: 100%;
    }
}

/* Tech Stack Chips */
.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-category {
    margin-bottom: 1.0rem;
}

.tech-category h4 {
    margin-bottom: 0.2rem;
    color: #ecf0f1;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    max-width: 100%;
}

.chip {
    background: #34495e;
    color: #ecf0f1;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(52, 73, 94, 0.3);
    transition: all 0.3s ease;
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(52, 73, 94, 0.5);
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.features-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #bdc3c7;
}

.features-list li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.5rem;
}