@import url('https://fonts.googleapis.com/css2?family=Sansation:ital,wght@0,700;1,700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100dvh;                 /* asegura cubrir el alto de la ventana */
    background: linear-gradient(180deg, #ffffff 0%, #dff1ff 100%);
    background-attachment: fixed;       /* efecto suave al hacer scroll */
    /*background-image: url('../img/logo.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background: url("../img/logo.jpeg") no-repeat center center/cover;
    position: relative;
    min-height: 100vh;*/
}
/*
body::before{
    content: "";
    position: absolute;
    inset:0;
    backdrop-filter: blur(8px);
    z-index: -1;
}*/

main{
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.presentacion{
    text-align: center; /*Version 1: texto al centro*/
}

.presentacion img{
    width:240px; 
    height: auto; 
    border-radius: 15px; 
    box-shadow: 0 3px 8px;
    margin-top: 20px;
}

.habilidades{
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}

.habilidades h2{
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.habilidades .descripcion{
    margin-bottom: 26px;
    font-size: 0.9rem;
    line-height: 1.2;
}

.contenedor-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgb(255, 255, 255);
    /*
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);*/
    color: black;
    border: 2px solid gray;
    border-radius: 12px;
    padding: 18px;
    min-height: 160px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(255, 255, 255,0.55);
}

.card h3{
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.card p{
    line-height: 1.45;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

footer{
    background: rgba(139, 139, 139, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 20px 20px;
    position: relative;
    z-index: 1;
}

.contenedor-footer{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contacto .footer-nav{
    flex: 1;
    min-width: 250px;
}

.footer-contacto h3, .footer-nav h3{
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid;
    padding-bottom: 5px;
}

.footer-nav ul{
    list-style: none;
    padding: 0;
}

.footer-nav li{
    margin-bottom: 8px;
}

.footer-nav a{
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.footer-nav a:hover{
    color: red;
}

.footer-copy{
    text-align: center;
    margin-top: 30px;
    font-size: 0.87rem;
    grid-column: 1 / -1;
}

.flip-section{
    text-align: center;
    padding: 60px 20px;
}

.flip-section h2{
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.flip-section p{
    margin-bottom: 26px;
    font-size: 0.9rem;
    line-height: 1.2;
}

.flip-contenedor{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.flip-card{
    width: 220px;
    height: 280px;
    perspective: 1000px;
    position: relative;
}

.flip-card-inner{
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    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;
    overflow: hidden; 
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 6px 12px rgba(255, 255, 255,0.9);
}

.flip-card-front{
    background: white;
    font-size: 1.2rem;
    font-weight: bold;
    color:black;
    text-align: center;
    padding: 20px;
}

.flip-card-front h3{
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    margin: 0;
}


.flip-card-back{
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 139, 139, 0.2);
    transform: rotateY(180deg);
}

.flip-card-back img{
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s ease; 
}

.modal{
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal-contenedor{
    margin: 0;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.753);
    animation: zoom 0.3s ease;
}

@keyframes zoom{
    from{ transform: scale(0.7); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.cerrar{
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.cerrar:hover{
    color: sandybrown;
}

/* ===== Barra de encabezado unificada (centrada) — misma que en style.css ===== */
:root{
  --header-height: 64px;
  --header-bg: rgba(255,255,255,0.9);
  --header-border: 1px solid rgba(10,42,67,0.08);
  --header-link: #0a2a43;
  --header-link-hover: #075a9e;
}

header, .header, .navbar, nav[role="navigation"]{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: var(--header-border);
}

header .bar, .header .bar, .navbar .bar, nav .bar{
  max-width: 1200px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

header .brand, .header .brand, .navbar .brand, nav .brand{
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--header-link);
  margin: 0;
}

header nav ul, .header nav ul, .navbar nav ul, nav ul{
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

header nav a, .header nav a, .navbar nav a, nav a{
  text-decoration: none;
  color: var(--header-link);
  font-weight: 600;
  line-height: 1;
}

header nav a:hover, .header nav a:hover, .navbar nav a:hover, nav a:hover{
  color: var(--header-link-hover);
  text-decoration: underline;
}

header *, .header *, .navbar *{
  float: none !important;
}